diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php
index 31ee3282dc..d671583350 100644
--- a/wp-admin/admin-ajax.php
+++ b/wp-admin/admin-ajax.php
@@ -1064,10 +1064,10 @@ case 'inline-save':
}
$data = &$_POST;
-
+
$post = get_post( $post_ID, ARRAY_A );
$post = add_magic_quotes($post); //since it is from db
-
+
$data['content'] = $post['post_content'];
$data['excerpt'] = $post['post_excerpt'];
@@ -1323,7 +1323,7 @@ case 'save-widget' :
echo "deleted:$widget_id";
die();
}
-
+
die('1');
break;
default :
diff --git a/wp-admin/cache-manifest.php b/wp-admin/cache-manifest.php
index cb5d41226b..669a110f72 100644
--- a/wp-admin/cache-manifest.php
+++ b/wp-admin/cache-manifest.php
@@ -24,7 +24,7 @@ header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
header( 'Pragma: no-cache' );
-header( 'Content-Type: text/cache-manifest; charset=UTF-8' );
+header( 'Content-Type: text/cache-manifest; charset=UTF-8' );
?>
CACHE MANIFEST
#
diff --git a/wp-admin/css/widgets.css b/wp-admin/css/widgets.css
index 8a47158005..f34b7d5b58 100644
--- a/wp-admin/css/widgets.css
+++ b/wp-admin/css/widgets.css
@@ -193,7 +193,7 @@ a.widget-action {
line-height: 16px;
}
-.widget-inside,
+.widget-inside,
.widget-description {
display: none;
}
diff --git a/wp-admin/import/dotclear.php b/wp-admin/import/dotclear.php
index a35ccba220..d6552f76e9 100644
--- a/wp-admin/import/dotclear.php
+++ b/wp-admin/import/dotclear.php
@@ -50,7 +50,7 @@ if(!function_exists('link_exists'))
/**
* Convert from dotclear charset to utf8 if required
- *
+ *
* @package WordPress
* @subpackage Dotclear_Import
*
diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php
index 9d3bb660c2..6954e85834 100644
--- a/wp-admin/includes/class-wp-upgrader.php
+++ b/wp-admin/includes/class-wp-upgrader.php
@@ -34,7 +34,7 @@ class WP_Upgrader {
else
$this->skin = $skin;
}
-
+
function init() {
$this->skin->set_upgrader($this);
$this->generic_strings();
@@ -521,7 +521,7 @@ class Theme_Upgrader extends WP_Upgrader {
}
function install($package) {
-
+
$this->init();
$this->install_strings();
@@ -786,7 +786,7 @@ class WP_Upgrader_Skin {
}
/**
- * Plugin Upgrader Skin for WordPress Plugin Upgrades.
+ * Plugin Upgrader Skin for WordPress Plugin Upgrades.
*
* @TODO More Detailed docs, for methods as well.
*
@@ -835,7 +835,7 @@ class Plugin_Upgrader_Skin extends WP_Upgrader_Skin {
}
/**
- * Plugin Installer Skin for WordPress Plugin Installer.
+ * Plugin Installer Skin for WordPress Plugin Installer.
*
* @TODO More Detailed docs, for methods as well.
*
@@ -890,7 +890,7 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
}
/**
- * Theme Installer Skin for the WordPress Theme Installer.
+ * Theme Installer Skin for the WordPress Theme Installer.
*
* @TODO More Detailed docs, for methods as well.
*
@@ -955,7 +955,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
}
/**
- * Theme Upgrader Skin for WordPress Theme Upgrades.
+ * Theme Upgrader Skin for WordPress Theme Upgrades.
*
* @TODO More Detailed docs, for methods as well.
*
diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index 30f8a0293b..ec93fb0d09 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -317,7 +317,7 @@ function wp_dashboard_right_now() {
echo "\n\t".'
';
$ct = current_theme_info();
-
+
echo "\n\t
";
if ( !empty($wp_registered_sidebars) ) {
$sidebars_widgets = wp_get_sidebars_widgets();
diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index 36ff1fec37..0b7d2289e6 100644
--- a/wp-admin/includes/file.php
+++ b/wp-admin/includes/file.php
@@ -71,7 +71,7 @@ function get_home_path() {
if ( $home != '' && $home != $siteurl ) {
$wp_path_rel_to_home = str_replace($home, '', $siteurl); /* $siteurl - $home */
$pos = strpos($_SERVER["SCRIPT_FILENAME"], $wp_path_rel_to_home);
- $home_path = substr($_SERVER["SCRIPT_FILENAME"], 0, $pos);
+ $home_path = substr($_SERVER["SCRIPT_FILENAME"], 0, $pos);
$home_path = trailingslashit( $home_path );
} else {
$home_path = ABSPATH;
@@ -687,7 +687,7 @@ function request_filesystem_credentials($form_post, $type = '', $error = false)
else if ( !isset($credentials['connection_type']) || (isset($_POST['connection_type']) && 'ftp' == $_POST['connection_type']) )
$credentials['connection_type'] = 'ftp';
- if ( ! $error &&
+ if ( ! $error &&
(
( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) ||
( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 77200f576b..37de525a66 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -194,7 +194,7 @@ function media_handle_upload($file_id, $post_id, $post_data = array()) {
if ( isset($file['error']) )
return new WP_Error( 'upload_error', $file['error'] );
-
+
$name_parts = pathinfo($name);
$name = trim( substr( $name, 0, -(1 + strlen($name_parts['extension'])) ) );
@@ -327,7 +327,7 @@ if ( is_string($content_func) )
$args = func_get_args();
$args = array_slice($args, 1);
call_user_func_array($content_func, $args);
-
+
do_action('admin_print_footer_scripts');
?>
diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php
index ace5d3ff0c..59544d04e3 100644
--- a/wp-admin/includes/misc.php
+++ b/wp-admin/includes/misc.php
@@ -138,18 +138,18 @@ function save_mod_rewrite_rules() {
/**
* Updates the IIS web.config file with the current rules if it is writable.
* If the permalinks do not require rewrite rules then the rules are deleted from the web.config file.
- *
+ *
* @since 2.8.0
- *
+ *
* @return bool True if web.config was updated successfully
*/
function iis7_save_url_rewrite_rules(){
global $wp_rewrite;
-
+
$home_path = get_home_path();
$web_config_file = $home_path . 'web.config';
- // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
+ // Using win_is_writable() instead of is_writable() because of a bug in Windows PHP
if ( ( ! file_exists($web_config_file) && win_is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks() ) || win_is_writable($web_config_file) ) {
if ( iis7_supports_permalinks() ) {
$rule = $wp_rewrite->iis7_url_rewrite_rules();
@@ -401,15 +401,15 @@ function wp_menu_unfold() {
/**
* Check if IIS 7 supports pretty permalinks
- *
+ *
* @since 2.8.0
- *
+ *
* @return bool
*/
function iis7_supports_permalinks() {
global $is_iis7;
- $supports_permalinks = false;
+ $supports_permalinks = false;
if ( $is_iis7 ) {
/* First we check if the DOMDocument class exists. If it does not exist,
* which is the case for PHP 4.X, then we cannot easily update the xml configuration file,
@@ -418,29 +418,29 @@ function iis7_supports_permalinks() {
* is recommended to use PHP 5.X NTS.
* Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When
* URL Rewrite 1.1 is loaded it always sets a server variable called 'IIS_UrlRewriteModule'.
- * Lastly we make sure that PHP is running via FastCGI. This is important because if it runs
+ * Lastly we make sure that PHP is running via FastCGI. This is important because if it runs
* via ISAPI then pretty permalinks will not work.
*/
$supports_permalinks = class_exists('DOMDocument') && isset($_SERVER['IIS_UrlRewriteModule']) && ( php_sapi_name() == 'cgi-fcgi' );
}
-
+
return apply_filters('iis7_supports_permalinks', $supports_permalinks);
}
/**
* Check if rewrite rule for WordPress already exists in the IIS 7 configuration file
- *
+ *
* @since 2.8.0
- *
+ *
* @return bool
* @param string $filename The file path to the configuration file
*/
-function iis7_rewrite_rule_exists($filename) {
+function iis7_rewrite_rule_exists($filename) {
if ( ! file_exists($filename) )
- return false;
+ return false;
if ( ! class_exists('DOMDocument') )
return false;
-
+
$doc = new DOMDocument();
if ( $doc->load($filename) === false )
return false;
@@ -449,25 +449,25 @@ function iis7_rewrite_rule_exists($filename) {
if ( $rules->length == 0 )
return false;
else
- return true;
+ return true;
}
/**
* Delete WordPress rewrite rule from web.config file if it exists there
*
- * @since 2.8.0
+ * @since 2.8.0
*
* @param string $filename Name of the configuration file
* @return bool
*/
-function iis7_delete_rewrite_rule($filename) {
+function iis7_delete_rewrite_rule($filename) {
// If configuration file does not exist then rules also do not exist so there is nothing to delete
if ( ! file_exists($filename) )
return true;
-
+
if ( ! class_exists('DOMDocument') )
return false;
-
+
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;
@@ -487,30 +487,30 @@ function iis7_delete_rewrite_rule($filename) {
/**
* Add WordPress rewrite rule to the IIS 7 configuration file.
- *
+ *
* @since 2.8.0
- *
+ *
* @param string $filename The file path to the configuration file
* @param string $rewrite_rule The XML fragment with URL Rewrite rule
* @return bool
*/
-function iis7_add_rewrite_rule($filename, $rewrite_rule) {
+function iis7_add_rewrite_rule($filename, $rewrite_rule) {
if ( ! class_exists('DOMDocument') )
return false;
-
+
// If configuration file does not exist then we create one.
if ( ! file_exists($filename) ) {
$fp = fopen( $filename, 'w');
fwrite($fp, '');
fclose($fp);
}
-
+
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;
if ( $doc->load($filename) === false )
return false;
-
+
$xpath = new DOMXPath($doc);
// First check if the rule already exists as in that case there is no need to re-add it
@@ -524,7 +524,7 @@ function iis7_add_rewrite_rule($filename, $rewrite_rule) {
$rules_node = $xmlnodes->item(0);
} else {
$rules_node = $doc->createElement('rules');
-
+
$xmlnodes = $xpath->query('/configuration/system.webServer/rewrite');
if ( $xmlnodes->length > 0 ) {
$rewrite_node = $xmlnodes->item(0);
@@ -540,7 +540,7 @@ function iis7_add_rewrite_rule($filename, $rewrite_rule) {
} else {
$system_webServer_node = $doc->createElement('system.webServer');
$system_webServer_node->appendChild($rewrite_node);
-
+
$xmlnodes = $xpath->query('/configuration');
if ( $xmlnodes->length > 0 ) {
$config_node = $xmlnodes->item(0);
@@ -553,20 +553,20 @@ function iis7_add_rewrite_rule($filename, $rewrite_rule) {
}
}
}
-
+
$rule_fragment = $doc->createDocumentFragment();
$rule_fragment->appendXML($rewrite_rule);
$rules_node->appendChild($rule_fragment);
- $doc->formatOutput = true;
+ $doc->formatOutput = true;
saveDomDocument($doc, $filename);
- return true;
+ return true;
}
/**
* Saves the XML document into a file
- *
+ *
* @since 2.8.0
*
* @param DOMDocument $doc
diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php
index b72e7627e0..4f469c9611 100644
--- a/wp-admin/includes/plugin.php
+++ b/wp-admin/includes/plugin.php
@@ -468,7 +468,7 @@ function delete_plugins($plugins, $redirect = '' ) {
return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s'), implode(', ', $errors)) );
// Force refresh of plugin update information
- if ( $current = get_transient('update_plugins') ) {
+ if ( $current = get_transient('update_plugins') ) {
unset( $current->response[ $plugin_file ] );
set_transient('update_plugins', $current);
}
@@ -598,7 +598,7 @@ function add_menu_page( $page_title, $menu_title, $access_level, $file, $functio
if ( empty($icon_url) )
$icon_url = 'images/generic.png';
elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') )
- $icon_url = 'https://' . substr($icon_url, 7);
+ $icon_url = 'https://' . substr($icon_url, 7);
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
@@ -640,7 +640,7 @@ function add_utility_page( $page_title, $menu_title, $access_level, $file, $func
if ( empty($icon_url) )
$icon_url = 'images/generic.png';
elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') )
- $icon_url = 'https://' . substr($icon_url, 7);
+ $icon_url = 'https://' . substr($icon_url, 7);
$_wp_last_utility_menu++;
diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php
index d4955cae50..25ce199677 100644
--- a/wp-admin/includes/post.php
+++ b/wp-admin/includes/post.php
@@ -927,7 +927,7 @@ function get_sample_permalink($id, $title=null, $name = null) {
$post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID);
}
- $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent);
+ $post->post_name = wp_unique_post_slug($post->post_name, $post->ID, $post->post_status, $post->post_type, $post->post_parent);
// If the user wants to set a new name -- override the current one
// Note: if empty name is supplied -- use the title instead, see #6072
@@ -1339,13 +1339,13 @@ function wp_tiny_mce( $teeny = false ) {
$language = $initArray['language'];
$zip = $compress_scripts ? 1 : 0;
-
+
/**
* Deprecated
- *
+ *
* The tiny_mce_version filter is not needed since external plugins are loaded directly by TinyMCE.
* These plugins can be refreshed by appending query string to the URL passed to mce_external_plugins filter.
- * If the plugin has a popup dialog, a query string can be added to the button action that opens it (in the plugin's code).
+ * If the plugin has a popup dialog, a query string can be added to the button action that opens it (in the plugin's code).
*/
$version = apply_filters('tiny_mce_version', '');
$version = 'ver=' . $tinymce_version . $version;
diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php
index 6f3106ec40..53ec246d72 100644
--- a/wp-admin/includes/schema.php
+++ b/wp-admin/includes/schema.php
@@ -303,7 +303,7 @@ function populate_options() {
'widget_categories' => array(),
'widget_text' => array(),
'widget_rss' => array(),
-
+
// 2.8
'timezone_string' => ''
);
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 0d35a8f104..e8f298d3dc 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -21,25 +21,25 @@
* @param unknown_type $per_page
*/
function cat_rows( $parent = 0, $level = 0, $categories = 0, $page = 1, $per_page = 20 ) {
-
+
$count = 0;
-
+
if ( empty($categories) ) {
-
+
$args = array('hide_empty' => 0);
if ( !empty($_GET['s']) )
$args['search'] = $_GET['s'];
-
- $categories = get_categories( $args );
-
+
+ $categories = get_categories( $args );
+
if ( empty($categories) )
return false;
}
- $children = _get_term_hierarchy('category');
-
- _cat_rows( $parent, $level, $categories, $children, $page, $per_page, $count );
-
+ $children = _get_term_hierarchy('category');
+
+ _cat_rows( $parent, $level, $categories, $children, $page, $per_page, $count );
+
}
/**
@@ -55,22 +55,22 @@ function cat_rows( $parent = 0, $level = 0, $categories = 0, $page = 1, $per_pag
* @param unknown_type $per_page
* @return unknown
*/
-function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1, $per_page = 20, &$count ) {
-
+function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1, $per_page = 20, &$count ) {
+
$start = ($page - 1) * $per_page;
$end = $start + $per_page;
ob_start();
-
+
foreach ( $categories as $key => $category ) {
if ( $count >= $end )
break;
-
+
if ( $category->parent != $parent && empty($_GET['s']) )
continue;
// If the page starts in a subtree, print the parents.
if ( $count == $start && $category->parent > 0 ) {
-
+
$my_parents = array();
$p = $category->parent;
while ( $p ) {
@@ -80,7 +80,7 @@ function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1,
break;
$p = $my_parent->parent;
}
-
+
$num_parents = count($my_parents);
while( $my_parent = array_pop($my_parents) ) {
echo "\t" . _cat_row( $my_parent, $level - $num_parents );
@@ -91,12 +91,12 @@ function _cat_rows( $parent = 0, $level = 0, $categories, &$children, $page = 1,
if ( $count >= $start )
echo "\t" . _cat_row( $category, $level );
- unset( $categories[ $key ] );
-
+ unset( $categories[ $key ] );
+
$count++;
if ( isset($children[$category->term_id]) )
- _cat_rows( $category->term_id, $level + 1, $categories, $children, $page, $per_page, $count );
+ _cat_rows( $category->term_id, $level + 1, $categories, $children, $page, $per_page, $count );
}
$output = ob_get_contents();
@@ -517,13 +517,13 @@ function wp_category_checklist( $post_id = 0, $descendants_and_self = 0, $select
// Post process $categories rather than adding an exclude to the get_terms() query to keep the query the same across all posts (for any query cache)
$checked_categories = array();
- $keys = array_keys( $categories );
-
+ $keys = array_keys( $categories );
+
foreach( $keys as $k ) {
if ( in_array( $categories[$k]->term_id, $args['selected_cats'] ) ) {
$checked_categories[] = $categories[$k];
unset( $categories[$k] );
- }
+ }
}
// Put checked cats on top
@@ -3598,7 +3598,7 @@ function screen_layout($screen) {
$screen_layout_columns = 0;
return '';
}
-
+
$screen_layout_columns = get_user_option("screen_layout_$screen");
$num = $columns[$screen];
diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
index 94259b6078..5c9ef6b2d8 100644
--- a/wp-admin/includes/update.php
+++ b/wp-admin/includes/update.php
@@ -154,7 +154,7 @@ function wp_plugin_update_row( $file, $plugin_data ) {
$plugins_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());
$plugin_name = wp_kses( $plugin_data['Name'], $plugins_allowedtags );
-
+
$details_url = admin_url('plugin-install.php?tab=plugin-information&plugin=' . $r->slug . '&TB_iframe=true&width=600&height=800');
echo '
';
@@ -164,9 +164,9 @@ function wp_plugin_update_row( $file, $plugin_data ) {
printf( __('There is a new version of %1$s available. View version %4$s Details automatic upgrade unavailable for this plugin.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version );
else
printf( __('There is a new version of %1$s available. View version %4$s Details or upgrade automatically.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&plugin=' . $file, 'upgrade-plugin_' . $file) );
-
+
do_action( "in_plugin_update_message-$file", $plugin_data, $r );
-
+
echo ' |
';
}
add_action( 'after_plugin_row', 'wp_plugin_update_row', 10, 2 );
diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php
index ec158669e3..33e751f53c 100644
--- a/wp-admin/includes/user.php
+++ b/wp-admin/includes/user.php
@@ -179,8 +179,8 @@ function edit_user( $user_id = 0 ) {
}
// Allow plugins to return there own errors.
- do_action_ref_array('user_profile_update_errors', array ( &$errors, $update, &$user ) );
-
+ do_action_ref_array('user_profile_update_errors', array ( &$errors, $update, &$user ) );
+
if ( $errors->get_error_codes() )
return $errors;
@@ -803,7 +803,7 @@ function default_password_nag_handler($errors = false) {
return;
//get_user_setting = JS saved UI setting. else no-js-falback code.
- if ( 'hide' == get_user_setting('default_password_nag') || isset($_GET['default_password_nag']) && '0' == $_GET['default_password_nag'] ) {
+ if ( 'hide' == get_user_setting('default_password_nag') || isset($_GET['default_password_nag']) && '0' == $_GET['default_password_nag'] ) {
delete_user_setting('default_password_nag');
update_usermeta($user_ID, 'default_password_nag', false);
}
diff --git a/wp-admin/js/common.dev.js b/wp-admin/js/common.dev.js
index 262fea50c2..207214b591 100644
--- a/wp-admin/js/common.dev.js
+++ b/wp-admin/js/common.dev.js
@@ -137,7 +137,7 @@ showNotice = {
jQuery(document).ready( function($) {
var lastClicked = false, checks, first, last, checked;
-
+
// pulse
$('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300);
diff --git a/wp-admin/js/custom-fields.dev.js b/wp-admin/js/custom-fields.dev.js
index eecb56b88f..70be83a8c4 100644
--- a/wp-admin/js/custom-fields.dev.js
+++ b/wp-admin/js/custom-fields.dev.js
@@ -1,6 +1,6 @@
jQuery(document).ready( function($) {
var before, addBefore, addAfter, delBefore;
-
+
before = function() {
var nonce = $('#newmeta [name=_ajax_nonce]').val(), postId = $('#post_ID').val();
if ( !nonce || !postId ) { return false; }
diff --git a/wp-admin/js/edit-comments.dev.js b/wp-admin/js/edit-comments.dev.js
index 659c1e09df..2d7ddbe867 100644
--- a/wp-admin/js/edit-comments.dev.js
+++ b/wp-admin/js/edit-comments.dev.js
@@ -3,7 +3,7 @@ var theList, theExtraList, toggleWithKeyboard = false;
setCommentsList = function() {
var totalInput, perPageInput, pageInput, lastConfidentTime = 0, dimAfter, delBefore, updateTotalCount, delAfter;
-
+
totalInput = $('#comments-form .tablenav :input[name="_total"]');
perPageInput = $('#comments-form .tablenav :input[name="_per_page"]');
pageInput = $('#comments-form .tablenav :input[name="_page"]');
@@ -101,7 +101,7 @@ setCommentsList = function() {
a.html(n);
});
-
+
// XML response
if ( ( 'object' == typeof r ) && lastConfidentTime < settings.parsed.responses[0].supplemental.time ) {
// Set the total to the known good value (even if this value is a little old, newer values should only be a few less, and so shouldn't mess up the page links)
@@ -156,7 +156,7 @@ commentReply = {
if ( $('#the-comment-list #replyrow').length > 0 )
commentReply.close();
});
-
+
this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || '';
},
@@ -250,7 +250,7 @@ commentReply = {
setTimeout(function() {
var rtop, rbottom, scrollTop, vp, scrollBottom;
-
+
rtop = $('#replyrow').offset().top;
rbottom = rtop + $('#replyrow').height();
scrollTop = window.pageYOffset || document.documentElement.scrollTop;
@@ -316,7 +316,7 @@ commentReply = {
$(c).hide()
$('#replyrow').after(c);
-
+
this.o = id = '#comment-'+r.id;
this.revert();
this.addEvents($(id));
@@ -357,7 +357,7 @@ $(document).ready(function(){
make_hotkeys_redirect = function(which) {
return function() {
var first_last, l;
-
+
first_last = 'next' == which? 'first' : 'last';
l = $('.'+which+'.page-numbers');
if (l.length)
diff --git a/wp-admin/js/inline-edit-post.dev.js b/wp-admin/js/inline-edit-post.dev.js
index 4fd83bbe54..ecc93b6b68 100644
--- a/wp-admin/js/inline-edit-post.dev.js
+++ b/wp-admin/js/inline-edit-post.dev.js
@@ -192,7 +192,7 @@ inlineEditPost = {
save : function(id) {
var params, fields;
-
+
if( typeof(id) == 'object' )
id = this.getId(id);
diff --git a/wp-admin/js/inline-edit-tax.dev.js b/wp-admin/js/inline-edit-tax.dev.js
index d26f81887e..91c85ff81a 100644
--- a/wp-admin/js/inline-edit-tax.dev.js
+++ b/wp-admin/js/inline-edit-tax.dev.js
@@ -64,7 +64,7 @@ inlineEditTax = {
save : function(id) {
var params, fields, tax = $('input[name="taxonomy"]').val() || '';
-
+
if( typeof(id) == 'object' )
id = this.getId(id);
diff --git a/wp-admin/js/media-upload.dev.js b/wp-admin/js/media-upload.dev.js
index 1fe5cf9aca..e2c00ae229 100644
--- a/wp-admin/js/media-upload.dev.js
+++ b/wp-admin/js/media-upload.dev.js
@@ -1,7 +1,7 @@
// send html to the post editor
function send_to_editor(h) {
var ed;
-
+
if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
ed.focus();
if (tinymce.isIE)
diff --git a/wp-admin/js/page.dev.js b/wp-admin/js/page.dev.js
index d310404b92..89a3d0ab54 100644
--- a/wp-admin/js/page.dev.js
+++ b/wp-admin/js/page.dev.js
@@ -22,7 +22,7 @@ jQuery(document).ready( function($) {
function updateText() {
var attemptedDate, originalDate, currentDate, publishOn;
-
+
attemptedDate = new Date( $('#aa').val(), $('#mm').val() -1, $('#jj').val(), $('#hh').val(), $('#mn').val());
originalDate = new Date( $('#hidden_aa').val(), $('#hidden_mm').val() -1, $('#hidden_jj').val(), $('#hidden_hh').val(), $('#hidden_mn').val());
currentDate = new Date( $('#cur_aa').val(), $('#cur_mm').val() -1, $('#cur_jj').val(), $('#cur_hh').val(), $('#cur_mn').val());
diff --git a/wp-admin/js/post.dev.js b/wp-admin/js/post.dev.js
index 101b067b90..d1007f55bb 100644
--- a/wp-admin/js/post.dev.js
+++ b/wp-admin/js/post.dev.js
@@ -36,7 +36,7 @@ function tag_update_quickclicks(taxbox) {
jQuery.each( current_tags, function( key, val ) {
var txt, button_id;
-
+
val = jQuery.trim(val);
if ( !val.match(/^\s+$/) && '' != val ) {
button_id = jQuery(taxbox).attr('id') + '-check-num-' + key;
@@ -52,7 +52,7 @@ function tag_update_quickclicks(taxbox) {
function tag_flush_to_text(id, a) {
a = a || false;
var taxbox, text, tags, newtags;
-
+
taxbox = jQuery('#'+id);
text = a ? jQuery(a).text() : taxbox.find('input.newtag').val();
@@ -68,7 +68,7 @@ function tag_flush_to_text(id, a) {
newtags = array_unique_noempty(newtags.split(',')).join(',');
taxbox.find('.the-tags').val(newtags);
tag_update_quickclicks(taxbox);
-
+
if ( ! a )
taxbox.find('input.newtag').val('').focus();
@@ -317,7 +317,7 @@ jQuery(document).ready( function($) {
function updateText() {
var attemptedDate, originalDate, currentDate, publishOn;
-
+
attemptedDate = new Date( $('#aa').val(), $('#mm').val() -1, $('#jj').val(), $('#hh').val(), $('#mn').val());
originalDate = new Date( $('#hidden_aa').val(), $('#hidden_mm').val() -1, $('#hidden_jj').val(), $('#hidden_hh').val(), $('#hidden_mn').val());
currentDate = new Date( $('#cur_aa').val(), $('#cur_mm').val() -1, $('#cur_jj').val(), $('#cur_hh').val(), $('#cur_mn').val());
diff --git a/wp-admin/js/tags.dev.js b/wp-admin/js/tags.dev.js
index 7556f92900..3f1da879be 100644
--- a/wp-admin/js/tags.dev.js
+++ b/wp-admin/js/tags.dev.js
@@ -18,7 +18,7 @@ jQuery(document).ready(function($) {
if ( id == options[o].value )
options[o] = null;
}
-
+
delBefore = function(s) {
s.data.taxonomy = $('input[name="taxonomy"]').val();
diff --git a/wp-admin/js/theme-preview.dev.js b/wp-admin/js/theme-preview.dev.js
index d3abf5d176..5c67e999b5 100644
--- a/wp-admin/js/theme-preview.dev.js
+++ b/wp-admin/js/theme-preview.dev.js
@@ -23,12 +23,12 @@ jQuery(document).ready(function($) {
$('a.thickbox-preview').click( function() {
var alink = $(this).parents('.available-theme').find('.activatelink'), link = '', href = $(this).attr('href'), url, text;
- if ( tbWidth = href.match(/&tbWidth=[0-9]+/) )
+ if ( tbWidth = href.match(/&tbWidth=[0-9]+/) )
tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10);
else
tbWidth = $(window).width() - 90;
- if ( tbHeight = href.match(/&tbHeight=[0-9]+/) )
+ if ( tbHeight = href.match(/&tbHeight=[0-9]+/) )
tbHeight = parseInt(tbHeight[0].replace(/[^0-9]+/g, ''), 10);
else
tbHeight = $(window).height() - 60;
diff --git a/wp-admin/js/utils.dev.js b/wp-admin/js/utils.dev.js
index bf3bb2b501..3f6925bfec 100644
--- a/wp-admin/js/utils.dev.js
+++ b/wp-admin/js/utils.dev.js
@@ -134,7 +134,7 @@ function getUserSetting( name, def ) {
function setUserSetting( name, value, del ) {
if ( 'object' !== typeof userSettings )
return false;
-
+
var c = 'wp-settings-' + userSettings.uid, o = wpCookies.getHash(c) || {}, d = new Date(), p,
n = name.toString().replace(/[^A-Za-z0-9_]/, ''), v = value.toString().replace(/[^A-Za-z0-9_]/, '');
@@ -149,7 +149,7 @@ function setUserSetting( name, value, del ) {
wpCookies.setHash(c, o, d, p);
wpCookies.set('wp-settings-time-'+userSettings.uid, userSettings.time, d, p);
-
+
return name;
}
diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php
index 6978641215..b28109e6cc 100644
--- a/wp-admin/link-manager.php
+++ b/wp-admin/link-manager.php
@@ -233,9 +233,9 @@ if ( $links ) {
case 'visible':
?>
> | > | > |
link_id); ?> |
diff --git a/wp-admin/menu.php b/wp-admin/menu.php
index 78b415cd1d..6116f5aa81 100644
--- a/wp-admin/menu.php
+++ b/wp-admin/menu.php
@@ -128,7 +128,7 @@ do_action('_admin_menu');
// Create list of page plugin hook names.
foreach ($menu as $menu_page) {
$hook_name = sanitize_title(basename($menu_page[2], '.php'));
-
+
// ensure we're backwards compatible
$compat = array(
'index' => 'dashboard',
@@ -140,12 +140,12 @@ foreach ($menu as $menu_page) {
'options-general' => 'settings',
'themes' => 'appearance',
);
-
+
if ( isset($compat[$hook_name]) )
$hook_name = $compat[$hook_name];
elseif ( !$hook_name )
continue;
-
+
$admin_page_hooks[$menu_page[2]] = $hook_name;
}
diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index e1d7ef8a6a..4bff30a4cb 100644
--- a/wp-admin/options-permalink.php
+++ b/wp-admin/options-permalink.php
@@ -228,9 +228,9 @@ $structures = array(
-
web.config file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.') ?>
+
web.config file writable for us to generate rewrite rules automatically, do not forget to revert the permissions after rule has been saved.') ?>
-
.htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.') ?>