Changeset 49108 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r49021 r49108 1924 1924 1925 1925 if ( isset( $_POST['_thumbnail_id'] ) ) { 1926 $query_args['_thumbnail_id'] = ( intval( $_POST['_thumbnail_id'] ) <= 0 ) ? '-1' : intval( $_POST['_thumbnail_id'] );1926 $query_args['_thumbnail_id'] = ( (int) $_POST['_thumbnail_id'] <= 0 ) ? '-1' : (int) $_POST['_thumbnail_id']; 1927 1927 } 1928 1928 } … … 2086 2086 2087 2087 if ( ! empty( $_term ) ) { 2088 $clean_terms[] = intval( $_term[0] );2088 $clean_terms[] = (int) $_term[0]; 2089 2089 } else { 2090 2090 // No existing term was found, so pass the string. A new term will be created.
Note: See TracChangeset
for help on using the changeset viewer.