Changeset 47808 for trunk/src/wp-content/themes/twentyfifteen/functions.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r47122 r47808 321 321 $subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'twentyfifteen' ); 322 322 323 if ( 'cyrillic' == $subset ) {323 if ( 'cyrillic' === $subset ) { 324 324 $subsets .= ',cyrillic,cyrillic-ext'; 325 } elseif ( 'greek' == $subset ) {325 } elseif ( 'greek' === $subset ) { 326 326 $subsets .= ',greek,greek-ext'; 327 } elseif ( 'devanagari' == $subset ) {327 } elseif ( 'devanagari' === $subset ) { 328 328 $subsets .= ',devanagari'; 329 } elseif ( 'vietnamese' == $subset ) {329 } elseif ( 'vietnamese' === $subset ) { 330 330 $subsets .= ',vietnamese'; 331 331 } … … 461 461 $css = ''; 462 462 463 if ( is_attachment() && 'attachment' == $previous->post_type ) {463 if ( is_attachment() && 'attachment' === $previous->post_type ) { 464 464 return; 465 465 } … … 499 499 */ 500 500 function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) { 501 if ( 'primary' == $args->theme_location && $item->description ) {501 if ( 'primary' === $args->theme_location && $item->description ) { 502 502 $item_output = str_replace( $args->link_after . '</a>', '<div class="menu-item-description">' . $item->description . '</div>' . $args->link_after . '</a>', $item_output ); 503 503 }
Note: See TracChangeset
for help on using the changeset viewer.