Changeset 3279 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php
- Timestamp:
- 05/31/2016 07:45:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php
r3246 r3279 65 65 } 66 66 // Add handbook name to title if relevent 67 elseif ( is_singular() && false !== strpos( $post_type, 'handbook' ) ) {67 elseif ( ( is_singular() || is_post_type_archive() ) && false !== strpos( $post_type, 'handbook' ) ) { 68 68 if ( $post_type_object = get_post_type_object( $post_type ) ) { 69 $handbook_label = " $sep " .get_post_type_object( $post_type )->labels->name;70 $handbook_name = " $sep " .\WPorg_Handbook::get_name( $post_type ) . " Handbook";69 $handbook_label = get_post_type_object( $post_type )->labels->name; 70 $handbook_name = \WPorg_Handbook::get_name( $post_type ) . " Handbook"; 71 71 72 72 // Replace title with handbook name if this is landing page for the handbook … … 75 75 // Otherwise, append the handbook name 76 76 } else { 77 $title .= $handbook_name;77 $title .= " $sep " . $handbook_name; 78 78 } 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.