Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@12859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -625,7 +625,7 @@ case 'add-tag' : // From Manage->Tags
|
||||
$tag_full_name = $_tag->name . ' — ' . $tag_full_name;
|
||||
$level++;
|
||||
}
|
||||
$tag_full_name = esc_attr($tag_full_name);
|
||||
$tag_full_name = esc_attr($tag_full_name);
|
||||
}
|
||||
echo _tag_row( $tag, $level, $tag_full_name, $taxonomy );
|
||||
exit;
|
||||
@@ -1184,7 +1184,7 @@ case 'inline-save-tax':
|
||||
if ( ! $taxonomy )
|
||||
die( __('Cheatin’ uh?') );
|
||||
$tax = get_taxonomy($taxonomy);
|
||||
|
||||
|
||||
if ( ! current_user_can( $tax->edit_cap ) )
|
||||
die( __('Cheatin’ uh?') );
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ function plugins_api($action, $args = null) {
|
||||
if ( !isset($args->per_page) )
|
||||
$args->per_page = 24;
|
||||
|
||||
// Allows a plugin to override the WordPress.org API entirely.
|
||||
// Allows a plugin to override the WordPress.org API entirely.
|
||||
// Use the filter 'plugins_api_result' to mearly add results.
|
||||
// Please ensure that a object is returned from the following filters.
|
||||
$args = apply_filters('plugins_api_args', $args, $action);
|
||||
|
||||
@@ -474,10 +474,10 @@ function delete_plugins($plugins, $redirect = '' ) {
|
||||
|
||||
/**
|
||||
* validate active plugins
|
||||
*
|
||||
* validate all active plugins, deactivates invalid and
|
||||
*
|
||||
* validate all active plugins, deactivates invalid and
|
||||
* returns an array of deactived ones.
|
||||
*
|
||||
*
|
||||
* @since unknown
|
||||
* @return array invalid plugins, plugin as key, error as value
|
||||
*/
|
||||
|
||||
@@ -673,7 +673,7 @@ function wp_link_category_checklist( $link_id = 0 ) {
|
||||
*/
|
||||
function _tag_row( $tag, $level, $class = '', $taxonomy = 'post_tag' ) {
|
||||
$count = number_format_i18n( $tag->count );
|
||||
if ( 'post_tag' == $taxonomy )
|
||||
if ( 'post_tag' == $taxonomy )
|
||||
$tagsel = 'tag';
|
||||
elseif ( 'category' == $taxonomy )
|
||||
$tagsel = 'category_name';
|
||||
|
||||
@@ -151,7 +151,7 @@ function get_allowed_themes() {
|
||||
unset( $themes[ $key ] );
|
||||
}
|
||||
reset( $themes );
|
||||
|
||||
|
||||
return $themes;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ function filestats( $err ) {
|
||||
<?php
|
||||
clearstatcache();
|
||||
$files = array( "htaccess.dist", ".htaccess" );
|
||||
|
||||
|
||||
$indent = ' ';
|
||||
foreach ( (array) $files as $val ) {
|
||||
$stats = @stat( $val );
|
||||
@@ -104,7 +104,7 @@ function step1() {
|
||||
?>
|
||||
<h2><?php esc_html_e('Installing Network of WordPress Sites'); ?></h2>
|
||||
<p><?php _e('I will help you enable the features for creating a network of sites by asking you a few questions so that you can create configuration files and make a directory to store all your uploaded files.'); ?></p>
|
||||
|
||||
|
||||
<h2><?php esc_html_e('What do I need?'); ?></h2>
|
||||
<ul>
|
||||
<li><?php _e( 'Access to your server to change directory permissions. This can be done through ssh or ftp for example.' ); ?></li>
|
||||
@@ -113,7 +113,7 @@ function step1() {
|
||||
</ul>
|
||||
<?php
|
||||
$mod_rewrite_msg = "\n<p>" . __( "If the <code>mod_rewrite</code> module is disabled ask your administrator to enable that module, or look at the <a href='http://httpd.apache.org/docs/mod/mod_rewrite.html'>Apache documentation</a> or <a href='http://www.google.com/search?q=apache+mod_rewrite'>elsewhere</a> for help setting it up." ) . '</p>';
|
||||
|
||||
|
||||
if ( function_exists( 'apache_get_modules' ) ) {
|
||||
$modules = apache_get_modules();
|
||||
if ( ! in_array( 'mod_rewrite', $modules ) )
|
||||
@@ -150,34 +150,34 @@ function printstep1form( $rewrite_enabled = false ) {
|
||||
<?php if ( isset( $nowww ) ) { ?>
|
||||
<h3><?php printf( __( 'We recommend you change your siteurl to <code>%1$s</code> before enabling the network feature. It will still be possible to visit your site using the "www" prefix with an address like <code>%2$s</code> but any links will not have the "www" prefix.' ), $nowww, $hostname ); ?></h3>
|
||||
<?php } ?>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th scope='row'><?php esc_html_e( 'Server Address' ); ?></th>
|
||||
<td>
|
||||
<p><?php printf( __( 'This will be the Internet address of your site: <strong><em>%s</em></strong>.' ), $hostname ); ?></p>
|
||||
<input type='hidden' name='basedomain' value='<?php echo esc_attr( $hostname ); ?>' />
|
||||
<p><?php _e( 'Do not use an IP address (like 127.0.0.1) or a single word hostname like <q>localhost</q> as your server address.' ); ?></p>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><?php esc_html_e( 'Site Details' ); ?></h2>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th scope='row'><?php esc_html_e( 'Site Title' ); ?></th>
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
<th scope='row'><?php esc_html_e( 'Site Title' ); ?></th>
|
||||
<td>
|
||||
<input name='weblog_title' type='text' size='45' value='<?php echo esc_attr( $weblog_title ); ?>' />
|
||||
<br /><?php _e( 'What would you like to call your site?' ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope='row'><?php esc_html_e( 'Email' ); ?></th>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope='row'><?php esc_html_e( 'Email' ); ?></th>
|
||||
<td>
|
||||
<input name='email' type='text' size='45' value='<?php echo esc_attr( $email ); ?>' />
|
||||
<input name='email' type='text' size='45' value='<?php echo esc_attr( $email ); ?>' />
|
||||
<br /><?php _e( 'Your email address.' ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p class='submit'><input class="button" name='submit' type='submit' value='<?php esc_attr_e( 'Proceed' ); ?>' /></p>
|
||||
<?php
|
||||
}
|
||||
@@ -271,11 +271,11 @@ function get_clean_basedomain() {
|
||||
return $domain;
|
||||
}
|
||||
|
||||
$action = isset($_POST[ 'action' ]) ? $_POST[ 'action' ] : null;
|
||||
$action = isset($_POST[ 'action' ]) ? $_POST[ 'action' ] : null;
|
||||
switch($action) {
|
||||
case "step2":
|
||||
check_admin_referer( 'install-network-1' );
|
||||
|
||||
|
||||
// Install!
|
||||
$base = stripslashes( dirname( dirname($_SERVER["SCRIPT_NAME"]) ) );
|
||||
if( $base != "/")
|
||||
|
||||
@@ -126,7 +126,7 @@ endswitch;
|
||||
|
||||
if ( !$redirect ) {
|
||||
if ( empty($post->post_type) ) // Empty post_type means either malformed object found, or no valid parent was found.
|
||||
$redirect = 'edit.php';
|
||||
$redirect = 'edit.php';
|
||||
elseif ( !post_type_supports($post->post_type, 'revisions') )
|
||||
$redirect = 'edit.php?post_type=' . $post->post_type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user