File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ function _wp_translate_postdata( $update = false, $post_data = null ) {
122122 $ post_data ['post_status ' ] = 'pending ' ;
123123 }
124124
125- $ post_id = $ post_data ['ID ' ] ?? false ;
125+ $ post_id = $ post_data ['ID ' ] ?? false ;
126126 $ previous_status = $ post_id ? get_post_field ( 'post_status ' , $ post_id ) : false ;
127127
128128 if ( isset ( $ post_data ['post_status ' ] ) && 'private ' === $ post_data ['post_status ' ] && ! current_user_can ( $ ptype ->cap ->publish_posts ) ) {
Original file line number Diff line number Diff line change @@ -1529,12 +1529,11 @@ function get_uploaded_header_images() {
15291529 $ header_data = wp_get_attachment_metadata ( $ header ->ID );
15301530 $ header_index = $ header ->ID ;
15311531
1532- $ header_images [ $ header_index ] = array ();
1533- $ header_images [ $ header_index ]['attachment_id ' ] = $ header ->ID ;
1534- $ header_images [ $ header_index ]['url ' ] = $ url ;
1535- $ header_images [ $ header_index ]['thumbnail_url ' ] = $ url ;
1536- $ header_images [ $ header_index ]['alt_text ' ] = get_post_meta ( $ header ->ID , '_wp_attachment_image_alt ' , true );
1537-
1532+ $ header_images [ $ header_index ] = array ();
1533+ $ header_images [ $ header_index ]['attachment_id ' ] = $ header ->ID ;
1534+ $ header_images [ $ header_index ]['url ' ] = $ url ;
1535+ $ header_images [ $ header_index ]['thumbnail_url ' ] = $ url ;
1536+ $ header_images [ $ header_index ]['alt_text ' ] = get_post_meta ( $ header ->ID , '_wp_attachment_image_alt ' , true );
15381537 $ header_images [ $ header_index ]['attachment_parent ' ] = $ header_data ['attachment_parent ' ] ?? '' ;
15391538
15401539 if ( isset ( $ header_data ['width ' ] ) ) {
You can’t perform that action at this time.
0 commit comments