WordPress.org

Making WordPress.org

Changeset 5815


Ignore:
Timestamp:
08/17/17 21:51:14 (4 months ago)
Author:
danielbachhuber
Message:

devhub/cli: Use "WP-CLI Commands" as section head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r5598 r5815  
    478478     */ 
    479479    function get_site_section_title() { 
    480         $parts = explode( '/', $_SERVER['REQUEST_URI'] ); 
    481         switch ( $parts[1] ) { 
     480        $parts = explode( '/', $GLOBALS['wp']->request ); 
     481        switch ( $parts[0] ) { 
    482482            case 'resources': 
    483483            case 'resource': 
     
    489489            case 'themes': 
    490490                return __( 'Theme Handbook', 'wporg' ); 
     491            case 'cli': 
     492                return __( 'WP-CLI Commands', 'wporg' ); 
    491493            default: 
    492494                return __( 'Developer Resources', 'wporg' ); 
Note: See TracChangeset for help on using the changeset viewer.