Making WordPress.org

Changeset 4948


Ignore:
Timestamp:
02/19/2017 09:47:45 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Remove plugin- and theme-specific sidebar sections that are never displayed in the new theme.

See #2495.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php

    r4940 r4948  
    190190            $this->term = get_term_by( 'slug', $this->slug(), $this->taxonomy() );
    191191
    192             // Add theme-specific filters and actions.
     192            // Add plugin- and theme-specific filters and actions.
    193193            add_action( 'wporg_compat_view_sidebar', array( $this, 'do_view_sidebar' ) );
    194194            add_action( 'wporg_compat_before_single_view', array( $this, 'do_view_header' ) );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php

    r4922 r4948  
    6666        $this->do_topic_sidebar();
    6767
    68         ?>
    69         <div>
    70             <h3><?php _e( 'Browse Plugins', 'wporg-forums' ); ?></h3>
    71 
    72             <ul class="plugin-submenu">
    73                 <li class="view"><a href='//wordpress.org/plugins/'><?php _e( 'Featured', 'wporg' ); ?></a></li>
    74                 <li class="view"><a href='//wordpress.org/plugins/browse/popular/'><?php _e( 'Most Popular', 'wporg' ); ?></a></li>
    75                 <li class="view"><a href='//wordpress.org/plugins/browse/favorites/'><?php _e( 'Favorites', 'wporg' ); ?></a></li>
    76                 <li class="view"><a href='//wordpress.org/plugins/browse/beta/'><?php _e( 'Beta Testing', 'wporg' ); ?></a></li>
    77                 <li class="view"><a href='/plugins/about/'><?php _e( 'Developers', 'wporg' ); ?></a></li>
    78             </ul>
    79         </div>
    80 
    81         <div>
    82             <h3><?php _e( 'Search Plugins', 'wporg-forums' ); ?></h3>
    83 
    84             <form id="side-search" method="get" action="//wordpress.org/plugins/search.php">
    85             <div>
    86                 <input type="text" class="text" name="q" value="" />
    87                 <input type="submit" class="button" value="<?php _e( 'Search', 'wporg-forums' ); ?>" />
    88             </div>
    89             </form>
    90         </div>
    91         <?php
    9268    }
    9369
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php

    r4922 r4948  
    6666        $this->do_topic_sidebar();
    6767
    68         ?>
    69         <div>
    70             <h3><?php _e( 'Browse Themes', 'wporg-forums' ); ?></h3>
    71 
    72             <ul class="theme-submenu">
    73                 <li class="view"><a href="//wordpress.org/themes/"><?php _e( 'Featured', 'wporg-forums' ); ?></a></li>
    74                 <li class="view"><a href="//wordpress.org/themes/browse/popular/"><?php _e( 'Most Popular', 'wporg-forums' ); ?></a></li>
    75                 <li class="view"><a href="//wordpress.org/themes/browse/new/"><?php _e( 'Latest', 'wporg-forums' ); ?></a></li>
    76                 <li class="view"><a href="/themes/getting-started/"><?php _e( 'Theme Authors', 'wporg-forums' ); ?></a></li>
    77                 <li class="view"><a href="/themes/commercial/"><?php _e( 'Commercial', 'wporg-forums' ); ?></a></li>
    78             </ul>
    79         </div>
    80 
    81         <div>
    82             <h3><?php _e( 'Search Themes', 'wporg-forums' ); ?></h3>
    83 
    84             <form id="side-search" method="get" action="//wordpress.org/themes/search.php">
    85             <div>
    86                 <input type="text" class="text" name="q" value="" />
    87                 <input type="submit" class="button" value="<?php _e( 'Search', 'wporg-forums' ); ?>" />
    88             </div>
    89             </form>
    90         </div>
    91         <?php
    9268    }
    9369
Note: See TracChangeset for help on using the changeset viewer.