Skip to content

Commit 42d8a9c

Browse files
committed
Improve assignment indentation
1 parent f01baab commit 42d8a9c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/wp-admin/includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 ) ) {

src/wp-includes/theme.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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'] ) ) {

0 commit comments

Comments
 (0)