Changeset 47550 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 04/05/2020 03:00:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r47219 r47550 1033 1033 $url = get_permalink(); 1034 1034 } else { 1035 if ( '' == get_option( 'permalink_structure' ) || in_array( $post->post_status, array( 'draft', 'pending' ) ) ) {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 1037 } elseif ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_on_front' ) == $post->ID ) { … … 1396 1396 $args = wp_parse_args( $args, $defaults ); 1397 1397 1398 if ( ! in_array( $args['item_spacing'], array( 'preserve', 'discard' ) ) ) {1398 if ( ! in_array( $args['item_spacing'], array( 'preserve', 'discard' ), true ) ) { 1399 1399 // Invalid value, fall back to default. 1400 1400 $args['item_spacing'] = $defaults['item_spacing']; … … 1812 1812 } 1813 1813 1814 if ( ! in_array( $revision->post_type, array( 'post', 'page', 'revision' ) ) ) {1814 if ( ! in_array( $revision->post_type, array( 'post', 'page', 'revision' ), true ) ) { 1815 1815 return false; 1816 1816 } … … 1853 1853 } 1854 1854 1855 if ( ! in_array( $revision->post_type, array( 'post', 'page', 'revision' ) ) ) {1855 if ( ! in_array( $revision->post_type, array( 'post', 'page', 'revision' ), true ) ) { 1856 1856 return false; 1857 1857 }
Note: See TracChangeset
for help on using the changeset viewer.