Changeset 47557 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 04/09/2020 03:41:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r47550 r47557 549 549 550 550 foreach ( $pages as $page ) { 551 if ( $page->ID== $parent ) {552 $parent = $page->post_parent;551 if ( (int) $page->ID === $parent ) { 552 $parent = (int) $page->post_parent; 553 553 break; 554 554 } … … 569 569 570 570 if ( ! isset( $post_type_object ) 571 || ( isset( $children ) && in_array( $post_ID, $children ) )571 || ( isset( $children ) && in_array( $post_ID, $children, true ) ) 572 572 || ! current_user_can( 'edit_post', $post_ID ) 573 573 ) {
Note: See TracChangeset
for help on using the changeset viewer.