Changeset 47808 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 05/16/2020 06:40:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r47550 r47808 140 140 $protected_title_format = apply_filters( 'protected_title_format', $prepend, $post ); 141 141 $title = sprintf( $protected_title_format, $title ); 142 } elseif ( isset( $post->post_status ) && 'private' == $post->post_status ) {142 } elseif ( isset( $post->post_status ) && 'private' === $post->post_status ) { 143 143 144 144 /* translators: %s: Private post title. */ … … 557 557 558 558 // 'post_tag' uses the 'tag' prefix for backward compatibility. 559 if ( 'post_tag' == $taxonomy ) {559 if ( 'post_tag' === $taxonomy ) { 560 560 $classes[] = 'tag-' . $term_class; 561 561 } else { … … 951 951 $output = ''; 952 952 if ( $multipage ) { 953 if ( 'number' == $parsed_args['next_or_number'] ) {953 if ( 'number' === $parsed_args['next_or_number'] ) { 954 954 $output .= $parsed_args['before']; 955 955 for ( $i = 1; $i <= $numpages; $i++ ) { … … 1033 1033 $url = get_permalink(); 1034 1034 } else { 1035 if ( '' ==get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ), true ) ) {1035 if ( ! get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ), true ) ) { 1036 1036 $url = add_query_arg( 'page', $i, get_permalink() ); 1037 } elseif ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) {1037 } elseif ( 'page' === get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) { 1038 1038 $url = trailingslashit( get_permalink() ) . user_trailingslashit( "$wp_rewrite->pagination_base/" . $i, 'single_paged' ); 1039 1039 } else { … … 1437 1437 $menu .= '<li ' . $class . '><a href="' . home_url( '/' ) . '">' . $args['link_before'] . $text . $args['link_after'] . '</a></li>'; 1438 1438 // If the front page is a page, add it to the exclude list. 1439 if ( get_option( 'show_on_front' ) == 'page') {1439 if ( 'page' === get_option( 'show_on_front' ) ) { 1440 1440 if ( ! empty( $list_args['exclude'] ) ) { 1441 1441 $list_args['exclude'] .= ','; … … 1613 1613 if ( $text ) { 1614 1614 $link_text = $text; 1615 } elseif ( $size && 'none' != $size ) {1615 } elseif ( $size && 'none' !== $size ) { 1616 1616 $link_text = wp_get_attachment_image( $_post->ID, $size, $icon, $attr ); 1617 1617 } else { … … 1790 1790 $template = get_post_meta( $post->ID, '_wp_page_template', true ); 1791 1791 1792 if ( ! $template || 'default' == $template ) {1792 if ( ! $template || 'default' === $template ) { 1793 1793 return ''; 1794 1794 }
Note: See TracChangeset
for help on using the changeset viewer.