Changeset 49108 for trunk/src/wp-includes/post.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r49086 r49108 4136 4136 4137 4137 if ( $thumbnail_support ) { 4138 $thumbnail_id = intval( $postarr['_thumbnail_id'] );4138 $thumbnail_id = (int) $postarr['_thumbnail_id']; 4139 4139 if ( -1 === $thumbnail_id ) { 4140 4140 delete_post_thumbnail( $post_ID ); … … 4594 4594 $conflicts_with_date_archive = false; 4595 4595 if ( 'post' === $post_type && ( ! $post || $post->post_name !== $slug ) && preg_match( '/^[0-9]+$/', $slug ) ) { 4596 $slug_num = intval( $slug );4596 $slug_num = (int) $slug; 4597 4597 4598 4598 if ( $slug_num ) { … … 5267 5267 $children = array(); 5268 5268 foreach ( (array) $pages as $page ) { 5269 $children[ intval( $page->post_parent )][] = $page;5269 $children[ (int) $page->post_parent ][] = $page; 5270 5270 } 5271 5271 … … 5311 5311 $children = array(); 5312 5312 foreach ( (array) $pages as $p ) { 5313 $parent_id = intval( $p->post_parent );5313 $parent_id = (int) $p->post_parent; 5314 5314 $children[ $parent_id ][] = $p; 5315 5315 } … … 5520 5520 foreach ( $post_authors as $post_author ) { 5521 5521 // Do we have an author id or an author login? 5522 if ( 0 == intval( $post_author )) {5522 if ( 0 == (int) $post_author ) { 5523 5523 $post_author = get_user_by( 'login', $post_author ); 5524 5524 if ( empty( $post_author ) ) {
Note: See TracChangeset
for help on using the changeset viewer.