mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -970,7 +970,7 @@ case 'autosave' : // The name of this action is hardcoded in edit_post()
|
||||
// Drafts and auto-drafts are just overwritten by autosave
|
||||
if ( 'auto-draft' == $post->post_status || 'draft' == $post->post_status ) {
|
||||
$id = edit_post();
|
||||
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
|
||||
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
|
||||
$revision_id = wp_create_post_autosave( $post->ID );
|
||||
if ( is_wp_error($revision_id) )
|
||||
$id = $revision_id;
|
||||
|
||||
@@ -676,7 +676,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
$oitar = $width / HEADER_IMAGE_WIDTH;
|
||||
$image = wp_crop_image($file, 0, 0, $width, $height, HEADER_IMAGE_WIDTH, $height / $oitar, false, str_replace(basename($file), 'midsize-'.basename($file), $file));
|
||||
if ( is_wp_error( $image ) )
|
||||
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
||||
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
||||
|
||||
$image = apply_filters('wp_create_file_in_uploads', $image, $id); // For replication
|
||||
|
||||
@@ -737,7 +737,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||
|
||||
$cropped = wp_crop_image( $attachment_id, (int) $_POST['x1'], (int) $_POST['y1'], (int) $_POST['width'], (int) $_POST['height'], HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT );
|
||||
if ( is_wp_error( $cropped ) )
|
||||
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
||||
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
||||
|
||||
$cropped = apply_filters('wp_create_file_in_uploads', $cropped, $attachment_id); // For replication
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ $form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_
|
||||
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
|
||||
foreach ( _wp_post_revision_fields() as $autosave_field => $_autosave_field ) {
|
||||
if ( normalize_whitespace( $autosave->$autosave_field ) != normalize_whitespace( $post->$autosave_field ) ) {
|
||||
$notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) );
|
||||
$notice = sprintf( __( 'There is an autosave of this post that is more recent than the version below. <a href="%s">View the autosave</a>' ), get_edit_post_link( $autosave->ID ) );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ case 'delete':
|
||||
}
|
||||
|
||||
$tag_ID = (int) $_REQUEST['tag_ID'];
|
||||
check_admin_referer( 'delete-tag_' . $tag_ID );
|
||||
check_admin_referer( 'delete-tag_' . $tag_ID );
|
||||
|
||||
if ( !current_user_can( $tax->cap->delete_terms ) )
|
||||
wp_die( __( 'Cheatin’ uh?' ) );
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ get_current_screen()->add_help_tab( array(
|
||||
'id' => 'overview',
|
||||
'title' => __('Overview'),
|
||||
'content' => '<p>' . __('This screen lists links to plugins to import data from blogging/content management platforms. Choose the platform you want to import from, and click Install Now when you are prompted in the popup window. If your platform is not listed, click the link to search the plugin directory for other importer plugins to see if there is one for your platform.') . '</p>' .
|
||||
'<p>' . __('In previous versions of WordPress, all importers were built-in. They have been turned into plugins since most people only use them once or infrequently.') . '</p>',
|
||||
'<p>' . __('In previous versions of WordPress, all importers were built-in. They have been turned into plugins since most people only use them once or infrequently.') . '</p>',
|
||||
) );
|
||||
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
|
||||
if ( ! $overwrite && $this->exists($destination) )
|
||||
return false;
|
||||
|
||||
// try using rename first. if that fails (for example, source is read only) try copy
|
||||
// try using rename first. if that fails (for example, source is read only) try copy
|
||||
if ( @rename($source, $destination) )
|
||||
return true;
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
|
||||
$actions['deactivate'] = '<span class="activate"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=deactivateblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to deactivate the site %s' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Deactivate' ) . '</a></span>';
|
||||
|
||||
if ( get_blog_status( $blog['blog_id'], 'archived' ) == '1' )
|
||||
$actions['unarchive'] = '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Unarchive' ) . '</a></span>';
|
||||
$actions['unarchive'] = '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to unarchive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . __( 'Unarchive' ) . '</a></span>';
|
||||
else
|
||||
$actions['archive'] = '<span class="archive"><a href="' . esc_url( wp_nonce_url( network_admin_url( 'sites.php?action=confirm&action2=archiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( 'You are about to archive the site %s.' ), $blogname ) ) ), 'confirm') ) . '">' . _x( 'Archive', 'verb; site' ) . '</a></span>';
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
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['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);
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
function prepare_items() {
|
||||
global $taxonomy;
|
||||
|
||||
$tags_per_page = $this->get_items_per_page( 'edit_' . $taxonomy . '_per_page' );
|
||||
$tags_per_page = $this->get_items_per_page( 'edit_' . $taxonomy . '_per_page' );
|
||||
|
||||
if ( 'post_tag' == $taxonomy ) {
|
||||
$tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page );
|
||||
|
||||
@@ -149,7 +149,7 @@ class WP_Themes_List_Table extends WP_List_Table {
|
||||
$activate_link = wp_nonce_url( "themes.php?action=activate&template=".urlencode( $template )."&stylesheet=".urlencode( $stylesheet ), 'switch-theme_' . $template );
|
||||
$activate_text = esc_attr( sprintf( __( 'Activate “%s”' ), $title ) );
|
||||
$actions = array();
|
||||
$actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __( 'Activate' ) . '</a>';
|
||||
$actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __( 'Activate' ) . '</a>';
|
||||
$actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $theme_name ) ) . '">' . __( 'Preview' ) . '</a>';
|
||||
if ( ! is_multisite() && current_user_can( 'delete_themes' ) )
|
||||
$actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url( "themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet ) . '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $theme_name ) ) . "' );" . '">' . __( 'Delete' ) . '</a>';
|
||||
|
||||
@@ -1419,7 +1419,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||
|
||||
$install_actions = array(
|
||||
'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>',
|
||||
'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'
|
||||
'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>'
|
||||
);
|
||||
|
||||
if ( is_network_admin() && current_user_can( 'manage_network_themes' ) )
|
||||
@@ -1475,7 +1475,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
$activate_link = wp_nonce_url("themes.php?action=activate&template=" . urlencode($template) . "&stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template);
|
||||
|
||||
$update_actions['preview'] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>';
|
||||
$update_actions['activate'] = '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>';
|
||||
$update_actions['activate'] = '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>';
|
||||
|
||||
if ( ( ! $this->result || is_wp_error($this->result) ) || $stylesheet == get_stylesheet() )
|
||||
unset($update_actions['preview'], $update_actions['activate']);
|
||||
|
||||
@@ -209,9 +209,9 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param object $user_object
|
||||
* @param string $style Optional. Attributes added to the TR element. Must be sanitized.
|
||||
* @param string $style Optional. Attributes added to the TR element. Must be sanitized.
|
||||
* @param string $role Key for the $wp_roles array.
|
||||
* @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
|
||||
* @param int $numposts Optional. Post count to display for this user. Defaults to zero, as in, a new user has made zero posts.
|
||||
* @return string
|
||||
*/
|
||||
function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
|
||||
|
||||
@@ -273,7 +273,7 @@ function wp_dashboard_right_now() {
|
||||
|
||||
echo '</tr><tr>';
|
||||
/* TODO: Show status breakdown on hover
|
||||
if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can
|
||||
if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can
|
||||
$post_type_texts[] = '<a href="edit-pages.php">'.sprintf( _n( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>';
|
||||
}
|
||||
if ( $can_edit_posts && !empty($num_posts->draft) ) {
|
||||
@@ -1115,7 +1115,7 @@ function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
|
||||
if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['widget-rss'][$number]) ) {
|
||||
$_POST['widget-rss'][$number] = stripslashes_deep( $_POST['widget-rss'][$number] );
|
||||
$widget_options[$widget_id] = wp_widget_rss_process( $_POST['widget-rss'][$number] );
|
||||
// title is optional. If black, fill it if possible
|
||||
// title is optional. If black, fill it if possible
|
||||
if ( !$widget_options[$widget_id]['title'] && isset($_POST['widget-rss'][$number]['title']) ) {
|
||||
$rss = fetch_feed($widget_options[$widget_id]['url']);
|
||||
if ( is_wp_error($rss) ) {
|
||||
|
||||
@@ -133,7 +133,7 @@ function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $le
|
||||
* @deprecated Use register_setting()
|
||||
* @see register_setting()
|
||||
*
|
||||
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
|
||||
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
|
||||
* Default whitelisted option key names include "general," "discussion," and "reading," among others.
|
||||
* @param string $option_name The name of an option to sanitize and save.
|
||||
* @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
|
||||
@@ -870,7 +870,7 @@ function type_url_form_file() {
|
||||
* @deprecated Use get_current_screen()->add_help_tab()
|
||||
* @see WP_Screen
|
||||
*
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
|
||||
* @param string $screen The handle for the screen to add help to. This is usually the hook name returned by the add_*_page() functions.
|
||||
* @param string $help The content of an 'Overview' help tab.
|
||||
*/
|
||||
function add_contextual_help( $screen, $help ) {
|
||||
|
||||
@@ -240,7 +240,7 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) {
|
||||
// You may define your own function and pass the name in $overrides['upload_error_handler']
|
||||
$upload_error_handler = 'wp_handle_upload_error';
|
||||
|
||||
// You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully.
|
||||
// You may have had one or more 'wp_handle_upload_prefilter' functions error out the file. Handle that gracefully.
|
||||
if ( isset( $file['error'] ) && !is_numeric( $file['error'] ) && $file['error'] )
|
||||
return $upload_error_handler( $file, $file['error'] );
|
||||
|
||||
@@ -364,7 +364,7 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) {
|
||||
|
||||
/**
|
||||
* Handle sideloads, which is the process of retrieving a media item from another server instead of
|
||||
* a traditional media upload. This process involves sanitizing the filename, checking extensions
|
||||
* a traditional media upload. This process involves sanitizing the filename, checking extensions
|
||||
* for mime type, and moving the file to the appropriate directory within the uploads directory.
|
||||
*
|
||||
* @since 2.6.0
|
||||
|
||||
@@ -192,7 +192,7 @@ function wp_image_editor($post_id, $msg = false) {
|
||||
</tbody></table>
|
||||
<div class="imgedit-wait" id="imgedit-wait-<?php echo $post_id; ?>"></div>
|
||||
<script type="text/javascript">imageEdit.init(<?php echo $post_id; ?>);</script>
|
||||
<div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e("There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor."); ?></div>
|
||||
<div class="hidden" id="imgedit-leaving-<?php echo $post_id; ?>"><?php _e("There are unsaved changes that will be lost. 'OK' to continue, 'Cancel' to return to the Image Editor."); ?></div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ function wp_read_image_metadata( $file ) {
|
||||
|
||||
// exif contains a bunch of data we'll probably never need formatted in ways
|
||||
// that are difficult to use. We'll normalize it and just extract the fields
|
||||
// that are likely to be useful. Fractions and numbers are converted to
|
||||
// that are likely to be useful. Fractions and numbers are converted to
|
||||
// floats, dates to unix timestamps, and everything else to strings.
|
||||
$meta = array(
|
||||
'aperture' => 0,
|
||||
|
||||
@@ -49,7 +49,7 @@ add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param int $blog_id Blog ID
|
||||
* @param bool $drop True if blog's table should be dropped. Default is false.
|
||||
* @param bool $drop True if blog's table should be dropped. Default is false.
|
||||
* @return void
|
||||
*/
|
||||
function wpmu_delete_blog( $blog_id, $drop = false ) {
|
||||
@@ -774,7 +774,7 @@ var tb_closeImage = "../../wp-includes/js/thickbox/tb-close.png";
|
||||
* Plugins can alter this criteria using the 'wp_is_large_network' filter.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @param string $using 'sites or 'users'. Default is 'sites'.
|
||||
* @param string $using 'sites or 'users'. Default is 'sites'.
|
||||
* @return bool True if the network meets the criteria for large. False otherwise.
|
||||
*/
|
||||
function wp_is_large_network( $using = 'sites' ) {
|
||||
|
||||
@@ -199,7 +199,7 @@ function install_plugin_install_status($api, $loop = false) {
|
||||
}
|
||||
|
||||
if ( 'install' == $status ) {
|
||||
if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
|
||||
if ( is_dir( WP_PLUGIN_DIR . '/' . $api->slug ) ) {
|
||||
$installed_plugin = get_plugins('/' . $api->slug);
|
||||
if ( empty($installed_plugin) ) {
|
||||
if ( current_user_can('install_plugins') )
|
||||
|
||||
@@ -985,8 +985,8 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability,
|
||||
}
|
||||
|
||||
// If the parent doesn't already have a submenu, add a link to the parent
|
||||
// as the first item in the submenu. If the submenu file is the same as the
|
||||
// parent file someone is trying to link back to the parent manually. In
|
||||
// as the first item in the submenu. If the submenu file is the same as the
|
||||
// parent file someone is trying to link back to the parent manually. In
|
||||
// this case, don't automatically add a link back to avoid duplication.
|
||||
if (!isset( $submenu[$parent_slug] ) && $menu_slug != $parent_slug ) {
|
||||
foreach ( (array)$menu as $parent_menu ) {
|
||||
@@ -1002,7 +1002,7 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability,
|
||||
add_action( $hookname, $function );
|
||||
|
||||
$_registered_pages[$hookname] = true;
|
||||
// backwards-compatibility for plugins using add_management page. See wp-admin/admin.php for redirect from edit.php to tools.php
|
||||
// backwards-compatibility for plugins using add_management page. See wp-admin/admin.php for redirect from edit.php to tools.php
|
||||
if ( 'tools.php' == $parent_slug )
|
||||
$_registered_pages[get_plugin_page_hookname( $menu_slug, 'edit.php')] = true;
|
||||
|
||||
@@ -1589,7 +1589,7 @@ function user_can_access_admin_page() {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
|
||||
* @param string $option_group A settings group name. Should correspond to a whitelisted option key name.
|
||||
* Default whitelisted option key names include "general," "discussion," and "reading," among others.
|
||||
* @param string $option_name The name of an option to sanitize and save.
|
||||
* @param unknown_type $sanitize_callback A callback function that sanitizes the option's value.
|
||||
@@ -1715,7 +1715,7 @@ function remove_option_whitelist( $del_options, $options = '' ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $option_group A settings group name. This should match the group name used in register_setting().
|
||||
* @param string $option_group A settings group name. This should match the group name used in register_setting().
|
||||
*/
|
||||
function settings_fields($option_group) {
|
||||
echo "<input type='hidden' name='option_page' value='" . esc_attr($option_group) . "' />";
|
||||
|
||||
@@ -1259,7 +1259,7 @@ function wp_create_post_autosave( $post_id ) {
|
||||
if ( is_wp_error( $translated ) )
|
||||
return $translated;
|
||||
|
||||
// Only store one autosave. If there is already an autosave, overwrite it.
|
||||
// Only store one autosave. If there is already an autosave, overwrite it.
|
||||
if ( $old_autosave = wp_get_post_autosave( $post_id ) ) {
|
||||
$new_autosave = _wp_post_revision_fields( $_POST, true );
|
||||
$new_autosave['ID'] = $old_autosave->ID;
|
||||
@@ -1320,7 +1320,7 @@ function post_preview() {
|
||||
|
||||
if ( 'draft' == $post->post_status ) {
|
||||
$id = edit_post();
|
||||
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
|
||||
} else { // Non drafts are not overwritten. The autosave is stored in a special post revision.
|
||||
$id = wp_create_post_autosave( $post->ID );
|
||||
if ( ! is_wp_error($id) )
|
||||
$id = $post->ID;
|
||||
|
||||
@@ -30,7 +30,7 @@ if ( ! empty( $wpdb->collate ) )
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @param string $scope Optional. The tables for which to retrieve SQL. Can be all, global, ms_global, or blog tables. Defaults to all.
|
||||
* @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.
|
||||
* @param int $blog_id Optional. The blog ID for which to retrieve SQL. Default is the current blog ID.
|
||||
* @return string The SQL needed to create the requested tables.
|
||||
*/
|
||||
function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
|
||||
|
||||
@@ -208,7 +208,7 @@ function set_current_screen( $hook_name = '' ) {
|
||||
*/
|
||||
final class WP_Screen {
|
||||
/**
|
||||
* Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty otherwise.
|
||||
* Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty otherwise.
|
||||
*
|
||||
* @since 3.3.0
|
||||
* @var string
|
||||
@@ -217,7 +217,7 @@ final class WP_Screen {
|
||||
public $action;
|
||||
|
||||
/**
|
||||
* The base type of the screen. This is typically the same as $id but with any post types and taxonomies stripped.
|
||||
* The base type of the screen. This is typically the same as $id but with any post types and taxonomies stripped.
|
||||
* For example, for an $id of 'edit-post' the base is 'edit'.
|
||||
*
|
||||
* @since 3.3.0
|
||||
@@ -539,7 +539,7 @@ final class WP_Screen {
|
||||
*
|
||||
* @since 3.3.0
|
||||
*
|
||||
* @param string $parent_file The parent file of the screen. Typically the $parent_file global.
|
||||
* @param string $parent_file The parent file of the screen. Typically the $parent_file global.
|
||||
*/
|
||||
function set_parentage( $parent_file ) {
|
||||
$this->parent_file = $parent_file;
|
||||
@@ -809,7 +809,7 @@ final class WP_Screen {
|
||||
$welcome_checked = false;
|
||||
}
|
||||
echo '<label for="wp_welcome_panel-hide">';
|
||||
echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />';
|
||||
echo '<input type="checkbox" id="wp_welcome_panel-hide"' . checked( (bool) $welcome_checked, true, false ) . ' />';
|
||||
echo __( 'Welcome' ) . "</label>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -86,7 +86,7 @@ function wp_create_categories($categories, $post_id = '') {
|
||||
*
|
||||
* @param mixed $catarr See defaults below. Set 'cat_ID' to a non-zero value to update an existing category. The 'taxonomy' key was added in 3.0.0.
|
||||
* @param bool $wp_error Optional, since 2.5.0. Set this to true if the caller handles WP_Error return values.
|
||||
* @return int|object The ID number of the new or updated Category on success. Zero or a WP_Error on failure, depending on param $wp_error.
|
||||
* @return int|object The ID number of the new or updated Category on success. Zero or a WP_Error on failure, depending on param $wp_error.
|
||||
*/
|
||||
function wp_insert_category($catarr, $wp_error = false) {
|
||||
$cat_defaults = array('cat_ID' => 0, 'taxonomy' => 'category', 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => '');
|
||||
@@ -145,7 +145,7 @@ function wp_insert_category($catarr, $wp_error = false) {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param array $catarr The 'cat_ID' value is required. All other keys are optional.
|
||||
* @param array $catarr The 'cat_ID' value is required. All other keys are optional.
|
||||
* @return int|bool The ID number of the new or updated Category on success. Zero or FALSE on failure.
|
||||
*/
|
||||
function wp_update_category($catarr) {
|
||||
|
||||
@@ -253,7 +253,7 @@ function theme_update_available( $theme ) {
|
||||
$theme_name = is_object($theme) ? $theme->name : (is_array($theme) ? $theme['Name'] : '');
|
||||
$details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list.
|
||||
$update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet);
|
||||
$update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.") ) . '\') ) {return true;}return false;"';
|
||||
$update_onclick = 'onclick="if ( confirm(\'' . esc_js( __("Updating this theme will lose any customizations you have made. 'Cancel' to stop, 'OK' to update.") ) . '\') ) {return true;}return false;"';
|
||||
|
||||
if ( !is_multisite() ) {
|
||||
if ( ! current_user_can('update_themes') )
|
||||
|
||||
@@ -58,8 +58,8 @@ function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated
|
||||
if ( ! $public )
|
||||
update_option('default_pingback_flag', 0);
|
||||
|
||||
// Create default user. If the user already exists, the user tables are
|
||||
// being shared among blogs. Just set the role in that case.
|
||||
// Create default user. If the user already exists, the user tables are
|
||||
// being shared among blogs. Just set the role in that case.
|
||||
$user_id = username_exists($user_name);
|
||||
$user_password = trim($user_password);
|
||||
$email_password = false;
|
||||
@@ -358,7 +358,7 @@ function wp_upgrade() {
|
||||
|
||||
$wp_current_db_version = __get_option('db_version');
|
||||
|
||||
// We are up-to-date. Nothing to do.
|
||||
// We are up-to-date. Nothing to do.
|
||||
if ( $wp_db_version == $wp_current_db_version )
|
||||
return;
|
||||
|
||||
@@ -394,7 +394,7 @@ function upgrade_all() {
|
||||
global $wp_current_db_version, $wp_db_version, $wp_rewrite;
|
||||
$wp_current_db_version = __get_option('db_version');
|
||||
|
||||
// We are up-to-date. Nothing to do.
|
||||
// We are up-to-date. Nothing to do.
|
||||
if ( $wp_db_version == $wp_current_db_version )
|
||||
return;
|
||||
|
||||
@@ -646,7 +646,7 @@ function upgrade_130() {
|
||||
$active_plugins = __get_option('active_plugins');
|
||||
|
||||
// If plugins are not stored in an array, they're stored in the old
|
||||
// newline separated format. Convert to new format.
|
||||
// newline separated format. Convert to new format.
|
||||
if ( !is_array( $active_plugins ) ) {
|
||||
$active_plugins = explode("\n", trim($active_plugins));
|
||||
update_option('active_plugins', $active_plugins);
|
||||
@@ -898,9 +898,9 @@ function upgrade_230() {
|
||||
$wpdb->insert( $wpdb->term_relationships, array('object_id' => $post_id, 'term_taxonomy_id' => $tt_id) );
|
||||
}
|
||||
|
||||
// < 3570 we used linkcategories. >= 3570 we used categories and link2cat.
|
||||
// < 3570 we used linkcategories. >= 3570 we used categories and link2cat.
|
||||
if ( $wp_current_db_version < 3570 ) {
|
||||
// Create link_category terms for link categories. Create a map of link cat IDs
|
||||
// Create link_category terms for link categories. Create a map of link cat IDs
|
||||
// to link_category terms.
|
||||
$link_cat_id_map = array();
|
||||
$default_link_cat = 0;
|
||||
@@ -1690,7 +1690,7 @@ function make_site_theme_from_oldschool($theme_name, $template) {
|
||||
return false;
|
||||
|
||||
// Copy files from the old locations to the site theme.
|
||||
// TODO: This does not copy arbitrary include dependencies. Only the
|
||||
// TODO: This does not copy arbitrary include dependencies. Only the
|
||||
// standard WP files are copied.
|
||||
$files = array('index.php' => 'index.php', 'wp-layout.css' => 'style.css', 'wp-comments.php' => 'comments.php', 'wp-comments-popup.php' => 'comments-popup.php');
|
||||
|
||||
@@ -1938,7 +1938,7 @@ function pre_schema_upgrade() {
|
||||
|
||||
// Upgrade versions prior to 2.9
|
||||
if ( $wp_current_db_version < 11557 ) {
|
||||
// Delete duplicate options. Keep the option with the highest option_id.
|
||||
// Delete duplicate options. Keep the option with the highest option_id.
|
||||
$wpdb->query("DELETE o1 FROM $wpdb->options AS o1 JOIN $wpdb->options AS o2 USING (`option_name`) WHERE o2.option_id > o1.option_id");
|
||||
|
||||
// Drop the old primary key and add the new.
|
||||
|
||||
@@ -207,7 +207,7 @@ switch($step) {
|
||||
$error = true;
|
||||
} elseif ( ! is_email( $admin_email ) ) {
|
||||
// TODO: poka-yoke
|
||||
display_setup_form( __( 'that isn’t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>' ) );
|
||||
display_setup_form( __( 'that isn’t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code>' ) );
|
||||
$error = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -316,7 +316,7 @@ $(document).ready( function() {
|
||||
var el = e.target, selStart = el.selectionStart, selEnd = el.selectionEnd, val = el.value, scroll, sel;
|
||||
|
||||
try {
|
||||
this.lastKey = 9; // not a standard DOM property, lastKey is to help stop Opera tab event. See blur handler below.
|
||||
this.lastKey = 9; // not a standard DOM property, lastKey is to help stop Opera tab event. See blur handler below.
|
||||
} catch(err) {}
|
||||
|
||||
if ( document.selection ) {
|
||||
|
||||
@@ -19,7 +19,7 @@ header( 'Content-Type: text/html; charset=utf-8' );
|
||||
<?php
|
||||
|
||||
if ( !defined('WP_ALLOW_REPAIR') ) {
|
||||
echo '<p>'.__('To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>";
|
||||
echo '<p>'.__('To allow use of this page to automatically repair database problems, please add the following line to your wp-config.php file. Once this line is added to your config, reload this page.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>";
|
||||
} elseif ( isset($_GET['repair']) ) {
|
||||
check_admin_referer('repair_db');
|
||||
|
||||
@@ -49,7 +49,7 @@ if ( !defined('WP_ALLOW_REPAIR') ) {
|
||||
printf( __( 'The %s table is okay.' ), $table );
|
||||
} else {
|
||||
/* translators: 1: table name, 2: error message, */
|
||||
printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table…' ) , $table, "<code>$check->Msg_text</code>" );
|
||||
printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table…' ) , $table, "<code>$check->Msg_text</code>" );
|
||||
|
||||
$repair = $wpdb->get_row("REPAIR TABLE $table");
|
||||
|
||||
@@ -95,16 +95,16 @@ if ( !defined('WP_ALLOW_REPAIR') ) {
|
||||
$problem_output[] = "$table: $problem";
|
||||
echo '<textarea name="errors" id="errors" rows="20" cols="60">' . esc_textarea( implode("\n", $problem_output) ) . '</textarea>';
|
||||
} else {
|
||||
echo '<p>'.__('Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>";
|
||||
echo '<p>'.__('Repairs complete. Please remove the following line from wp-config.php to prevent this page from being used by unauthorized users.')."</p><code>define('WP_ALLOW_REPAIR', true);</code>";
|
||||
}
|
||||
} else {
|
||||
if ( isset($_GET['referrer']) && 'is_blog_installed' == $_GET['referrer'] )
|
||||
_e('One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take a while, so please be patient.');
|
||||
else
|
||||
_e('WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.')
|
||||
_e('WordPress can automatically look for some common database problems and repair them. Repairing can take a while, so please be patient.')
|
||||
?>
|
||||
<p class="step"><a class="button" href="<?php echo wp_nonce_url('repair.php?repair=1', 'repair_db') ?>"><?php _e( 'Repair Database' ); ?></a></p>
|
||||
<?php _e('WordPress can also attempt to optimize the database. This improves performance in some situations. Repairing and optimizing the database can take a long time and the database will be locked while optimizing.'); ?>
|
||||
<?php _e('WordPress can also attempt to optimize the database. This improves performance in some situations. Repairing and optimizing the database can take a long time and the database will be locked while optimizing.'); ?>
|
||||
<p class="step"><a class="button" href="<?php echo wp_nonce_url('repair.php?repair=2', 'repair_db') ?>"><?php _e( 'Repair and Optimize Database' ); ?></a></p>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -322,7 +322,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||
$menu_perms = get_site_option( 'menu_items' );
|
||||
$menu_items = apply_filters( 'mu_menu_items', array( 'plugins' => __( 'Plugins' ) ) );
|
||||
foreach ( (array) $menu_items as $key => $val ) {
|
||||
echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";
|
||||
echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[$key] ) ? checked( $menu_perms[$key], '1', false ) : '' ) . " /> " . esc_html( $val ) . "</label><br/>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -108,7 +108,7 @@ $tabs = array(
|
||||
);
|
||||
foreach ( $tabs as $tab_id => $tab ) {
|
||||
$class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : '';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
}
|
||||
?>
|
||||
</h3>
|
||||
|
||||
@@ -98,7 +98,7 @@ $tabs = array(
|
||||
);
|
||||
foreach ( $tabs as $tab_id => $tab ) {
|
||||
$class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : '';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
}
|
||||
?>
|
||||
</h3>
|
||||
|
||||
@@ -152,7 +152,7 @@ $tabs = array(
|
||||
);
|
||||
foreach ( $tabs as $tab_id => $tab ) {
|
||||
$class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : '';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
}
|
||||
?>
|
||||
</h3><?php
|
||||
|
||||
@@ -186,7 +186,7 @@ $tabs = array(
|
||||
);
|
||||
foreach ( $tabs as $tab_id => $tab ) {
|
||||
$class = ( $tab['url'] == $pagenow ) ? ' nav-tab-active' : '';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
echo '<a href="' . $tab['url'] . '?id=' . $id .'" class="nav-tab' . $class . '">' . esc_html( $tab['label'] ) . '</a>';
|
||||
}
|
||||
?>
|
||||
</h3><?php
|
||||
|
||||
@@ -164,7 +164,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
|
||||
|
||||
<h3><?php _e('Avatars'); ?></h3>
|
||||
|
||||
<p><?php _e('An avatar is an image that follows you from weblog to weblog appearing beside your name when you comment on avatar enabled sites. Here you can enable the display of avatars for people who comment on your site.'); ?></p>
|
||||
<p><?php _e('An avatar is an image that follows you from weblog to weblog appearing beside your name when you comment on avatar enabled sites. Here you can enable the display of avatars for people who comment on your site.'); ?></p>
|
||||
|
||||
<?php // the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? ?>
|
||||
|
||||
@@ -228,7 +228,7 @@ $size = 32;
|
||||
$avatar_list = '';
|
||||
foreach ( $avatar_defaults as $default_key => $default_name ) {
|
||||
$selected = ($default == $default_key) ? 'checked="checked" ' : '';
|
||||
$avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='" . esc_attr($default_key) . "' {$selected}/> ";
|
||||
$avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='" . esc_attr($default_key) . "' {$selected}/> ";
|
||||
|
||||
$avatar = get_avatar( $user_email, $size, $default_key );
|
||||
$avatar_list .= preg_replace("/src='(.+?)'/", "src='\$1&forcedefault=1'", $avatar);
|
||||
|
||||
@@ -151,7 +151,7 @@ $tzstring = get_option('timezone_string');
|
||||
|
||||
$check_zone_info = true;
|
||||
|
||||
// Remove old Etc mappings. Fallback to gmt_offset.
|
||||
// Remove old Etc mappings. Fallback to gmt_offset.
|
||||
if ( false !== strpos($tzstring,'Etc/GMT') )
|
||||
$tzstring = '';
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ get_current_screen()->add_help_tab( array(
|
||||
if ( is_multisite() ) {
|
||||
$post_email_help = '<p>' . __('Due to security issues, you cannot use Post By Email on Multisite Installs.') . '</p>';
|
||||
} else {
|
||||
$post_email_help = '<p>' . __('Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.') . '</p>';
|
||||
$post_email_help = '<p>' . __('Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.') . '</p>';
|
||||
}
|
||||
|
||||
get_current_screen()->add_help_tab( array(
|
||||
|
||||
@@ -236,7 +236,7 @@ foreach ( $plugin_files as $plugin_file ) :
|
||||
<?php endif; ?>
|
||||
<?php if ( is_writeable($real_file) ) : ?>
|
||||
<?php if ( in_array( $file, (array) get_option( 'active_plugins', array() ) ) ) { ?>
|
||||
<p><?php _e('<strong>Warning:</strong> Making changes to active plugins is not recommended. If your changes cause a fatal error, the plugin will be automatically deactivated.'); ?></p>
|
||||
<p><?php _e('<strong>Warning:</strong> Making changes to active plugins is not recommended. If your changes cause a fatal error, the plugin will be automatically deactivated.'); ?></p>
|
||||
<?php } ?>
|
||||
<p class="submit">
|
||||
<?php
|
||||
|
||||
@@ -355,7 +355,7 @@ if ( !empty($invalid) )
|
||||
if ( isset( $_GET['main'] ) )
|
||||
$errmsg = __( 'You cannot delete a plugin while it is active on the main site.' );
|
||||
elseif ( isset($_GET['charsout']) )
|
||||
$errmsg = sprintf(__('The plugin generated %d characters of <strong>unexpected output</strong> during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.'), $_GET['charsout']);
|
||||
$errmsg = sprintf(__('The plugin generated %d characters of <strong>unexpected output</strong> during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.'), $_GET['charsout']);
|
||||
else
|
||||
$errmsg = __('Plugin could not be activated because it triggered a <strong>fatal error</strong>.');
|
||||
?>
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@ require_once('./admin-header.php');
|
||||
?>
|
||||
|
||||
<?php if ( ! validate_current_theme() ) : ?>
|
||||
<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
|
||||
<div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div>
|
||||
<?php elseif ( isset($_GET['activated']) ) :
|
||||
if ( isset($wp_registered_sidebars) && count( (array) $wp_registered_sidebars ) && current_user_can('edit_theme_options') ) { ?>
|
||||
<div id="message2" class="updated"><p><?php printf( __('New theme activated. This theme supports widgets, please visit the <a href="%s">widgets settings</a> screen to configure them.'), admin_url( 'widgets.php' ) ); ?></p></div><?php
|
||||
|
||||
@@ -36,7 +36,7 @@ function list_core_update( $update ) {
|
||||
$mysql_version = $wpdb->db_version();
|
||||
$show_buttons = true;
|
||||
if ( 'development' == $update->response ) {
|
||||
$message = __('You are using a development version of WordPress. You can update to the latest nightly build automatically or download the nightly build and install it manually:');
|
||||
$message = __('You are using a development version of WordPress. You can update to the latest nightly build automatically or download the nightly build and install it manually:');
|
||||
$download = __('Download nightly build');
|
||||
} else {
|
||||
if ( $current ) {
|
||||
@@ -317,7 +317,7 @@ function list_theme_updates() {
|
||||
echo "
|
||||
<tr class='active'>
|
||||
<th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($stylesheet) . "' /></th>
|
||||
<td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>{$theme_data->Name}</strong>" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td>
|
||||
<td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>{$theme_data->Name}</strong>" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td>
|
||||
</tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -27,7 +27,7 @@ if ( isset( $_GET['step'] ) )
|
||||
else
|
||||
$step = 0;
|
||||
|
||||
// Do it. No output.
|
||||
// Do it. No output.
|
||||
if ( 'upgrade_db' === $step ) {
|
||||
wp_upgrade();
|
||||
die( '0' );
|
||||
|
||||
@@ -163,7 +163,7 @@ get_current_screen()->add_help_tab( array(
|
||||
'content' => '<p>' . __('Here is a basic overview of the different user roles and the permissions associated with each one:') . '</p>' .
|
||||
'<ul>' .
|
||||
'<li>' . __('Administrators have access to all the administration features.') . '</li>' .
|
||||
'<li>' . __('Editors can publish posts, manage posts as well as manage other people’s posts, etc.') . '</li>' .
|
||||
'<li>' . __('Editors can publish posts, manage posts as well as manage other people’s posts, etc.') . '</li>' .
|
||||
'<li>' . __('Authors can publish and manage their own posts, and are able to upload files.') . '</li>' .
|
||||
'<li>' . __('Contributors can write and manage their posts but not publish posts or upload media files.') . '</li>' .
|
||||
'<li>' . __('Subscribers can read comments/comment/receive newsletters, etc. but cannot create regular site content.') . '</li>' .
|
||||
@@ -251,10 +251,10 @@ if ( is_multisite() ) {
|
||||
if ( $do_both )
|
||||
echo '<h3 id="add-existing-user">' . __('Add Existing User') . '</h3>';
|
||||
if ( !is_super_admin() ) {
|
||||
_e( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' );
|
||||
_e( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' );
|
||||
$label = __('E-mail');
|
||||
} else {
|
||||
_e( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' );
|
||||
_e( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' );
|
||||
$label = __('E-mail or Username');
|
||||
}
|
||||
?>
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ get_current_screen()->add_help_tab( array(
|
||||
'content' => '<p>' . __('You can customize the display of this screen in a number of ways:') . '</p>' .
|
||||
'<ul>' .
|
||||
'<li>' . __('You can hide/display columns based on your needs and decide how many users to list per screen using the Screen Options tab.') . '</li>' .
|
||||
'<li>' . __('You can filter the list of users by User Role using the text links in the upper left to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users. Unused User Roles are not listed.') . '</li>' .
|
||||
'<li>' . __('You can filter the list of users by User Role using the text links in the upper left to show All, Administrator, Editor, Author, Contributor, or Subscriber. The default view is to show all users. Unused User Roles are not listed.') . '</li>' .
|
||||
'<li>' . __('You can view all posts made by a user by clicking on the number under the Posts column.') . '</li>' .
|
||||
'</ul>'
|
||||
) );
|
||||
|
||||
Reference in New Issue
Block a user