Changeset 1475 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php
- Timestamp:
- 04/14/2015 05:00:22 AM (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
r937 r1475 53 53 54 54 // Add post type to title if it's a parsed item. 55 if ( is_singular() && 0 === strpos( $post_type, 'wp-parser-') ) {55 if ( is_singular() && \DevHub\is_parsed_post_type( $post_type ) ) { 56 56 if ( $post_type_object = get_post_type_object( $post_type ) ) { 57 57 $title .= get_post_type_object( $post_type )->labels->singular_name . " $sep "; … … 74 74 } 75 75 76 // Add the blog description for the home/front page.77 $site_description = get_bloginfo( 'description', 'display' );78 if ( $site_description && ( is_home() || is_front_page() ) ) {79 $title .= " $sep $site_description";80 }81 82 76 // Add a page number if necessary: 83 77 if ( $paged >= 2 || $page >= 2 ) { 84 $title .= " $sep " . sprintf( __( 'Page %s', 'wporg' ), max( $paged, $page ) );78 $title .= sprintf( __( 'Page %s', 'wporg' ), max( $paged, $page ) ) . " $sep "; 85 79 } 86 80
Note: See TracChangeset
for help on using the changeset viewer.