diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 63f739e6b..46f798c79 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -35,15 +35,15 @@ $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); //', + 'url': '', 'uid': 'ID; ?>', 'time':'' }, - ajaxurl = '', - pagenow = 'id; ?>', - typenow = 'post_type) ) echo $current_screen->post_type; ?>', - adminpage = '', - thousandsSeparator = 'number_format['thousands_sep'] ); ?>', + ajaxurl = '', + pagenow = 'id; ?>', + typenow = 'post_type) ) echo $current_screen->post_type; ?>', + adminpage = '', + thousandsSeparator = 'number_format['thousands_sep'] ); ?>', decimalPoint = 'number_format['decimal_point'] ); ?>'; //]]> diff --git a/wp-admin/css/install.dev.css b/wp-admin/css/install.dev.css index 074cf2538..c1a50a641 100644 --- a/wp-admin/css/install.dev.css +++ b/wp-admin/css/install.dev.css @@ -53,7 +53,7 @@ abbr { margin: 6px 0 14px 0; border-bottom: none; text-align:center -} +} .step { margin: 20px 0 15px; diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index d8fa65334..4c29a707d 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -305,7 +305,7 @@ if ( $page_links )
-

tag to category converter'), 'admin.php?import=wp-cat2tag&step=3') ;?>.

+

tag to category converter'), 'admin.php?import=wp-cat2tag&step=3') ;?>.

' . + $months .= "\t\t\t\n"; } ?> diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index f7500bbb2..6b6458fed 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1086,7 +1086,7 @@ class Bulk_Upgrader_Skin extends WP_Upgrader_Skin { function error($error) { if ( is_string($error) && isset( $this->upgrader->strings[$error] ) ) $this->error = $this->upgrader->strings[$error]; - + if ( is_wp_error($error) && $error->get_error_code() ) { foreach ( $error->get_error_messages() as $emessage ) { if ( $error->get_error_data() ) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 5318e82b1..d58a31428 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -38,28 +38,28 @@ header('Content-Description: File Transfer'); header("Content-Disposition: attachment; filename=$filename"); header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true); -if ( $post_type and $post_type != 'all' ) { - $where = $wpdb->prepare("WHERE post_type = %s ", $post_type); -} else { - $where = "WHERE post_type != 'revision' "; -} -if ( $author and $author != 'all' ) { - $author_id = (int) $author; - $where .= $wpdb->prepare("AND post_author = %d ", $author_id); -} -if ( $start_date and $start_date != 'all' ) { - $where .= $wpdb->prepare("AND post_date >= %s ", $start_date); -} -if ( $end_date and $end_date != 'all' ) { - $where .= $wpdb->prepare("AND post_date < %s ", $end_date); -} -if ( $category and $category != 'all' ) { - $taxomony_id = (int) $category; - $where .= $wpdb->prepare("AND ID IN (SELECT object_id FROM {$wpdb->term_relationships} " . "WHERE term_taxonomy_id = %d) ", $taxomony_id); -} -if ( $status and $status != 'all' ) { - $where .= $wpdb->prepare("AND post_status = %s ", $status); -} +if ( $post_type and $post_type != 'all' ) { + $where = $wpdb->prepare("WHERE post_type = %s ", $post_type); +} else { + $where = "WHERE post_type != 'revision' "; +} +if ( $author and $author != 'all' ) { + $author_id = (int) $author; + $where .= $wpdb->prepare("AND post_author = %d ", $author_id); +} +if ( $start_date and $start_date != 'all' ) { + $where .= $wpdb->prepare("AND post_date >= %s ", $start_date); +} +if ( $end_date and $end_date != 'all' ) { + $where .= $wpdb->prepare("AND post_date < %s ", $end_date); +} +if ( $category and $category != 'all' ) { + $taxomony_id = (int) $category; + $where .= $wpdb->prepare("AND ID IN (SELECT object_id FROM {$wpdb->term_relationships} " . "WHERE term_taxonomy_id = %d) ", $taxomony_id); +} +if ( $status and $status != 'all' ) { + $where .= $wpdb->prepare("AND post_status = %s ", $status); +} // grab a snapshot of post IDs, just in case it changes during the export $post_ids = $wpdb->get_col("SELECT ID FROM $wpdb->posts $where ORDER BY post_date_gmt ASC"); diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 24228b962..6e80d2e0d 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -313,7 +313,7 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) { // A writable uploads dir will pass this test. Again, there's no point overriding this one. if ( ! ( ( $uploads = wp_upload_dir($time) ) && false === $uploads['error'] ) ) - return call_user_func($upload_error_handler, $file, $uploads['error'] ); + return call_user_func($upload_error_handler, $file, $uploads['error'] ); $filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback ); diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 77a4feead..3bf91696f 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -656,15 +656,15 @@ function win_is_writable($path) { /** * Send a HTTP header to disable content type sniffing in browsers which support it. - * + * * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985 - * + * * @since 3.0.0. * @return none */ function send_nosniff_header() { - @header( 'X-Content-Type-Options: nosniff' ); + @header( 'X-Content-Type-Options: nosniff' ); } /** * Display the default admin color scheme picker (Used in user-edit.php) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index 950a7a231..e7c7236ea 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -168,7 +168,7 @@ function confirm_delete_users( $users ) { global $current_user; if ( !is_array( $users ) ) return false; - + screen_icon('tools'); ?>

@@ -183,13 +183,13 @@ function confirm_delete_users( $users ) { foreach ( ( $allusers = (array) $_POST['allusers'] ) as $key => $val ) { if ( $val != '' && $val != '0' ) { $delete_user = new WP_User( $val ); - + if ( in_array( $delete_user->user_login, $site_admins ) ) wp_die( sprintf( __( 'Warning! User cannot be deleted. The user %s is a network admnistrator.' ), $delete_user->user_login ) ); - + echo "\n"; $blogs = get_blogs_of_user( $val, true ); - + if ( !empty( $blogs ) ) { echo '

' . sprintf( __( 'Sites from %s:' ), $delete_user->user_login ) . '

'; foreach ( (array) $blogs as $key => $details ) { diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 43e0ad2cb..207387a25 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -13,7 +13,7 @@ wp_nav_menu_taxonomy_metaboxes(); */ function wp_nav_menu_post_type_metaboxes() { $post_types = get_post_types( array( 'public' => true ), 'object' ); - + if ( !$post_types ) return false; @@ -99,10 +99,10 @@ function wp_nav_menu_create_metabox() { ?> */ function wp_nav_menu_item_link_metabox() { $args = array( 'post_status' => 'any', 'post_type' => 'nav_menu_item', 'meta_value' => 'custom', 'showposts' => -1 ); - + // @todo transient caching of these results with proper invalidation on updating links $query = new WP_Query( $args ); - + ?> - +

@@ -146,16 +146,16 @@ function wp_nav_menu_item_link_metabox() { */ function wp_nav_menu_item_post_type_metabox( $object, $post_type ) { $args = array( 'post_type' => $post_type['args']->name, 'post_status' => 'publish', 'showposts' => -1 ); - + if ( 'attachment' == $post_type['args']->name ) $args['post_status'] = 'any'; - + // @todo transient caching of these results with proper invalidation on updating of a post of this type $query = new WP_Query( $args ); - + if ( !$query->posts ) $error = '

  • '. sprintf( __( 'No %s exists' ), $post_type['args']->label ) .'
  • '; - + $pt_names = ''; if ( is_array($query->posts) ) { foreach ( $query->posts as $post ) { @@ -166,19 +166,19 @@ function wp_nav_menu_item_post_type_metabox( $object, $post_type ) { } } } - + $id = $post_type['args']->name; ?>

    - +

    - +