diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 60f0a0cab7..ed4c55b1e0 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -665,7 +665,7 @@ function link_categories_meta_box($link) {
diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 8d014258fa..3bfea5741f 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -747,7 +747,7 @@ function update_meta( $meta_id, $meta_key, $meta_value ) { function _fix_attachment_links( $post_ID ) { $post = & get_post( $post_ID, ARRAY_A ); $content = $post['post_content']; - + // quick sanity check, don't run if no pretty permalinks or post is not published if ( !get_option('permalink_structure') || $post['post_status'] != 'publish' ) return; diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 2b4172746d..2fe318d9a6 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -809,7 +809,7 @@ final class WP_Screen { if ( $this->get_option( 'layout_columns' ) ) { $this->columns = (int) get_user_option("screen_layout_$this->id"); - + if ( ! $this->columns && $this->get_option( 'layout_columns', 'default' ) ) $this->columns = $this->get_option( 'layout_columns', 'default' ); } diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 05b1736819..ff787167ea 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -223,7 +223,7 @@ function get_theme_updates() { if ( ! isset( $current->response ) ) return array(); - $update_themes = array(); + $update_themes = array(); foreach ( $current->response as $stylesheet => $data ) { $update_themes[ $stylesheet ] = wp_get_theme( $stylesheet ); $update_themes[ $stylesheet ]->update = $data; diff --git a/wp-admin/index.php b/wp-admin/index.php index 6b83f2a97b..3427397735 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -91,7 +91,7 @@ get_current_screen()->set_help_sidebar( '
' . __( 'Documentation on Dashboard' ) . '
' . '' . __( 'Support Forums' ) . '
' ); - + include (ABSPATH . 'wp-admin/admin-header.php'); $today = current_time('mysql', 1); diff --git a/wp-admin/install.php b/wp-admin/install.php index 6e37516461..e39d1f4fc5 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -163,7 +163,7 @@ if ( !$mysql_compat || !$php_compat ) { } if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) { - display_header(); + display_header(); die( '' . __( 'Your wp-config.php
file has an empty database table prefix, which is not supported.' ) . '