Ticket #55176: 55176.3.diff
File 55176.3.diff, 1.0 KB (added by , 3 years ago) |
---|
-
src/wp-includes/category-template.php
555 555 } 556 556 557 557 // Descendants of exclusions should be excluded too. 558 if ( true == $parsed_args['hierarchical'] ) {558 if ( true === $parsed_args['hierarchical'] ) { 559 559 $exclude_tree = array(); 560 560 561 561 if ( $parsed_args['exclude_tree'] ) { -
src/wp-includes/post.php
2908 2908 */ 2909 2909 function stick_post( $post_id ) { 2910 2910 $post_id = (int) $post_id; 2911 $stickies = get_option( 'sticky_posts' );2911 $stickies = get_option( 'sticky_posts', array() ); 2912 2912 $updated = false; 2913 2913 2914 if ( ! is_array( $stickies ) ) { 2915 $stickies = array( $post_id ); 2916 } else { 2914 if ( $stickies ) { 2917 2915 $stickies = array_unique( array_map( 'intval', $stickies ) ); 2918 2916 } 2919 2917