Change references to wpmu-edit.php - See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12620 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eb8636f479
commit
8ab77e04e7
|
@ -143,7 +143,7 @@ function confirm_delete_users( $users ) {
|
||||||
|
|
||||||
echo '<p>' . __( 'Transfer posts before deleting users:' ) . '</p>';
|
echo '<p>' . __( 'Transfer posts before deleting users:' ) . '</p>';
|
||||||
|
|
||||||
echo '<form action="wpmu-edit.php?action=allusers" method="post">';
|
echo '<form action="ms-edit.php?action=allusers" method="post">';
|
||||||
echo '<input type="hidden" name="alluser_transfer_delete" />';
|
echo '<input type="hidden" name="alluser_transfer_delete" />';
|
||||||
wp_nonce_field( 'allusers' );
|
wp_nonce_field( 'allusers' );
|
||||||
foreach ( (array) $_POST['allusers'] as $key => $val ) {
|
foreach ( (array) $_POST['allusers'] as $key => $val ) {
|
||||||
|
|
|
@ -425,7 +425,7 @@ switch( $_GET['action'] ) {
|
||||||
</head>
|
</head>
|
||||||
<body id="error-page">
|
<body id="error-page">
|
||||||
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
|
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
|
||||||
<form action='wpmu-edit.php?action=<?php echo wp_specialchars( $_GET[ 'action2' ] ) ?>' method='post'>
|
<form action='ms-edit.php?action=<?php echo wp_specialchars( $_GET[ 'action2' ] ) ?>' method='post'>
|
||||||
<input type='hidden' name='action' value='<?php echo wp_specialchars( $_GET['action2'] ) ?>' />
|
<input type='hidden' name='action' value='<?php echo wp_specialchars( $_GET['action2'] ) ?>' />
|
||||||
<input type='hidden' name='id' value='<?php echo wp_specialchars( $id ); ?>' />
|
<input type='hidden' name='id' value='<?php echo wp_specialchars( $id ); ?>' />
|
||||||
<input type='hidden' name='ref' value='<?php echo $referrer; ?>' />
|
<input type='hidden' name='ref' value='<?php echo $referrer; ?>' />
|
||||||
|
|
|
@ -21,7 +21,7 @@ if (isset($_GET['updated'])) {
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Site Options') ?></h2>
|
<h2><?php _e('Site Options') ?></h2>
|
||||||
<form method="post" action="wpmu-edit.php?action=siteoptions">
|
<form method="post" action="ms-edit.php?action=siteoptions">
|
||||||
<?php wp_nonce_field( "siteoptions" ); ?>
|
<?php wp_nonce_field( "siteoptions" ); ?>
|
||||||
<h3><?php _e('Operational Settings <em>(These settings cannot be modified by blog owners)</em>') ?></h3>
|
<h3><?php _e('Operational Settings <em>(These settings cannot be modified by blog owners)</em>') ?></h3>
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
|
|
|
@ -79,7 +79,7 @@ switch( $_GET['action'] ) {
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'>http://<?php echo $details['domain'].$details['path']; ?></a></h2>
|
<h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'>http://<?php echo $details['domain'].$details['path']; ?></a></h2>
|
||||||
<form method="post" action="wpmu-edit.php?action=updateblog">
|
<form method="post" action="ms-edit.php?action=updateblog">
|
||||||
<?php wp_nonce_field('editblog'); ?>
|
<?php wp_nonce_field('editblog'); ?>
|
||||||
<input type="hidden" name="id" value="<?php echo esc_attr($id) ?>" />
|
<input type="hidden" name="id" value="<?php echo esc_attr($id) ?>" />
|
||||||
<div class='metabox-holder' style='width:49%;float:left;'>
|
<div class='metabox-holder' style='width:49%;float:left;'>
|
||||||
|
@ -377,7 +377,7 @@ switch( $_GET['action'] ) {
|
||||||
<input type="submit" class="button" name="blog_ip" value="<?php esc_attr_e('by IP address') ?>" />
|
<input type="submit" class="button" name="blog_ip" value="<?php esc_attr_e('by IP address') ?>" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form id="form-blog-list" action="wpmu-edit.php?action=allblogs" method="post">
|
<form id="form-blog-list" action="ms-edit.php?action=allblogs" method="post">
|
||||||
|
|
||||||
<div class="tablenav">
|
<div class="tablenav">
|
||||||
<?php if ( $blog_navigation ) echo "<div class='tablenav-pages'>$blog_navigation</div>"; ?>
|
<?php if ( $blog_navigation ) echo "<div class='tablenav-pages'>$blog_navigation</div>"; ?>
|
||||||
|
@ -478,21 +478,21 @@ switch( $_GET['action'] ) {
|
||||||
$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' )
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=activateblog&ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to activate the blog %s" ), $blogname ) ) . '">' . __('Activate') . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=activateblog&ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to activate the blog %s" ), $blogname ) ) . '">' . __('Activate') . '</a>';
|
||||||
else
|
else
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=deactivateblog&ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to deactivate the blog %s" ), $blogname ) ) . '">' . __('Deactivate') . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=deactivateblog&ref=' . urlencode( $_SERVER['REQUEST_URI'] ) . '&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to deactivate the blog %s" ), $blogname ) ) . '">' . __('Deactivate') . '</a>';
|
||||||
|
|
||||||
if( get_blog_status( $blog['blog_id'], "archived" ) == '1' )
|
if( get_blog_status( $blog['blog_id'], "archived" ) == '1' )
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to unarchive the blog %s" ), $blogname ) ) . '">' . __('Unarchive') . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=unarchiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to unarchive the blog %s" ), $blogname ) ) . '">' . __('Unarchive') . '</a>';
|
||||||
else
|
else
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=archiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to archive the blog %s" ), $blogname ) ) . '">' . __('Archive') . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=archiveblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to archive the blog %s" ), $blogname ) ) . '">' . __('Archive') . '</a>';
|
||||||
|
|
||||||
if( get_blog_status( $blog['blog_id'], "spam" ) == '1' )
|
if( get_blog_status( $blog['blog_id'], "spam" ) == '1' )
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=unspamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to unspam the blog %s" ), $blogname ) ) . '">' . __('Not Spam') . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=unspamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to unspam the blog %s" ), $blogname ) ) . '">' . __('Not Spam') . '</a>';
|
||||||
else
|
else
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=spamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to mark the blog %s as spam" ), $blogname ) ) . '">' . __("Spam") . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=spamblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to mark the blog %s as spam" ), $blogname ) ) . '">' . __("Spam") . '</a>';
|
||||||
|
|
||||||
$controlActions[] = '<a class="delete" href="wpmu-edit.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to delete the blog %s" ), $blogname ) ) . '">' . __("Delete") . '</a>';
|
$controlActions[] = '<a class="delete" href="ms-edit.php?action=confirm&action2=deleteblog&id=' . $blog['blog_id'] . '&msg=' . urlencode( sprintf( __( "You are about to delete the blog %s" ), $blogname ) ) . '">' . __("Delete") . '</a>';
|
||||||
|
|
||||||
$controlActions[] = "<a href='http://{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>';
|
$controlActions[] = "<a href='http://{$blog['domain']}{$blog['path']}' rel='permalink'>" . __('Visit') . '</a>';
|
||||||
?>
|
?>
|
||||||
|
@ -578,7 +578,7 @@ switch( $_GET['action'] ) {
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<a name="form-add-blog"></a>
|
<a name="form-add-blog"></a>
|
||||||
<h2><?php _e('Add Blog') ?></h2>
|
<h2><?php _e('Add Blog') ?></h2>
|
||||||
<form method="post" action="wpmu-edit.php?action=addblog">
|
<form method="post" action="ms-edit.php?action=addblog">
|
||||||
<?php wp_nonce_field('add-blog') ?>
|
<?php wp_nonce_field('add-blog') ?>
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr class="form-field form-required">
|
<tr class="form-field form-required">
|
||||||
|
|
|
@ -111,7 +111,7 @@ if ( $_GET['updated'] == 'true' ) {
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="form-user-list" action='wpmu-edit.php?action=allusers' method='post'>
|
<form id="form-user-list" action='ms-edit.php?action=allusers' method='post'>
|
||||||
<div class="tablenav">
|
<div class="tablenav">
|
||||||
<?php if ( $user_navigation ) echo "<div class='tablenav-pages'>$user_navigation</div>"; ?>
|
<?php if ( $user_navigation ) echo "<div class='tablenav-pages'>$user_navigation</div>"; ?>
|
||||||
|
|
||||||
|
@ -183,8 +183,8 @@ if ( $_GET['updated'] == 'true' ) {
|
||||||
case 'login':
|
case 'login':
|
||||||
$avatar = get_avatar( $user['user_email'], 32 );
|
$avatar = get_avatar( $user['user_email'], 32 );
|
||||||
$edit = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=".$user['ID'] ) );
|
$edit = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), "user-edit.php?user_id=".$user['ID'] ) );
|
||||||
// @todo Make delete link work like delete button with transfering users (in wpmu-edit.php)
|
// @todo Make delete link work like delete button with transfering users (in ms-edit.php)
|
||||||
//$delete = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), wp_nonce_url( 'wpmu-edit.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user['ID'] ) );
|
//$delete = clean_url( add_query_arg( 'wp_http_referer', urlencode( clean_url( stripslashes( $_SERVER['REQUEST_URI'] ) ) ), wp_nonce_url( 'ms-edit.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user['ID'] ) );
|
||||||
?>
|
?>
|
||||||
<td class="username column-username">
|
<td class="username column-username">
|
||||||
<?php echo $avatar; ?><strong><a href="<?php echo $edit; ?>" class="edit"><?php echo stripslashes($user['user_login']); ?></a></strong>
|
<?php echo $avatar; ?><strong><a href="<?php echo $edit; ?>" class="edit"><?php echo stripslashes($user['user_login']); ?></a></strong>
|
||||||
|
@ -280,7 +280,7 @@ if( apply_filters('show_adduser_fields', true) ) :
|
||||||
?>
|
?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2><?php _e('Add user') ?></h2>
|
<h2><?php _e('Add user') ?></h2>
|
||||||
<form action="wpmu-edit.php?action=adduser" method="post">
|
<form action="ms-edit.php?action=adduser" method="post">
|
||||||
<table class="form-table">
|
<table class="form-table">
|
||||||
<tr class="form-field form-required">
|
<tr class="form-field form-required">
|
||||||
<th scope='row'><?php _e('Username') ?></th>
|
<th scope='row'><?php _e('Username') ?></th>
|
||||||
|
|
Loading…
Reference in New Issue