Changeset 4846
- Timestamp:
- 01/31/2017 11:54:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php
r4845 r4846 14 14 $menu_items = array( 15 15 /* translators: relative link to the forums home page */ 16 _x( '/ ', 'header menu', 'wporg-forums' )=> _x( 'Forums', 'header menu', 'wporg-forums' ),16 _x( '/#bbpress-forums', 'header menu', 'wporg-forums' ) => _x( 'Forums', 'header menu', 'wporg-forums' ), 17 17 _x( 'https://codex.wordpress.org/Main_Page', 'header menu', 'wporg-forums' ) => _x( 'Documentation', 'header menu', 'wporg-forums' ), 18 18 _x( 'https://make.wordpress.org/support/handbook/', 'header menu', 'wporg-forums' ) => _x( 'Get Involved', 'header menu', 'wporg-forums' ), … … 47 47 <?php 48 48 foreach ( $menu_items as $path => $text ) : 49 $class = false !== strpos( $_SERVER['REQUEST_URI'], $path ) ? 'class="active" ' :'';49 $class = ''; 50 50 $url = parse_url( $path ); 51 51 if ( ! empty( $url['host' ] ) ) { 52 52 $url = esc_url( $path ); 53 53 } else { 54 $class = false !== strpos( $_SERVER['REQUEST_URI'], $url['path'] ) ? 'class="active" ' : ''; 54 55 $url = esc_url( home_url( $path ) ); 55 56 }
Note: See TracChangeset
for help on using the changeset viewer.