diff --git a/wp-admin/css/colors-fresh.dev.css b/wp-admin/css/colors-fresh.dev.css
index 4d36834748..0c988c21e5 100644
--- a/wp-admin/css/colors-fresh.dev.css
+++ b/wp-admin/css/colors-fresh.dev.css
@@ -1071,7 +1071,7 @@ table.widefat .spam a:hover,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.current a.menu-top {
- background: #aaa url(../images/menu-bits.gif) top left repeat-x;
+ background: #aaa url(../images/menu-bits.gif) top left repeat-x;
border: #aaa 1px solid;
color: #000;
}
diff --git a/wp-admin/css/install.dev.css b/wp-admin/css/install.dev.css
index 37d34688d4..672c011b55 100644
--- a/wp-admin/css/install.dev.css
+++ b/wp-admin/css/install.dev.css
@@ -207,6 +207,6 @@ textarea {
.message {
border: 1px solid #e6db55;
padding: 0.3em 0.6em;
- margin: 5px 0 15px;
+ margin: 5px 0 15px;
background-color: #ffffe0;
}
diff --git a/wp-admin/css/nav-menu-rtl.dev.css b/wp-admin/css/nav-menu-rtl.dev.css
index b5a9e181d5..3768454228 100644
--- a/wp-admin/css/nav-menu-rtl.dev.css
+++ b/wp-admin/css/nav-menu-rtl.dev.css
@@ -88,7 +88,7 @@
}
#side-sortables .potential-menu-item ul {
margin-right: 0;
-
+
}
/* Button Primary Actions */
diff --git a/wp-admin/css/nav-menu.dev.css b/wp-admin/css/nav-menu.dev.css
index 00e611f20e..78b5097a03 100644
--- a/wp-admin/css/nav-menu.dev.css
+++ b/wp-admin/css/nav-menu.dev.css
@@ -213,7 +213,7 @@ body {
#menu-container .submit { margin: 0px 0px 10px; padding: 0px; }
.meta-sep,
-.submitdelete,
+.submitdelete,
.submitcancel {
display:block;
float:left;
@@ -239,7 +239,7 @@ body {
vertical-align: middle;
}
-.button-controls {
+.button-controls {
clear:both;
margin: 10px 0;
}
@@ -280,7 +280,7 @@ body {
padding: 1em 0;
}
-.menu ul {
+.menu ul {
width: 100%;
}
.menu ul.sub-menu {
@@ -525,18 +525,18 @@ clear:both;
/* Clearfix */
#menu-item-name-wrap:after,
-#menu-item-url-wrap:after,
+#menu-item-url-wrap:after,
#menu-name-label:after,
#menu-settings-column .inside:after,
-#nav-menus-frame:after,
+#nav-menus-frame:after,
#post-body-content:after,
-.button-controls:after,
+.button-controls:after,
.major-publishing-actions:after,
.menu-item-settings:after {
- clear: both;
+ clear: both;
content: ".";
display: block;
- height: 0;
+ height: 0;
visibility: hidden;
}
#nav-menus-frame, .button-controls, #menu-item-url-wrap, #menu-item-name-wrap { display: block; }
diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css
index ac90c6f712..2547732919 100644
--- a/wp-admin/css/wp-admin.dev.css
+++ b/wp-admin/css/wp-admin.dev.css
@@ -1175,14 +1175,14 @@ div.comment-item:hover .row-actions {
#sidemenu li a span.update-plugins {
position: absolute;
font-family: Helvetica, Arial, sans-serif;
- font-size: 9px;
+ font-size: 9px;
line-height: 17px;
font-weight: bold;
- margin-top: 1px;
- margin-left: 7px;
- -moz-border-radius: 10px;
- -khtml-border-radius: 10px;
- -webkit-border-radius: 10px;
+ margin-top: 1px;
+ margin-left: 7px;
+ -moz-border-radius: 10px;
+ -khtml-border-radius: 10px;
+ -webkit-border-radius: 10px;
border-radius: 10px;
}
diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php
index 05e4666628..6da3d191e2 100644
--- a/wp-admin/custom-header.php
+++ b/wp-admin/custom-header.php
@@ -118,7 +118,7 @@ class Custom_Image_Header {
elseif ( 2 == $step )
wp_enqueue_style('imgareaselect');
}
-
+
/**
* Check if header text is allowed
*
@@ -272,7 +272,7 @@ class Custom_Image_Header {
jQuery('#text-color').val(old_color);
jQuery('#name').css('color', old_color);
jQuery('#desc').css('color', old_color);
- pickColor(old_color);
+ pickColor(old_color);
} else {
//Hide text
jQuery( text_objects.toString() ).hide();
@@ -371,7 +371,7 @@ class Custom_Image_Header {
y2: yinit,
maxHeight: ,
maxWidth: ,
- onInit: function () {
+ onInit: function () {
jQuery('#width').val(xinit);
jQuery('#height').val(yinit);
},
diff --git a/wp-admin/export.php b/wp-admin/export.php
index 13f721cd3c..152d6ac66b 100644
--- a/wp-admin/export.php
+++ b/wp-admin/export.php
@@ -48,7 +48,7 @@ $stati = "'" . implode("', '", get_post_stati( array( 'internal' => false ), 'na
if ( $monthyears = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, YEAR(DATE_ADD(post_date, INTERVAL 1 MONTH)) AS `eyear`, MONTH(DATE_ADD(post_date, INTERVAL 1 MONTH)) AS `emonth` FROM $wpdb->posts WHERE post_type IN ($types) AND post_status IN ($stati) ORDER BY post_date ASC ") ) {
foreach ( $monthyears as $k => $monthyear )
$monthyears[$k]->lmonth = $wp_locale->get_month( $monthyear->month, 2 );
- for( $s = 0, $e = count( $monthyears ) - 1; $e >= 0; $s++, $e-- ) {
+ for( $s = 0, $e = count( $monthyears ) - 1; $e >= 0; $s++, $e-- ) {
$dateoptions .= "\t\n";
$edateoptions .= "\t\n";
}
diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
index 2f36bfece1..37e5456c6d 100644
--- a/wp-admin/includes/class-wp-upgrader.php
+++ b/wp-admin/includes/class-wp-upgrader.php
@@ -1266,7 +1266,7 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
);
if ( is_multisite() && current_user_can( 'manage_network_plugins' ) )
- $install_actions['network_activate'] = '' . __('Network Activate') . '';
+ $install_actions['network_activate'] = '' . __('Network Activate') . '';
if ( $this->type == 'web' )
$install_actions['plugins_page'] = '' . __('Return to Plugin Installer') . '';
diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php
index e289858595..8cf406459f 100644
--- a/wp-admin/includes/export.php
+++ b/wp-admin/includes/export.php
@@ -25,65 +25,65 @@ define('WXR_VERSION', '1.0');
*/
function export_wp( $args = array() ) {
global $wpdb, $post_ids, $post, $wp_taxonomies;
-
+
if ( ! is_array( $args ) )
$args = array( 'author' => $args );
-
+
$defaults = array( 'author' => null, 'taxonomy' => null, 'post_type' => null, 'post_status' => null, 'start_date' => null, 'end_date' => null );
$args = wp_parse_args( $args, $defaults );
-
+
extract($args);
-
+
do_action('export_wp');
-
+
if( strlen( $start_date ) > 4 && strlen( $end_date ) > 4 )
$filename = 'wordpress.' . $start_date . '.' . $end_date . '.xml';
else
$filename = 'wordpress.' . date( 'Y-m-d' ) . '.xml';
-
+
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 && $post_type != 'all' )
$where = $wpdb->prepare("WHERE post_type = %s ", $post_type);
else
$where = "WHERE post_type != 'revision' ";
-
+
if ( $author && $author != 'all' ) {
$author_id = (int) $author;
$where .= $wpdb->prepare( "AND post_author = %d ", $author_id );
}
-
+
if ( $start_date && $start_date != 'all' )
$where .= $wpdb->prepare( "AND post_date >= %s ", $start_date );
-
+
if ( $end_date && $end_date != 'all' )
$where .= $wpdb->prepare( "AND post_date < %s ", $end_date );
-
+
if ( $taxonomy && is_array( $taxonomy ) ) {
foreach ( $taxonomy as $term_id ) {
if ( $term_id != 'all' )
$where .= $wpdb->prepare( "AND ID IN (SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d) ", $term_id );
}
}
-
+
if ( $post_status && $post_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" );
-
+
$categories = (array) get_categories( array( 'get' => 'all' ) );
$tags = (array) get_tags( array( 'get' => 'all' ) );
-
+
$custom_taxonomies = $wp_taxonomies;
unset( $custom_taxonomies['category'] );
unset( $custom_taxonomies['post_tag'] );
unset( $custom_taxonomies['link_category'] );
$custom_taxonomies = array_keys( $custom_taxonomies );
$terms = (array) get_terms( $custom_taxonomies, array( 'get' => 'all' ) );
-
+
/**
* {@internal Missing Short Description}}
*
@@ -94,19 +94,19 @@ function export_wp( $args = array() ) {
function wxr_missing_parents( $categories ) {
if ( ! is_array( $categories ) || empty( $categories ) )
return array();
-
+
foreach ( $categories as $category ){
$parents[$category->term_id] = $category->parent;
}
-
+
$parents = array_unique( array_diff( $parents, array_keys( $parents ) ) );
-
+
if ( $zero = array_search( '0', $parents ) )
unset( $parents[$zero] );
-
+
return $parents;
}
-
+
while ( $parents = wxr_missing_parents( $categories ) ) {
$found_parents = get_categories( array( 'include' => join( ', ', $parents) ) );
if ( is_array( $found_parents ) && count( $found_parents ) )
@@ -114,7 +114,7 @@ function export_wp( $args = array() ) {
else
break;
}
-
+
// Put them in order to be inserted with no child going before its parent
$pass = 0;
$passes = 1000 + count( $categories );
@@ -125,7 +125,7 @@ function export_wp( $args = array() ) {
$categories[] = $cat;
}
unset( $categories );
-
+
/**
* Place string in CDATA tag.
*
@@ -136,13 +136,13 @@ function export_wp( $args = array() ) {
function wxr_cdata( $str ) {
if ( seems_utf8( $str ) == false )
$str = utf8_encode( $str );
-
+
// $str = ent2ncr(esc_html($str));
$str = "";
-
+
return $str;
}
-
+
/**
* {@internal Missing Short Description}}
*
@@ -152,7 +152,7 @@ function export_wp( $args = array() ) {
*/
function wxr_site_url() {
global $current_site;
-
+
// mu: the base url
if ( isset( $current_site->domain ) )
return network_home_url();
@@ -160,7 +160,7 @@ function export_wp( $args = array() ) {
else
return get_bloginfo_rss( 'url' );
}
-
+
/**
* {@internal Missing Short Description}}
*
@@ -171,10 +171,10 @@ function export_wp( $args = array() ) {
function wxr_cat_name( $c ) {
if ( empty( $c->name ) )
return;
-
+
echo '