diff --git a/wp-admin/import.php b/wp-admin/import.php
index 64408f0332..9c321e43de 100644
--- a/wp-admin/import.php
+++ b/wp-admin/import.php
@@ -15,7 +15,7 @@ $parent_file = 'tools.php';
-
+
wp_content_dir() . '/themes';
}
-
+
/**
* Locates a folder on the remote filesystem.
*
@@ -136,7 +136,7 @@ class WP_Filesystem_Base {
*
* @since 2.7
* @access public
- *
+ *
* @param string $folder the folder to locate
* @return string The location of the remote path.
*/
@@ -164,7 +164,7 @@ class WP_Filesystem_Base {
*
* @since 2.7
* @access private
- *
+ *
* @param string $folder the folder to locate
* @param string $base the folder to start searching from
* @param bool $loop if the function has recursed, Internal use only
diff --git a/wp-admin/includes/class-wp-filesystem-ftpext.php b/wp-admin/includes/class-wp-filesystem-ftpext.php
index d8a774db09..a2805da80d 100644
--- a/wp-admin/includes/class-wp-filesystem-ftpext.php
+++ b/wp-admin/includes/class-wp-filesystem-ftpext.php
@@ -79,10 +79,10 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
$this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username']));
return false;
}
-
+
//Set the Connection to use Passive FTP
- @ftp_pasv( $this->link, true );
-
+ @ftp_pasv( $this->link, true );
+
return true;
}
diff --git a/wp-admin/includes/class-wp-filesystem-ssh2.php b/wp-admin/includes/class-wp-filesystem-ssh2.php
index 8365219559..6da852d7e5 100644
--- a/wp-admin/includes/class-wp-filesystem-ssh2.php
+++ b/wp-admin/includes/class-wp-filesystem-ssh2.php
@@ -90,12 +90,12 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
$this->options['username'] = $opt['username'];
if ( ( !empty ($opt['public_key']) ) && ( !empty ($opt['private_key']) ) ) {
- $this->options['public_key'] = $opt['public_key'];
+ $this->options['public_key'] = $opt['public_key'];
$this->options['private_key'] = $opt['private_key'];
-
+
$this->options['hostkey'] = array("hostkey" => "ssh-rsa");
-
- $this->keys = true;
+
+ $this->keys = true;
}
@@ -105,18 +105,18 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
} else {
$this->options['password'] = $opt['password'];
}
-
+
}
function connect() {
$this->debug("connect();");
-
+
if ( ! $this->keys ) {
- $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']);
+ $this->link = @ssh2_connect($this->options['hostname'], $this->options['port']);
} else {
- $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']);
+ $this->link = @ssh2_connect($this->options['hostname'], $this->options['port'], $this->options['hostkey']);
}
-
+
if ( ! $this->link ) {
$this->errors->add('connect', sprintf(__('Failed to connect to SSH2 Server %1$s:%2$s'), $this->options['hostname'], $this->options['port']));
return false;
@@ -358,7 +358,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base {
function touch($file, $time = 0, $atime = 0) {
//Not implmented.
}
-
+
function mkdir($path, $chmod = null, $chown = false, $chgrp = false) {
$this->debug("mkdir();");
$path = untrailingslashit($path);
diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index 473cc8a450..314fc14de8 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -134,7 +134,7 @@ function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
wp_dashboard_trigger_widget_control( $meta_box['id'] );
echo "
";
- echo '';
+ echo '';
}
/**
@@ -276,7 +276,7 @@ function wp_dashboard_right_now() {
} else {
printf(__ngettext('Theme
%1$s with
%2$s Widget', 'Theme
%1$s with
%2$s Widgets', $num_widgets), $ct->title, $num);
}
-
+
echo '';
update_right_now_message();
@@ -304,7 +304,7 @@ function wp_dashboard_quick_press() {
'orderby' => 'modified',
'order' => 'DESC'
) );
-
+
if ( $drafts_query->posts )
$drafts =& $drafts_query->posts;
}
@@ -329,7 +329,7 @@ function wp_dashboard_quick_press() {
-
+
@@ -437,7 +437,7 @@ function wp_dashboard_recent_comments() {
if ( current_user_can('edit_posts') ) { ?>
$widget_control_id, 'callback' => $wp_dashboard_control_callbacks[$widget_control_id] ) );
}
diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php
index 0560bcd043..a68606719e 100644
--- a/wp-admin/includes/file.php
+++ b/wp-admin/includes/file.php
@@ -662,11 +662,11 @@ function request_filesystem_credentials($form_post, $type = '', $error = false)
$credentials['hostname'] = defined('FTP_HOST') ? FTP_HOST : (!empty($_POST['hostname']) ? $_POST['hostname'] : $credentials['hostname']);
$credentials['username'] = defined('FTP_USER') ? FTP_USER : (!empty($_POST['username']) ? $_POST['username'] : $credentials['username']);
$credentials['password'] = defined('FTP_PASS') ? FTP_PASS : (!empty($_POST['password']) ? $_POST['password'] : $credentials['password']);
-
+
// Check to see if we are setting the public/private keys for ssh
$credentials['public_key'] = defined('FTP_PUBKEY') ? FTP_PUBKEY : (!empty($_POST['public_key']) ? $_POST['public_key'] : $credentials['public_key']);
- $credentials['private_key'] = defined('FTP_PRIKEY') ? FTP_PRIKEY : (!empty($_POST['private_key']) ? $_POST['private_key'] : $credentials['private_key']);
-
+ $credentials['private_key'] = defined('FTP_PRIKEY') ? FTP_PRIKEY : (!empty($_POST['private_key']) ? $_POST['private_key'] : $credentials['private_key']);
+
if ( strpos($credentials['hostname'], ':') )
list( $credentials['hostname'], $credentials['port'] ) = explode(':', $credentials['hostname'], 2);
@@ -704,7 +704,7 @@ jQuery(function($){
});
jQuery("#ftp, #ftps").click(function () {
jQuery("#ssh_keys").hide();
- });
+ });
});
-->
diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php
index c4c02e4e2f..8069b97784 100644
--- a/wp-admin/includes/image.php
+++ b/wp-admin/includes/image.php
@@ -94,7 +94,7 @@ function wp_generate_attachment_metadata( $attachment_id, $file ) {
$metadata['height'] = $imagesize[1];
list($uwidth, $uheight) = wp_shrink_dimensions($metadata['width'], $metadata['height']);
$metadata['hwstring_small'] = "height='$uheight' width='$uwidth'";
-
+
// Make the file path relative to the upload dir
if ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) { // Get upload directory
if ( 0 === strpos($file, $uploads['basedir']) ) {// Check that the upload base exists in the file path
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index 7ea8247b76..6b989a6655 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -102,7 +102,7 @@ function the_media_upload_tabs() {
function get_image_send_to_editor($id, $alt, $title, $align, $url='', $rel = false, $size='medium') {
$htmlalt = ( empty($alt) ) ? $title : $alt;
-
+
$html = get_image_tag($id, $htmlalt, $title, $align, $size);
$rel = $rel ? ' rel="attachment wp-att-'.attribute_escape($id).'"' : '';
@@ -473,7 +473,7 @@ function media_upload_image() {
$errors['upload_notice'] = __('Saved.');
return media_upload_gallery();
}
-
+
if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
return wp_iframe( 'media_upload_type_url_form', 'image', $errors, $id );
@@ -501,10 +501,10 @@ function media_sideload_image($file, $post_id, $desc = null) {
@unlink($file_array['tmp_name']);
$file_array['tmp_name'] = '';
}
-
+
$id = media_handle_sideload($file_array, $post_id, $desc);
$src = $id;
-
+
if ( is_wp_error($id) ) {
@unlink($file_array['tmp_name']);
return $id;
@@ -567,7 +567,7 @@ function media_upload_audio() {
if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
return wp_iframe( 'media_upload_type_url_form', 'audio', $errors, $id );
-
+
return wp_iframe( 'media_upload_type_form', 'audio', $errors, $id );
}
@@ -620,7 +620,7 @@ function media_upload_video() {
if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
return wp_iframe( 'media_upload_type_url_form', 'video', $errors, $id );
-
+
return wp_iframe( 'media_upload_type_form', 'video', $errors, $id );
}
@@ -673,7 +673,7 @@ function media_upload_file() {
if ( isset($_GET['tab']) && $_GET['tab'] == 'type_url' )
return wp_iframe( 'media_upload_type_url_form', 'file', $errors, $id );
-
+
return wp_iframe( 'media_upload_type_form', 'file', $errors, $id );
}
@@ -731,16 +731,16 @@ function media_upload_library() {
* @return unknown
*/
function image_align_input_fields($post, $checked='') {
-
+
$alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right');
if ( !array_key_exists($checked, $alignments) )
$checked = 'none';
-
+
$out = array();
foreach ($alignments as $name => $label) {
-
+
$out[] = "
";
}
return join("\n", $out);
@@ -756,9 +756,9 @@ function image_align_input_fields($post, $checked='') {
* @return unknown
*/
function image_size_input_fields($post, $checked='') {
-
+
// get a list of the actual pixel dimensions of each possible intermediate version of this image
- $size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full size'));
+ $size_names = array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full size'));
foreach ( $size_names as $size => $name) {
$downsize = image_downsize($post->ID, $size);
@@ -772,19 +772,19 @@ function image_size_input_fields($post, $checked='') {
// if $checked was not specified, default to the first available size that's bigger than a thumbnail
if ( !$checked && $enabled && 'thumbnail' != $size )
$checked = $size;
-
+
$html = "
ID][image-size]' id='{$css_id}' value='{$size}'".( $checked == $size ? " checked='checked'" : '') ." />";
-
+
$html .= "";
// only show the dimensions if that choice is available
if ( $enabled )
$html .= " ";
-
+
$html .= '
';
-
+
$out[] = $html;
}
-
+
return array(
'label' => __('Size'),
'input' => 'html',
@@ -811,7 +811,7 @@ function image_link_input_fields($post, $url_type='') {
$url = $file;
elseif ( $url_type == 'post' )
$url = $link;
-
+
return "
@@ -842,7 +842,7 @@ function image_attachment_fields_to_edit($form_fields, $post) {
'input' => 'html',
'html' => image_align_input_fields($post, get_option('image_default_align')),
);
-
+
$form_fields['image-size'] = image_size_input_fields($post, get_option('image_default_size'));
}
return $form_fields;
@@ -1287,7 +1287,7 @@ SWFUpload.onload = function() {
file_dialog_complete_handler : fileDialogComplete,
swfupload_pre_load_handler: swfuploadPreLoad,
swfupload_load_failed_handler: swfuploadLoadFailed,
- custom_settings : {
+ custom_settings : {
degraded_element_id : "html-upload-ui", // id of the element displayed when swfupload is unavailable
swfupload_element_id : "flash-upload-ui" // id of the element displayed when swfupload is available
},
@@ -1299,7 +1299,7 @@ SWFUpload.onload = function() {
-
+
@@ -1361,7 +1361,7 @@ jQuery(function($){
-->
array(__('New Post'), 'edit_posts'),
- 'edit.php?post_status=draft' => array(__('Drafts'), 'edit_posts'),
+ 'edit.php?post_status=draft' => array(__('Drafts'), 'edit_posts'),
'page-new.php' => array(__('New Page'), 'edit_pages'),
'media-new.php' => array(__('Upload'), 'upload_files'),
'edit-comments.php' => array(__('Comments'), 'moderate_comments')
@@ -3325,10 +3325,10 @@ function screen_meta($screen) {