Pink trailing whites.

git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-12-13 21:21:50 +00:00
parent 2fe23d30da
commit 6dc2d07bc4
35 changed files with 106 additions and 106 deletions
+2 -2
View File
@@ -83,9 +83,9 @@ do_action('admin_head');
if ( get_user_setting('mfold') == 'f' )
$admin_body_class .= ' folded';
if ( is_admin_bar_showing() )
$admin_body_class .= ' admin-bar';
$admin_body_class .= ' admin-bar';
if ( $is_iphone ) { ?>
<style type="text/css">.row-actions{visibility:visible;}</style>
+4 -4
View File
@@ -135,11 +135,11 @@ require_once('./admin-header.php');
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php
<h2><?php
if ( $post_id )
echo sprintf(__('Comments on &#8220;%s&#8221;'),
sprintf('<a href="%s">%s</a>',
get_edit_post_link($post_id),
echo sprintf(__('Comments on &#8220;%s&#8221;'),
sprintf('<a href="%s">%s</a>',
get_edit_post_link($post_id),
wp_html_excerpt(_draft_or_post_title($post_id), 50)
)
);
+1 -1
View File
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
require_once( './admin.php' );
require_once( './admin.php' );
$wp_list_table = get_list_table('WP_Posts_List_Table');
$wp_list_table->check_permissions();
$pagenum = $wp_list_table->get_pagenum();
+1 -1
View File
@@ -20,7 +20,7 @@ function add_js() {
?>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready(function($){
jQuery(document).ready(function($){
var form = $('#export-filters'),
filters = form.find('.export-filters');
filters.hide();
@@ -53,7 +53,7 @@ class WP_Comments_List_Table extends WP_List_Table {
$orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
$order = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : '';
$comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' );
$comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status );
@@ -70,7 +70,7 @@ class WP_Comments_List_Table extends WP_List_Table {
'moderated' => 'hold',
'approved' => 'approve'
);
$args = array(
'status' => isset( $status_map[$comment_status] ) ? $status_map[$comment_status] : $comment_status,
'search' => $search,
+3 -3
View File
@@ -516,12 +516,12 @@ class WP_List_Table {
}
/**
* Get a list of sortable columns. The format is:
* Get a list of sortable columns. The format is:
* 'internal-name' => 'orderby'
* or
* 'internal-name' => array( 'orderby', true )
*
* The second format will make the initial sorting order be descending
* The second format will make the initial sorting order be descending
*
* @since 3.1.0
* @access protected
@@ -559,7 +559,7 @@ class WP_List_Table {
$data = (array) $data;
if ( !isset( $data[1] ) )
$data[1] = false;
$sortable[$id] = $data;
}
@@ -317,7 +317,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
</td>
<?php }
break;
default:
echo "<td class='$column_name column-$column_name'$style>";
do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
@@ -160,7 +160,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
$style = ' style="display:none;"';
$attributes = "$class$style";
switch ( $column_name ) {
case 'cb': ?>
@@ -219,14 +219,14 @@ class WP_MS_Users_List_Table extends WP_List_Table {
foreach ( (array) $blogs as $key => $val ) {
if ( !can_edit_network( $val->site_id ) )
continue;
$path = ( $val->path == '/' ) ? '' : $val->path;
echo '<span class="site-' . $val->site_id . '" >';
echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>';
echo ' <small class="row-actions">';
$actions = array();
$actions['edit'] = '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . __( 'Edit' ) . '</a>';
$class = '';
if ( get_blog_status( $val->userblog_id, 'spam' ) == 1 )
$class .= 'site-spammed ';
@@ -236,11 +236,11 @@ class WP_MS_Users_List_Table extends WP_List_Table {
$class .= 'site-deleted ';
if ( get_blog_status( $val->userblog_id, 'archived' ) == 1 )
$class .= 'site-archived ';
$actions['view'] = '<a class="' . $class . '" href="' . esc_url( get_home_url( $val->userblog_id ) ) . '">' . __( 'View' ) . '</a>';
$actions = apply_filters('ms_user_list_site_actions', $actions, $val->userblog_id);
$i=0;
$action_count = count( $actions );
foreach ( $actions as $action => $link ) {
@@ -286,7 +286,7 @@ class WP_Terms_List_Table extends WP_List_Table {
$args['post_type'] = $post_type;
return "<a href='" . add_query_arg( $args, 'edit.php' ) . "'>$count</a>";
return "<a href='" . add_query_arg( $args, 'edit.php' ) . "'>$count</a>";
}
function column_links( $tag ) {
@@ -7,10 +7,10 @@
* @since 3.1.0
*/
class WP_Users_List_Table extends WP_List_Table {
var $site_id;
var $is_site_users;
function WP_Users_List_Table() {
$screen = get_current_screen();
$this->is_site_users = 'site-users-network' == $screen->id;
@@ -50,7 +50,7 @@ class WP_Users_List_Table extends WP_List_Table {
'role' => $role,
'search' => $usersearch
);
if ( $this->is_site_users )
$args['blog_id'] = $this->site_id;
@@ -79,7 +79,7 @@ class WP_Users_List_Table extends WP_List_Table {
global $wp_roles, $role;
if ( $this->is_site_users ) {
$url = 'site-users.php?id=' . $this->site_id;
$url = 'site-users.php?id=' . $this->site_id;
switch_to_blog( $this->site_id );
$users_of_blog = count_users();
restore_current_blog();
@@ -160,7 +160,7 @@ class WP_Users_List_Table extends WP_List_Table {
if ( $this->is_site_users )
unset( $c['posts'] );
return $c;
}
@@ -171,7 +171,7 @@ class WP_Users_List_Table extends WP_List_Table {
'email' => 'email',
'posts' => 'post_count',
);
if ( $this->is_site_users )
unset( $c['posts'] );
@@ -213,7 +213,7 @@ class WP_Users_List_Table extends WP_List_Table {
$user_object = new WP_User( (int) $user_object );
$user_object = sanitize_user_object( $user_object, 'display' );
$email = $user_object->user_email;
if ( $this->is_site_users )
$url = "site-users.php?id={$this->site_id}&amp;";
else
+3 -3
View File
@@ -144,9 +144,9 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
if ( isset( $_GET['edit'] ) && $widget_id == $_GET['edit'] ) {
list($url) = explode( '#', add_query_arg( 'edit', false ), 2 );
$widget_name .= ' <span class="postbox-title-action"><a href="' . esc_url( $url ) . '">' . __( 'Cancel' ) . '</a></span>';
$callback = '_wp_dashboard_control_callback';
} else {
list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
$callback = '_wp_dashboard_control_callback';
} else {
list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
$widget_name .= ' <span class="postbox-title-action"><a href="' . esc_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Configure' ) . '</a></span>';
}
}
+1 -1
View File
@@ -117,6 +117,6 @@ function wp_link_dialog() {
</div>
</div>
</form>
<?php
<?php
}
?>
+2 -2
View File
@@ -1458,9 +1458,9 @@ if ( is_multisite() && !is_upload_space_available() ) {
do_action('pre-upload-ui');
if ( $flash ) :
if ( $flash ) :
// Set the post params, which SWFUpload will post back with the file, and pass
// Set the post params, which SWFUpload will post back with the file, and pass
// them through a filter.
$post_params = array(
"post_id" => $post_id,
+4 -4
View File
@@ -721,20 +721,20 @@ function revoke_super_admin( $user_id ) {
}
/**
* Whether or not we can edit this network from this page
*
*
* By default editing of network is restricted to the Network Admin for that site_id this allows for this to be overridden
*
*
* @since 3.1.0
* @param integer $site_id The network/site id to check.
*/
function can_edit_network( $site_id ) {
global $wpdb;
if ($site_id == $wpdb->siteid )
$result = true;
else
$result = false;
return apply_filters( 'can_edit_network', $result, $site_id );
}
?>
+2 -2
View File
@@ -875,7 +875,7 @@ function add_meta_box($id, $title, $callback, $page, $context = 'advanced', $pri
foreach ( array('high', 'core', 'default', 'low') as $a_priority ) {
if ( !isset($wp_meta_boxes[$page][$a_context][$a_priority][$id]) )
continue;
// If a core box was previously added or removed by a plugin, don't add.
if ( 'core' == $priority ) {
// If core box previously deleted, don't add
@@ -1538,7 +1538,7 @@ function iframe_header( $title = '', $limit_styles = false ) {
show_admin_bar( false );
global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale;
$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
<head>
+3 -3
View File
@@ -45,13 +45,13 @@ adminMenu = {
});
},
toggle : function(el) {
toggle : function(el) {
el.slideToggle(150, function() {
var id = el.parent().toggleClass( 'wp-menu-open' ).attr('id');
var id = el.parent().toggleClass( 'wp-menu-open' ).attr('id');
if ( id ) {
$('li.wp-has-submenu', '#adminmenu').each(function(i, e) {
if ( id == e.id ) {
var v = $(e).hasClass('wp-menu-open') ? 'o' : 'c';
var v = $(e).hasClass('wp-menu-open') ? 'o' : 'c';
setUserSetting( 'm'+i, v );
}
});
+1 -1
View File
@@ -35,7 +35,7 @@ var ThemeViewer;
$( '#filter-box' ).slideToggle();
$( '#current-theme' ).slideToggle( 300 );
});
return false;
});
}
+1 -1
View File
@@ -365,7 +365,7 @@ define( 'BLOG_ID_CURRENT_SITE', 1 );</textarea>
if ( defined( $c ) )
unset( $keys_salts[ $c ] );
}
if ( ! empty( $keys_salts ) ) {
if ( ! empty( $keys_salts ) ) {
$keys_salts_str = '';
$from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' );
if ( is_wp_error( $from_api ) ) {
+1 -1
View File
@@ -13,7 +13,7 @@ if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-informat
require_once('./admin.php');
if ( ! current_user_can('install_plugins') )
wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
if ( is_multisite() && ! is_network_admin() ) {
wp_redirect( network_admin_url( 'plugin-install.php' ) );
exit();
+1 -1
View File
@@ -11,7 +11,7 @@ require_once('./admin.php');
if ( !current_user_can('activate_plugins') )
wp_die( __( 'You do not have sufficient permissions to manage plugins for this site.' ) );
$wp_list_table = get_list_table('WP_Plugins_List_Table');
$wp_list_table->check_permissions();
+1 -1
View File
@@ -332,7 +332,7 @@ var photostorage = false;
if ( user_can_richedit() ) {
wp_tiny_mce( true, array( 'height' => '370' ) );
wp_tiny_mce_preload_dialogs();
wp_tiny_mce_preload_dialogs();
}
?>
<script type="text/javascript">
+1 -1
View File
@@ -8,7 +8,7 @@
if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'theme-information' == $_GET['tab'] ) )
define( 'IFRAME_REQUEST', true );
/** WordPress Administration Bootstrap */
require_once('./admin.php');
if ( ! current_user_can('install_themes') )
+1 -1
View File
@@ -10,7 +10,7 @@
require_once('./admin.php');
if ( !current_user_can('switch_themes') && !current_user_can('edit_theme_options') )
wp_die( __( 'Cheatin&#8217; uh?' ) );
$wp_list_table = get_list_table('WP_Themes_List_Table');
$wp_list_table->check_permissions();