Changeset 47550 for trunk/src/wp-includes/post-formats.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-formats.php
r47122 r47550 76 76 if ( ! empty( $format ) ) { 77 77 $format = sanitize_key( $format ); 78 if ( 'standard' === $format || ! in_array( $format, get_post_format_slugs() ) ) {78 if ( 'standard' === $format || ! in_array( $format, get_post_format_slugs(), true ) ) { 79 79 $format = ''; 80 80 } else { … … 232 232 */ 233 233 function _post_format_get_terms( $terms, $taxonomies, $args ) { 234 if ( in_array( 'post_format', (array) $taxonomies ) ) {234 if ( in_array( 'post_format', (array) $taxonomies, true ) ) { 235 235 if ( isset( $args['fields'] ) && 'names' == $args['fields'] ) { 236 236 foreach ( $terms as $order => $name ) {
Note: See TracChangeset
for help on using the changeset viewer.