Changeset 47808 for trunk/src/wp-includes/post-formats.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-formats.php
r47550 r47808 193 193 function _post_format_link( $link, $term, $taxonomy ) { 194 194 global $wp_rewrite; 195 if ( 'post_format' != $taxonomy ) {195 if ( 'post_format' !== $taxonomy ) { 196 196 return $link; 197 197 } … … 233 233 function _post_format_get_terms( $terms, $taxonomies, $args ) { 234 234 if ( in_array( 'post_format', (array) $taxonomies, true ) ) { 235 if ( isset( $args['fields'] ) && 'names' == $args['fields'] ) {235 if ( isset( $args['fields'] ) && 'names' === $args['fields'] ) { 236 236 foreach ( $terms as $order => $name ) { 237 237 $terms[ $order ] = get_post_format_string( str_replace( 'post-format-', '', $name ) ); … … 239 239 } else { 240 240 foreach ( (array) $terms as $order => $term ) { 241 if ( isset( $term->taxonomy ) && 'post_format' == $term->taxonomy ) {241 if ( isset( $term->taxonomy ) && 'post_format' === $term->taxonomy ) { 242 242 $terms[ $order ]->name = get_post_format_string( str_replace( 'post-format-', '', $term->slug ) ); 243 243 } … … 259 259 function _post_format_wp_get_object_terms( $terms ) { 260 260 foreach ( (array) $terms as $order => $term ) { 261 if ( isset( $term->taxonomy ) && 'post_format' == $term->taxonomy ) {261 if ( isset( $term->taxonomy ) && 'post_format' === $term->taxonomy ) { 262 262 $terms[ $order ]->name = get_post_format_string( str_replace( 'post-format-', '', $term->slug ) ); 263 263 }
Note: See TracChangeset
for help on using the changeset viewer.