mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
s/blog/site/ in more places. props PeteMall, see #11644.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c1cc83750
commit
f9df8a36ae
@ -11,7 +11,7 @@ if ( !defined('ABSPATH') )
|
||||
die('-1');
|
||||
|
||||
if ( !current_user_can('manage_categories') )
|
||||
wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to edit link categories for this site.'));
|
||||
|
||||
/**
|
||||
* @var object
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once ('admin.php');
|
||||
|
||||
if ( !current_user_can('edit_files') )
|
||||
wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to export the content of this site.'));
|
||||
|
||||
/** Load WordPress export API */
|
||||
require_once('./includes/export.php');
|
||||
@ -59,7 +59,7 @@ for ( $i = 1; $i < 13; $i++ ) {
|
||||
|
||||
<p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p>
|
||||
<p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p>
|
||||
<p><?php _e('Once you’ve saved the download file, you can use the Import function on another WordPress blog to import this blog.'); ?></p>
|
||||
<p><?php _e('Once you’ve saved the download file, you can use the Import function on another WordPress site to import this site.'); ?></p>
|
||||
<form action="" method="get">
|
||||
<h3><?php _e('Options'); ?></h3>
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once ('admin.php');
|
||||
|
||||
if ( !current_user_can('edit_files') )
|
||||
wp_die(__('You do not have sufficient permissions to import content in this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to import content in this site.'));
|
||||
|
||||
$title = __('Import');
|
||||
require_once ('admin-header.php');
|
||||
@ -20,7 +20,7 @@ $parent_file = 'tools.php';
|
||||
<div class="wrap">
|
||||
<?php screen_icon(); ?>
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
<p><?php _e('If you have posts or comments in another system, WordPress can import those into this blog. To get started, choose a system to import from below:'); ?></p>
|
||||
<p><?php _e('If you have posts or comments in another system, WordPress can import those into this site. To get started, choose a system to import from below:'); ?></p>
|
||||
|
||||
<?php
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( ! current_user_can('manage_links') )
|
||||
wp_die(__('You do not have sufficient permissions to add links to this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to add links to this site.'));
|
||||
|
||||
$title = __('Add New Link');
|
||||
$parent_file = 'link-manager.php';
|
||||
|
@ -15,7 +15,7 @@ if ( isset($_GET['action']) && isset($_GET['linkcheck']) ) {
|
||||
$doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
|
||||
|
||||
if ( ! current_user_can('manage_links') )
|
||||
wp_die( __('You do not have sufficient permissions to edit the links for this blog.') );
|
||||
wp_die( __('You do not have sufficient permissions to edit the links for this site.') );
|
||||
|
||||
if ( 'delete' == $doaction ) {
|
||||
$bulklinks = (array) $_GET['linkcheck'];
|
||||
@ -46,7 +46,7 @@ $this_file = $parent_file = 'link-manager.php';
|
||||
include_once ('./admin-header.php');
|
||||
|
||||
if ( ! current_user_can('manage_links') )
|
||||
wp_die(__("You do not have sufficient permissions to edit the links for this blog."));
|
||||
wp_die(__("You do not have sufficient permissions to edit the links for this site."));
|
||||
|
||||
switch ($order_by) {
|
||||
case 'order_id' :
|
||||
|
@ -15,7 +15,7 @@ require_once ('admin.php');
|
||||
wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image', 'description', 'visible', 'target', 'category', 'link_id', 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes', 'linkcheck[]'));
|
||||
|
||||
if ( ! current_user_can('manage_links') )
|
||||
wp_die( __('You do not have sufficient permissions to edit the links for this blog.') );
|
||||
wp_die( __('You do not have sufficient permissions to edit the links for this site.') );
|
||||
|
||||
if ( !empty($_POST['deletebookmarks']) )
|
||||
$action = 'deletebookmarks';
|
||||
|
@ -82,7 +82,7 @@ switch ( $_GET['action'] ) {
|
||||
$blog_details = get_blog_details( $dashboard_blog );
|
||||
if ( false === $blog_details ) {
|
||||
if ( is_numeric( $dashboard_blog ) )
|
||||
wp_die( __( 'Dashboard blog_id must be a blog that already exists' ) );
|
||||
wp_die( __( 'A dashboard site referenced by ID must already exist' ) );
|
||||
if ( is_subdomain_install() ) {
|
||||
$domain = $dashboard_blog . '.' . $current_site->domain;
|
||||
$path = $current_site->path;
|
||||
@ -98,7 +98,7 @@ switch ( $_GET['action'] ) {
|
||||
}
|
||||
}
|
||||
if ( is_wp_error( $dashboard_blog_id ) )
|
||||
wp_die( __( 'Problem creating dashboard blog: ' ) . $dashboard_blog_id->get_error_message() );
|
||||
wp_die( __( 'Problem creating dashboard site: ' ) . $dashboard_blog_id->get_error_message() );
|
||||
if ( $_POST['dashboard_blog_orig'] != $_POST['dashboard_blog'] ) {
|
||||
$users = get_users_of_blog( get_site_option( 'dashboard_blog' ) );
|
||||
$move_users = array();
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( ! current_user_can('install_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to install plugins on this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to install plugins on this site.'));
|
||||
|
||||
include(ABSPATH . 'wp-admin/includes/plugin-install.php');
|
||||
|
||||
|
@ -45,7 +45,7 @@ if ( !empty($action) ) {
|
||||
switch ( $action ) {
|
||||
case 'activate':
|
||||
if ( ! current_user_can('activate_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
|
||||
|
||||
check_admin_referer('activate-plugin_' . $plugin);
|
||||
|
||||
@ -72,7 +72,7 @@ if ( !empty($action) ) {
|
||||
case 'activate-selected':
|
||||
case 'network-activate-selected':
|
||||
if ( ! current_user_can('activate_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
|
||||
|
||||
check_admin_referer('bulk-manage-plugins');
|
||||
|
||||
@ -126,7 +126,7 @@ if ( !empty($action) ) {
|
||||
break;
|
||||
case 'error_scrape':
|
||||
if ( ! current_user_can('activate_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to activate plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
|
||||
|
||||
check_admin_referer('plugin-activation-error_' . $plugin);
|
||||
|
||||
@ -152,7 +152,7 @@ if ( !empty($action) ) {
|
||||
break;
|
||||
case 'deactivate':
|
||||
if ( ! current_user_can('activate_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
|
||||
|
||||
check_admin_referer('deactivate-plugin_' . $plugin);
|
||||
deactivate_plugins($plugin);
|
||||
@ -165,7 +165,7 @@ if ( !empty($action) ) {
|
||||
break;
|
||||
case 'deactivate-selected':
|
||||
if ( ! current_user_can('activate_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to deactivate plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
|
||||
|
||||
check_admin_referer('bulk-manage-plugins');
|
||||
|
||||
@ -188,7 +188,7 @@ if ( !empty($action) ) {
|
||||
break;
|
||||
case 'delete-selected':
|
||||
if ( ! current_user_can('delete_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to delete plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to delete plugins for this site.'));
|
||||
|
||||
check_admin_referer('bulk-manage-plugins');
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( !current_user_can('edit_themes') )
|
||||
wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
|
||||
wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this site.').'</p>');
|
||||
|
||||
$title = __("Edit Themes");
|
||||
$parent_file = 'themes.php';
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( ! current_user_can('install_themes') )
|
||||
wp_die(__('You do not have sufficient permissions to install themes on this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to install themes on this site.'));
|
||||
|
||||
include(ABSPATH . 'wp-admin/includes/theme-install.php');
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
require_once('./admin.php');
|
||||
|
||||
if ( ! current_user_can('update_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this site.'));
|
||||
|
||||
function list_core_update( $update ) {
|
||||
global $wp_local_package, $wpdb;
|
||||
|
@ -18,7 +18,7 @@ if ( isset($_GET['action']) ) {
|
||||
|
||||
if ( 'update-selected' == $action ) {
|
||||
if ( ! current_user_can( 'update_plugins' ) )
|
||||
wp_die( __( 'You do not have sufficient permissions to update plugins for this blog.' ) );
|
||||
wp_die( __( 'You do not have sufficient permissions to update plugins for this site.' ) );
|
||||
|
||||
check_admin_referer( 'bulk-update-plugins' );
|
||||
|
||||
@ -45,7 +45,7 @@ if ( isset($_GET['action']) ) {
|
||||
|
||||
} elseif ( 'upgrade-plugin' == $action ) {
|
||||
if ( ! current_user_can('update_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this site.'));
|
||||
|
||||
check_admin_referer('upgrade-plugin_' . $plugin);
|
||||
|
||||
@ -64,7 +64,7 @@ if ( isset($_GET['action']) ) {
|
||||
|
||||
} elseif ('activate-plugin' == $action ) {
|
||||
if ( ! current_user_can('update_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to update plugins for this site.'));
|
||||
|
||||
check_admin_referer('activate-plugin_' . $plugin);
|
||||
if ( ! isset($_GET['failure']) && ! isset($_GET['success']) ) {
|
||||
@ -92,7 +92,7 @@ if ( isset($_GET['action']) ) {
|
||||
} elseif ( 'install-plugin' == $action ) {
|
||||
|
||||
if ( ! current_user_can('install_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to install plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to install plugins for this site.'));
|
||||
|
||||
include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api..
|
||||
|
||||
@ -120,7 +120,7 @@ if ( isset($_GET['action']) ) {
|
||||
} elseif ( 'upload-plugin' == $action ) {
|
||||
|
||||
if ( ! current_user_can('install_plugins') )
|
||||
wp_die(__('You do not have sufficient permissions to install plugins for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to install plugins for this site.'));
|
||||
|
||||
check_admin_referer('plugin-upload');
|
||||
|
||||
@ -144,7 +144,7 @@ if ( isset($_GET['action']) ) {
|
||||
} elseif ( 'upgrade-theme' == $action ) {
|
||||
|
||||
if ( ! current_user_can('update_themes') )
|
||||
wp_die(__('You do not have sufficient permissions to update themes for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to update themes for this site.'));
|
||||
|
||||
check_admin_referer('upgrade-theme_' . $theme);
|
||||
|
||||
@ -164,7 +164,7 @@ if ( isset($_GET['action']) ) {
|
||||
include('./admin-footer.php');
|
||||
} elseif ( 'update-selected-themes' == $action ) {
|
||||
if ( ! current_user_can( 'update_themes' ) )
|
||||
wp_die( __( 'You do not have sufficient permissions to update themes for this blog.' ) );
|
||||
wp_die( __( 'You do not have sufficient permissions to update themes for this site.' ) );
|
||||
|
||||
check_admin_referer( 'bulk-update-themes' );
|
||||
|
||||
@ -191,7 +191,7 @@ if ( isset($_GET['action']) ) {
|
||||
} elseif ( 'install-theme' == $action ) {
|
||||
|
||||
if ( ! current_user_can('install_themes') )
|
||||
wp_die(__('You do not have sufficient permissions to install themes for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to install themes for this site.'));
|
||||
|
||||
include_once ABSPATH . 'wp-admin/includes/theme-install.php'; //for themes_api..
|
||||
|
||||
@ -221,7 +221,7 @@ if ( isset($_GET['action']) ) {
|
||||
} elseif ( 'upload-theme' == $action ) {
|
||||
|
||||
if ( ! current_user_can('install_themes') )
|
||||
wp_die(__('You do not have sufficient permissions to install themes for this blog.'));
|
||||
wp_die(__('You do not have sufficient permissions to install themes for this site.'));
|
||||
|
||||
check_admin_referer('theme-upload');
|
||||
|
||||
|
@ -392,7 +392,7 @@ function wp_start_object_cache() {
|
||||
function wp_not_installed() {
|
||||
if ( is_multisite() ) {
|
||||
if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) )
|
||||
wp_die( __( 'The blog you have requested is not installed properly. Please contact the system administrator.' ) );
|
||||
wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
|
||||
} elseif ( ! is_blog_installed() && false === strpos( $_SERVER['PHP_SELF'], 'install.php' ) && !defined( 'WP_INSTALLING' ) ) {
|
||||
if ( defined( 'WP_SITEURL' ) )
|
||||
$link = WP_SITEURL . '/wp-admin/install.php';
|
||||
|
@ -68,7 +68,7 @@ function ms_site_check() {
|
||||
return WP_CONTENT_DIR . '/blog-suspended.php';
|
||||
} else {
|
||||
header( 'HTTP/1.1 410 Gone' );
|
||||
wp_die( /*WP_I18N_ARCHIVED*/'This blog has been archived or suspended.'/*/WP_I18N_ARCHIVED*/ );
|
||||
wp_die( /*WP_I18N_ARCHIVED*/'This site has been archived or suspended.'/*/WP_I18N_ARCHIVED*/ );
|
||||
}
|
||||
}
|
||||
|
||||
@ -181,7 +181,7 @@ function wpmu_current_site() {
|
||||
// Still no dice.
|
||||
// @todo Update or remove WPMU codex link.
|
||||
if ( 1 == count( $sites ) )
|
||||
wp_die( sprintf( /*WP_I18N_BLOG_DOESNT_EXIST*/'That blog does not exist. Please try <a href="%s">%s</a>.'/*/WP_I18N_BLOG_DOESNT_EXIST*/, $sites[0]->domain . $sites[0]->path ) );
|
||||
wp_die( sprintf( /*WP_I18N_BLOG_DOESNT_EXIST*/'That site does not exist. Please try <a href="%s">%s</a>.'/*/WP_I18N_BLOG_DOESNT_EXIST*/, $sites[0]->domain . $sites[0]->path ) );
|
||||
else
|
||||
wp_die( /*WP_I18N_NO_SITE_DEFINED*/'No site defined on this host. If you are the owner of this site, please check <a href="http://codex.wordpress.org/Debugging_WPMU">Debugging WPMU</a> for help.'/*/WP_I18N_NO_SITE_DEFINED*/ );
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ if ( !isset( $current_site ) || !isset( $current_blog ) ) {
|
||||
$current_blog->blog_id = $blog_id = 1;
|
||||
} else {
|
||||
$msg = ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ? ' ' . /*WP_I18N_TABLES_MISSING*/'Database tables are missing.'/*/WP_I18N_TABLES_MISSING*/ : '';
|
||||
wp_die( /*WP_I18N_NO_BLOG*/'No blog by that name on this system.'/*/WP_I18N_NO_BLOG*/ . $msg );
|
||||
wp_die( /*WP_I18N_NO_BLOG*/'No site by that name on this system.'/*/WP_I18N_NO_BLOG*/ . $msg );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user