Changeset 61445 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 01/06/2026 06:05:20 AM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r61440 r61445 430 430 } 431 431 432 $attachment_data = isset( $post_data['attachments'][ $post_id ] ) ? $post_data['attachments'][ $post_id ] :array();432 $attachment_data = $post_data['attachments'][ $post_id ] ?? array(); 433 433 434 434 /** This filter is documented in wp-admin/includes/media.php */ … … 1015 1015 $metakeyselect = isset( $_POST['metakeyselect'] ) ? wp_unslash( trim( $_POST['metakeyselect'] ) ) : ''; 1016 1016 $metakeyinput = isset( $_POST['metakeyinput'] ) ? wp_unslash( trim( $_POST['metakeyinput'] ) ) : ''; 1017 $metavalue = isset( $_POST['metavalue'] ) ? $_POST['metavalue'] :'';1017 $metavalue = $_POST['metavalue'] ?? ''; 1018 1018 if ( is_string( $metavalue ) ) { 1019 1019 $metavalue = trim( $metavalue ); … … 2044 2044 * this is hooked on inner core hooks where a valid nonce was already checked. 2045 2045 */ 2046 $posted_data = isset( $_POST['data']['wp_autosave'] ) ? $_POST['data']['wp_autosave'] :$_POST;2046 $posted_data = $_POST['data']['wp_autosave'] ?? $_POST; 2047 2047 2048 2048 $post_type = get_post_type( $new_autosave['post_parent'] );
Note: See TracChangeset
for help on using the changeset viewer.