s/wpmu/ms/ in file refs. Props Denis-de-Bernardy. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b13380665b
commit
fd475d2b38
|
@ -731,7 +731,7 @@ function site_admin_notice() {
|
||||||
return false;
|
return false;
|
||||||
printf("<div id='update-nag'>" . __("Hi %s! You're logged in as a site administrator.") . "</div>", $current_user->user_login);
|
printf("<div id='update-nag'>" . __("Hi %s! You're logged in as a site administrator.") . "</div>", $current_user->user_login);
|
||||||
if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) {
|
if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) {
|
||||||
echo "<div id='update-nag'>" . __( 'Thank you for Upgrading! Please visit the <a href="wpmu-upgrade-site.php">Upgrade Site</a> page to update all your blogs.' ) . "</div>";
|
echo "<div id='update-nag'>" . __( 'Thank you for Upgrading! Please visit the <a href="ms-upgrade-site.php">Upgrade Site</a> page to update all your blogs.' ) . "</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action( 'admin_notices', 'site_admin_notice' );
|
add_action( 'admin_notices', 'site_admin_notice' );
|
||||||
|
@ -837,7 +837,7 @@ add_action( 'after_plugin_row', 'add_sitewide_activate_row', 9, 3 );
|
||||||
* be activated as a site wide MU plugin.
|
* be activated as a site wide MU plugin.
|
||||||
*/
|
*/
|
||||||
function is_wpmu_sitewide_plugin( $file ) {
|
function is_wpmu_sitewide_plugin( $file ) {
|
||||||
/* Open the plugin file for reading to check if this is a wpmu-plugin. */
|
/* Open the plugin file for reading to check if this is a ms-plugin. */
|
||||||
$fp = @fopen( WP_PLUGIN_DIR . '/' . $file, 'r' );
|
$fp = @fopen( WP_PLUGIN_DIR . '/' . $file, 'r' );
|
||||||
|
|
||||||
/* Pull only the first 8kiB of the file in. */
|
/* Pull only the first 8kiB of the file in. */
|
||||||
|
@ -1092,7 +1092,7 @@ function disable_some_pages() {
|
||||||
|
|
||||||
if ( strpos( $_SERVER['PHP_SELF'], 'user-new.php' ) && !get_site_option( 'add_new_users' ) ) {
|
if ( strpos( $_SERVER['PHP_SELF'], 'user-new.php' ) && !get_site_option( 'add_new_users' ) ) {
|
||||||
if ( is_site_admin() ) {
|
if ( is_site_admin() ) {
|
||||||
$messages[] = '<div id="message" class="updated fade"><p>' . __( 'Warning! Only site administrators may see this page. Everyone else will see a <em>page disabled</em> message. Enable it again on <a href="wpmu-options.php#addnewusers">the options page</a>.' ) . '</p></div>';
|
$messages[] = '<div id="message" class="updated fade"><p>' . __( 'Warning! Only site administrators may see this page. Everyone else will see a <em>page disabled</em> message. Enable it again on <a href="ms-options.php#addnewusers">the options page</a>.' ) . '</p></div>';
|
||||||
} else {
|
} else {
|
||||||
wp_die( __('Page disabled by the administrator') );
|
wp_die( __('Page disabled by the administrator') );
|
||||||
}
|
}
|
||||||
|
@ -1253,7 +1253,7 @@ function show_post_thumbnail_warning() {
|
||||||
}
|
}
|
||||||
$mu_media_buttons = get_site_option( 'mu_media_buttons', array() );
|
$mu_media_buttons = get_site_option( 'mu_media_buttons', array() );
|
||||||
if ( !$mu_media_buttons[ 'image' ] && current_theme_supports( 'post-thumbnails' ) ) {
|
if ( !$mu_media_buttons[ 'image' ] && current_theme_supports( 'post-thumbnails' ) ) {
|
||||||
echo "<div id='update-nag'>" . sprintf( __( "Warning! The current theme supports post thumbnails. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), admin_url( 'wpmu-options.php' ) ) . "</div>";
|
echo "<div id='update-nag'>" . sprintf( __( "Warning! The current theme supports post thumbnails. You must enable image uploads on <a href='%s'>the options page</a> for it to work." ), admin_url( 'ms-options.php' ) ) . "</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action( 'admin_notices', 'show_post_thumbnail_warning' );
|
add_action( 'admin_notices', 'show_post_thumbnail_warning' );
|
||||||
|
|
|
@ -5,7 +5,7 @@ if ( !is_multisite() )
|
||||||
wp_die( __('Multisite support is not enabled.') );
|
wp_die( __('Multisite support is not enabled.') );
|
||||||
|
|
||||||
$title = __('WordPress MU › Admin');
|
$title = __('WordPress MU › Admin');
|
||||||
$parent_file = 'wpmu-admin.php';
|
$parent_file = 'ms-admin.php';
|
||||||
|
|
||||||
function index_css() {
|
function index_css() {
|
||||||
wp_admin_css( 'css/dashboard' );
|
wp_admin_css( 'css/dashboard' );
|
||||||
|
@ -33,15 +33,15 @@ $title = __( 'WordPress MU : Admin' );
|
||||||
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
<h2><?php echo wp_specialchars( $title ); ?></h2>
|
||||||
|
|
||||||
<ul class="subsubsub">
|
<ul class="subsubsub">
|
||||||
<li><a href="wpmu-blogs.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li>
|
<li><a href="ms-blogs.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li>
|
||||||
<li><a href="wpmu-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li>
|
<li><a href="ms-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br clear='all' />
|
<br clear='all' />
|
||||||
|
|
||||||
<p class="youhave"><?php echo $sentence; ?></p>
|
<p class="youhave"><?php echo $sentence; ?></p>
|
||||||
<?php do_action('wpmuadminresult', ''); ?>
|
<?php do_action('wpmuadminresult', ''); ?>
|
||||||
|
|
||||||
<form name="searchform" action="wpmu-users.php" method="get">
|
<form name="searchform" action="ms-users.php" method="get">
|
||||||
<p>
|
<p>
|
||||||
<input type="hidden" name="action" value="users" />
|
<input type="hidden" name="action" value="users" />
|
||||||
<input type="text" name="s" value="" size="17" />
|
<input type="text" name="s" value="" size="17" />
|
||||||
|
@ -49,7 +49,7 @@ $title = __( 'WordPress MU : Admin' );
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form name="searchform" action="wpmu-blogs.php" method="get">
|
<form name="searchform" action="ms-blogs.php" method="get">
|
||||||
<p>
|
<p>
|
||||||
<input type="hidden" name="action" value="blogs" />
|
<input type="hidden" name="action" value="blogs" />
|
||||||
<input type="text" name="s" value="" size="17" />
|
<input type="text" name="s" value="" size="17" />
|
||||||
|
|
|
@ -24,7 +24,7 @@ switch( $_GET['action'] ) {
|
||||||
case "siteoptions":
|
case "siteoptions":
|
||||||
check_admin_referer('siteoptions');
|
check_admin_referer('siteoptions');
|
||||||
if( empty( $_POST ) )
|
if( empty( $_POST ) )
|
||||||
wp_die( __("You probably need to go back to the <a href='wpmu-options.php'>options page</a>") );
|
wp_die( __("You probably need to go back to the <a href='ms-options.php'>options page</a>") );
|
||||||
|
|
||||||
update_site_option( "WPLANG", $_POST['WPLANG'] );
|
update_site_option( "WPLANG", $_POST['WPLANG'] );
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ switch( $_GET['action'] ) {
|
||||||
// Update more options here
|
// Update more options here
|
||||||
do_action( 'update_wpmu_options' );
|
do_action( 'update_wpmu_options' );
|
||||||
|
|
||||||
wp_redirect( add_query_arg( "updated", "true", 'wpmu-options.php' ) );
|
wp_redirect( add_query_arg( "updated", "true", 'ms-options.php' ) );
|
||||||
exit();
|
exit();
|
||||||
break;
|
break;
|
||||||
case "addblog":
|
case "addblog":
|
||||||
|
@ -186,7 +186,7 @@ switch( $_GET['action'] ) {
|
||||||
case "updateblog":
|
case "updateblog":
|
||||||
check_admin_referer('editblog');
|
check_admin_referer('editblog');
|
||||||
if( empty( $_POST ) )
|
if( empty( $_POST ) )
|
||||||
wp_die( __('You probably need to go back to the <a href="wpmu-blogs.php">blogs page</a>') );
|
wp_die( __('You probably need to go back to the <a href="ms-blogs.php">blogs page</a>') );
|
||||||
|
|
||||||
// themes
|
// themes
|
||||||
if( is_array( $_POST[ 'theme' ] ) ) {
|
if( is_array( $_POST[ 'theme' ] ) ) {
|
||||||
|
@ -295,7 +295,7 @@ switch( $_GET['action'] ) {
|
||||||
}
|
}
|
||||||
do_action( 'wpmu_update_blog_options' );
|
do_action( 'wpmu_update_blog_options' );
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
wpmu_admin_do_redirect( "wpmu-blogs.php?action=editblog&updated=true&id=".$id );
|
wpmu_admin_do_redirect( "ms-blogs.php?action=editblog&updated=true&id=".$id );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "deleteblog":
|
case "deleteblog":
|
||||||
|
@ -467,7 +467,7 @@ switch( $_GET['action'] ) {
|
||||||
foreach( $_POST[ 'user' ] as $id )
|
foreach( $_POST[ 'user' ] as $id )
|
||||||
wpmu_delete_user( $id );
|
wpmu_delete_user( $id );
|
||||||
|
|
||||||
wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'all_delete'), 'wpmu-users.php' ) );
|
wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'all_delete'), 'ms-users.php' ) );
|
||||||
} else {
|
} else {
|
||||||
foreach ( (array) $_POST['allusers'] as $key => $val ) {
|
foreach ( (array) $_POST['allusers'] as $key => $val ) {
|
||||||
if( $val == '' || $val == '0' ) {
|
if( $val == '' || $val == '0' ) {
|
||||||
|
@ -533,7 +533,7 @@ switch( $_GET['action'] ) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wpmu_admin_do_redirect( "wpmu-admin.php" );
|
wpmu_admin_do_redirect( "ms-admin.php" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -5,7 +5,7 @@ if ( !is_multisite() )
|
||||||
wp_die( __('Multisite support is not enabled.') );
|
wp_die( __('Multisite support is not enabled.') );
|
||||||
|
|
||||||
$title = __('WordPress MU › Admin › Site Options');
|
$title = __('WordPress MU › Admin › Site Options');
|
||||||
$parent_file = 'wpmu-admin.php';
|
$parent_file = 'ms-admin.php';
|
||||||
|
|
||||||
include('admin-header.php');
|
include('admin-header.php');
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ if ( !is_multisite() )
|
||||||
wp_die( __('Multisite support is not enabled.') );
|
wp_die( __('Multisite support is not enabled.') );
|
||||||
|
|
||||||
$title = __('WordPress MU › Admin › Blogs');
|
$title = __('WordPress MU › Admin › Blogs');
|
||||||
$parent_file = 'wpmu-admin.php';
|
$parent_file = 'ms-admin.php';
|
||||||
|
|
||||||
wp_enqueue_script( 'admin-forms' );
|
wp_enqueue_script( 'admin-forms' );
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ switch( $_GET['action'] ) {
|
||||||
<div class="wrap" style="position:relative;">
|
<div class="wrap" style="position:relative;">
|
||||||
<h2><?php _e('Blogs') ?></h2>
|
<h2><?php _e('Blogs') ?></h2>
|
||||||
|
|
||||||
<form action="wpmu-blogs.php" method="get" id="wpmu-search">
|
<form action="ms-blogs.php" method="get" id="ms-search">
|
||||||
<input type="hidden" name="action" value="blogs" />
|
<input type="hidden" name="action" value="blogs" />
|
||||||
<input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( esc_attr( $s, 1 ) ); ?>" size="17" />
|
<input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( esc_attr( $s, 1 ) ); ?>" size="17" />
|
||||||
<input type="submit" class="button" name="blog_name" value="<?php esc_attr_e('Search blogs by name') ?>" />
|
<input type="submit" class="button" name="blog_name" value="<?php esc_attr_e('Search blogs by name') ?>" />
|
||||||
|
@ -394,7 +394,7 @@ switch( $_GET['action'] ) {
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
|
|
||||||
<?php if( isset($_GET['s']) && !empty($_GET['s']) ) : ?>
|
<?php if( isset($_GET['s']) && !empty($_GET['s']) ) : ?>
|
||||||
<p><a href="wpmu-users.php?action=users&s=<?php echo urlencode( stripslashes( $s ) ) ?>"><?php _e('Search Users:') ?> <strong><?php echo stripslashes( $s ); ?></strong></a></p>
|
<p><a href="ms-users.php?action=users&s=<?php echo urlencode( stripslashes( $s ) ) ?>"><?php _e('Search Users:') ?> <strong><?php echo stripslashes( $s ); ?></strong></a></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -426,7 +426,7 @@ switch( $_GET['action'] ) {
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" class="check-column"></th>
|
<th scope="col" class="check-column"></th>
|
||||||
<?php foreach($posts_columns as $column_id => $column_display_name) {
|
<?php foreach($posts_columns as $column_id => $column_display_name) {
|
||||||
$column_link = "<a href='wpmu-blogs.php?{$sortby_url}&sortby={$column_id}&";
|
$column_link = "<a href='ms-blogs.php?{$sortby_url}&sortby={$column_id}&";
|
||||||
if( $_GET['sortby'] == $column_id ) {
|
if( $_GET['sortby'] == $column_id ) {
|
||||||
$column_link .= $_GET[ 'order' ] == 'DESC' ? 'order=ASC&' : 'order=DESC&';
|
$column_link .= $_GET[ 'order' ] == 'DESC' ? 'order=ASC&' : 'order=DESC&';
|
||||||
}
|
}
|
||||||
|
@ -470,11 +470,11 @@ switch( $_GET['action'] ) {
|
||||||
|
|
||||||
case 'blogname': ?>
|
case 'blogname': ?>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<a href="wpmu-blogs.php?action=editblog&id=<?php echo $blog['blog_id'] ?>" class="edit"><?php echo $blogname; ?></a>
|
<a href="ms-blogs.php?action=editblog&id=<?php echo $blog['blog_id'] ?>" class="edit"><?php echo $blogname; ?></a>
|
||||||
<br/>
|
<br/>
|
||||||
<?php
|
<?php
|
||||||
$controlActions = array();
|
$controlActions = array();
|
||||||
$controlActions[] = '<a href="wpmu-blogs.php?action=editblog&id=' . $blog['blog_id'] . '" class="edit">' . __('Edit') . '</a>';
|
$controlActions[] = '<a href="ms-blogs.php?action=editblog&id=' . $blog['blog_id'] . '" class="edit">' . __('Edit') . '</a>';
|
||||||
$controlActions[] = "<a href='{$protocol}{$blog['domain']}{$blog['path']}wp-admin/' class='edit'>" . __('Backend') . '</a>';
|
$controlActions[] = "<a href='{$protocol}{$blog['domain']}{$blog['path']}wp-admin/' class='edit'>" . __('Backend') . '</a>';
|
||||||
|
|
||||||
if( get_blog_status( $blog['blog_id'], "deleted" ) == '1' )
|
if( get_blog_status( $blog['blog_id'], "deleted" ) == '1' )
|
||||||
|
|
|
@ -7,7 +7,7 @@ if ( !is_multisite() )
|
||||||
require_once( ABSPATH . WPINC . '/http.php' );
|
require_once( ABSPATH . WPINC . '/http.php' );
|
||||||
|
|
||||||
$title = __('WordPress MU › Admin › Upgrade Site');
|
$title = __('WordPress MU › Admin › Upgrade Site');
|
||||||
$parent_file = 'wpmu-admin.php';
|
$parent_file = 'ms-admin.php';
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
|
|
||||||
if ( is_site_admin() == false ) {
|
if ( is_site_admin() == false ) {
|
||||||
|
@ -41,11 +41,11 @@ switch( $_GET['action'] ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "</ul>";
|
echo "</ul>";
|
||||||
?><p><?php _e("If your browser doesn't start loading the next page automatically click this link:"); ?> <a class="button" href="wpmu-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>"><?php _e("Next Blogs"); ?></a></p>
|
?><p><?php _e("If your browser doesn't start loading the next page automatically click this link:"); ?> <a class="button" href="ms-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>"><?php _e("Next Blogs"); ?></a></p>
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
<!--
|
<!--
|
||||||
function nextpage() {
|
function nextpage() {
|
||||||
location.href = "wpmu-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>";
|
location.href = "ms-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>";
|
||||||
}
|
}
|
||||||
setTimeout( "nextpage()", 250 );
|
setTimeout( "nextpage()", 250 );
|
||||||
//-->
|
//-->
|
||||||
|
@ -56,7 +56,7 @@ switch( $_GET['action'] ) {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
?><p><?php _e("You can upgrade all the blogs on your site through this page. It works by calling the upgrade script of each blog automatically. Hit the link below to upgrade."); ?></p>
|
?><p><?php _e("You can upgrade all the blogs on your site through this page. It works by calling the upgrade script of each blog automatically. Hit the link below to upgrade."); ?></p>
|
||||||
<p><a class="button" href="wpmu-upgrade-site.php?action=upgrade"><?php _e("Upgrade Site"); ?></a></p><?php
|
<p><a class="button" href="ms-upgrade-site.php?action=upgrade"><?php _e("Upgrade Site"); ?></a></p><?php
|
||||||
do_action( 'wpmu_upgrade_page' );
|
do_action( 'wpmu_upgrade_page' );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ if ( !is_multisite() )
|
||||||
wp_die( __('Multisite support is not enabled.') );
|
wp_die( __('Multisite support is not enabled.') );
|
||||||
|
|
||||||
$title = __('WordPress MU › Admin › Users');
|
$title = __('WordPress MU › Admin › Users');
|
||||||
$parent_file = 'wpmu-admin.php';
|
$parent_file = 'ms-admin.php';
|
||||||
|
|
||||||
wp_enqueue_script( 'admin-forms' );
|
wp_enqueue_script( 'admin-forms' );
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ if ( $_GET['updated'] == 'true' ) {
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e( $current_site->site_name ); ?> <?php _e("Users"); ?></h2>
|
<h2><?php _e( $current_site->site_name ); ?> <?php _e("Users"); ?></h2>
|
||||||
<form action="wpmu-users.php" method="get" class="search-form">
|
<form action="ms-users.php" method="get" class="search-form">
|
||||||
<p class="search-box">
|
<p class="search-box">
|
||||||
<input type="text" name="s" value="<?php if (isset($_GET['s'])) esc_attr( stripslashes( $s ) ); ?>" class="search-input" id="user-search-input" />
|
<input type="text" name="s" value="<?php if (isset($_GET['s'])) esc_attr( stripslashes( $s ) ); ?>" class="search-input" id="user-search-input" />
|
||||||
<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Search Users') ?>" class="button" />
|
<input type="submit" id="post-query-submit" value="<?php esc_attr_e('Search Users') ?>" class="button" />
|
||||||
|
@ -125,7 +125,7 @@ if ( $_GET['updated'] == 'true' ) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if( isset($_GET['s']) && $_GET['s'] != '' ) : ?>
|
<?php if( isset($_GET['s']) && $_GET['s'] != '' ) : ?>
|
||||||
<p><a href="wpmu-blogs.php?action=blogs&s=<?php echo urlencode( stripslashes( $s ) ); ?>&blog_name=Search+blogs+by+name"><?php _e('Search Blogs for') ?> <strong><?php echo stripslashes( $s ) ?></strong></a></p>
|
<p><a href="ms-blogs.php?action=blogs&s=<?php echo urlencode( stripslashes( $s ) ); ?>&blog_name=Search+blogs+by+name"><?php _e('Search Blogs for') ?> <strong><?php echo stripslashes( $s ) ?></strong></a></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -149,7 +149,7 @@ if ( $_GET['updated'] == 'true' ) {
|
||||||
} elseif( $column_id == 'checkbox') {
|
} elseif( $column_id == 'checkbox') {
|
||||||
echo '<th scope="col" class="check-column"><input type="checkbox" /></th>';
|
echo '<th scope="col" class="check-column"><input type="checkbox" /></th>';
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<th scope="col"><a href="wpmu-users.php?sortby=<?php echo $column_id ?>&<?php if( $_GET['sortby'] == $column_id ) { if( $_GET['order'] == 'DESC' ) { echo "order=ASC&" ; } else { echo "order=DESC&"; } } ?>apage=<?php echo $apage ?>"><?php echo $column_display_name; ?></a></th>
|
<th scope="col"><a href="ms-users.php?sortby=<?php echo $column_id ?>&<?php if( $_GET['sortby'] == $column_id ) { if( $_GET['order'] == 'DESC' ) { echo "order=ASC&" ; } else { echo "order=DESC&"; } } ?>apage=<?php echo $apage ?>"><?php echo $column_display_name; ?></a></th>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -220,11 +220,11 @@ if ( $_GET['updated'] == 'true' ) {
|
||||||
if( is_array( $blogs ) ) {
|
if( is_array( $blogs ) ) {
|
||||||
foreach ( (array) $blogs as $key => $val ) {
|
foreach ( (array) $blogs as $key => $val ) {
|
||||||
$path = ($val->path == '/') ? '' : $val->path;
|
$path = ($val->path == '/') ? '' : $val->path;
|
||||||
echo '<a href="wpmu-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>';
|
echo '<a href="ms-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>';
|
||||||
echo ' <small class="row-actions">';
|
echo ' <small class="row-actions">';
|
||||||
|
|
||||||
// Edit
|
// Edit
|
||||||
echo '<a href="wpmu-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . __('Edit') . '</a> | ';
|
echo '<a href="ms-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . __('Edit') . '</a> | ';
|
||||||
|
|
||||||
// View
|
// View
|
||||||
echo '<a ';
|
echo '<a ';
|
||||||
|
|
|
@ -1354,7 +1354,7 @@ function newblog_notify_siteadmin( $blog_id, $deprecated = '' ) {
|
||||||
if( is_email($email) == false )
|
if( is_email($email) == false )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/wpmu-options.php");
|
$options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/ms-options.php");
|
||||||
|
|
||||||
switch_to_blog( $blog_id );
|
switch_to_blog( $blog_id );
|
||||||
$blogname = get_option( 'blogname' );
|
$blogname = get_option( 'blogname' );
|
||||||
|
@ -1382,7 +1382,7 @@ function newuser_notify_siteadmin( $user_id ) {
|
||||||
return false;
|
return false;
|
||||||
$user = new WP_User($user_id);
|
$user = new WP_User($user_id);
|
||||||
|
|
||||||
$options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/wpmu-options.php");
|
$options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/ms-options.php");
|
||||||
$msg = sprintf(__("New User: %1s
|
$msg = sprintf(__("New User: %1s
|
||||||
Remote IP: %2s
|
Remote IP: %2s
|
||||||
|
|
||||||
|
|
|
@ -375,7 +375,7 @@ if( !$active_signup )
|
||||||
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"
|
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"
|
||||||
|
|
||||||
if( is_site_admin() )
|
if( is_site_admin() )
|
||||||
echo '<div class="mu_alert">' . sprintf( __( "Greetings Site Administrator! You are currently allowing '%s' registrations. To change or disable registration go to your <a href='wp-admin/wpmu-options.php'>Options page</a>." ), $active_signup ) . '</div>';
|
echo '<div class="mu_alert">' . sprintf( __( "Greetings Site Administrator! You are currently allowing '%s' registrations. To change or disable registration go to your <a href='wp-admin/ms-options.php'>Options page</a>." ), $active_signup ) . '</div>';
|
||||||
|
|
||||||
$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
|
$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue