Changeset 12622
- Timestamp:
- 01/07/2010 12:30:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r12620 r12622 732 732 printf("<div id='update-nag'>" . __("Hi %s! You're logged in as a site administrator.") . "</div>", $current_user->user_login); 733 733 if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) { 734 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>";734 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>"; 735 735 } 736 736 } … … 838 838 */ 839 839 function is_wpmu_sitewide_plugin( $file ) { 840 /* Open the plugin file for reading to check if this is a wpmu-plugin. */840 /* Open the plugin file for reading to check if this is a ms-plugin. */ 841 841 $fp = @fopen( WP_PLUGIN_DIR . '/' . $file, 'r' ); 842 842 … … 1093 1093 if ( strpos( $_SERVER['PHP_SELF'], 'user-new.php' ) && !get_site_option( 'add_new_users' ) ) { 1094 1094 if ( is_site_admin() ) { 1095 $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>';1095 $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>'; 1096 1096 } else { 1097 1097 wp_die( __('Page disabled by the administrator') ); … … 1254 1254 $mu_media_buttons = get_site_option( 'mu_media_buttons', array() ); 1255 1255 if ( !$mu_media_buttons[ 'image' ] && current_theme_supports( 'post-thumbnails' ) ) { 1256 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>";1256 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>"; 1257 1257 } 1258 1258 } -
trunk/wp-admin/ms-admin.php
r12610 r12622 6 6 7 7 $title = __('WordPress MU › Admin'); 8 $parent_file = ' wpmu-admin.php';8 $parent_file = 'ms-admin.php'; 9 9 10 10 function index_css() { … … 34 34 35 35 <ul class="subsubsub"> 36 <li><a href=" wpmu-blogs.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li>37 <li><a href=" wpmu-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li>36 <li><a href="ms-blogs.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li> 37 <li><a href="ms-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li> 38 38 </ul> 39 39 <br clear='all' /> … … 42 42 <?php do_action('wpmuadminresult', ''); ?> 43 43 44 <form name="searchform" action=" wpmu-users.php" method="get">44 <form name="searchform" action="ms-users.php" method="get"> 45 45 <p> 46 46 <input type="hidden" name="action" value="users" /> … … 50 50 </form> 51 51 52 <form name="searchform" action=" wpmu-blogs.php" method="get">52 <form name="searchform" action="ms-blogs.php" method="get"> 53 53 <p> 54 54 <input type="hidden" name="action" value="blogs" /> -
trunk/wp-admin/ms-edit.php
r12620 r12622 25 25 check_admin_referer('siteoptions'); 26 26 if( empty( $_POST ) ) 27 wp_die( __("You probably need to go back to the <a href=' wpmu-options.php'>options page</a>") );27 wp_die( __("You probably need to go back to the <a href='ms-options.php'>options page</a>") ); 28 28 29 29 update_site_option( "WPLANG", $_POST['WPLANG'] ); … … 128 128 do_action( 'update_wpmu_options' ); 129 129 130 wp_redirect( add_query_arg( "updated", "true", ' wpmu-options.php' ) );130 wp_redirect( add_query_arg( "updated", "true", 'ms-options.php' ) ); 131 131 exit(); 132 132 break; … … 187 187 check_admin_referer('editblog'); 188 188 if( empty( $_POST ) ) 189 wp_die( __('You probably need to go back to the <a href=" wpmu-blogs.php">blogs page</a>') );189 wp_die( __('You probably need to go back to the <a href="ms-blogs.php">blogs page</a>') ); 190 190 191 191 // themes … … 296 296 do_action( 'wpmu_update_blog_options' ); 297 297 restore_current_blog(); 298 wpmu_admin_do_redirect( " wpmu-blogs.php?action=editblog&updated=true&id=".$id );298 wpmu_admin_do_redirect( "ms-blogs.php?action=editblog&updated=true&id=".$id ); 299 299 break; 300 300 … … 468 468 wpmu_delete_user( $id ); 469 469 470 wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'all_delete'), ' wpmu-users.php' ) );470 wp_redirect( add_query_arg( array('updated' => 'true', 'action' => 'all_delete'), 'ms-users.php' ) ); 471 471 } else { 472 472 foreach ( (array) $_POST['allusers'] as $key => $val ) { … … 534 534 535 535 default: 536 wpmu_admin_do_redirect( " wpmu-admin.php" );536 wpmu_admin_do_redirect( "ms-admin.php" ); 537 537 break; 538 538 } -
trunk/wp-admin/ms-options.php
r12620 r12622 6 6 7 7 $title = __('WordPress MU › Admin › Site Options'); 8 $parent_file = ' wpmu-admin.php';8 $parent_file = 'ms-admin.php'; 9 9 10 10 include('admin-header.php'); -
trunk/wp-admin/ms-sites.php
r12620 r12622 6 6 7 7 $title = __('WordPress MU › Admin › Blogs'); 8 $parent_file = ' wpmu-admin.php';8 $parent_file = 'ms-admin.php'; 9 9 10 10 wp_enqueue_script( 'admin-forms' ); … … 370 370 <h2><?php _e('Blogs') ?></h2> 371 371 372 <form action=" wpmu-blogs.php" method="get" id="wpmu-search">372 <form action="ms-blogs.php" method="get" id="ms-search"> 373 373 <input type="hidden" name="action" value="blogs" /> 374 374 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( esc_attr( $s, 1 ) ); ?>" size="17" /> … … 395 395 396 396 <?php if( isset($_GET['s']) && !empty($_GET['s']) ) : ?> 397 <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>397 <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> 398 398 <?php endif; ?> 399 399 … … 427 427 <th scope="col" class="check-column"></th> 428 428 <?php foreach($posts_columns as $column_id => $column_display_name) { 429 $column_link = "<a href=' wpmu-blogs.php?{$sortby_url}&sortby={$column_id}&";429 $column_link = "<a href='ms-blogs.php?{$sortby_url}&sortby={$column_id}&"; 430 430 if( $_GET['sortby'] == $column_id ) { 431 431 $column_link .= $_GET[ 'order' ] == 'DESC' ? 'order=ASC&' : 'order=DESC&'; … … 471 471 case 'blogname': ?> 472 472 <td valign="top"> 473 <a href=" wpmu-blogs.php?action=editblog&id=<?php echo $blog['blog_id'] ?>" class="edit"><?php echo $blogname; ?></a>473 <a href="ms-blogs.php?action=editblog&id=<?php echo $blog['blog_id'] ?>" class="edit"><?php echo $blogname; ?></a> 474 474 <br/> 475 475 <?php 476 476 $controlActions = array(); 477 $controlActions[] = '<a href=" wpmu-blogs.php?action=editblog&id=' . $blog['blog_id'] . '" class="edit">' . __('Edit') . '</a>';477 $controlActions[] = '<a href="ms-blogs.php?action=editblog&id=' . $blog['blog_id'] . '" class="edit">' . __('Edit') . '</a>'; 478 478 $controlActions[] = "<a href='{$protocol}{$blog['domain']}{$blog['path']}wp-admin/' class='edit'>" . __('Backend') . '</a>'; 479 479 -
trunk/wp-admin/ms-upgrade-site.php
r12610 r12622 8 8 9 9 $title = __('WordPress MU › Admin › Upgrade Site'); 10 $parent_file = ' wpmu-admin.php';10 $parent_file = 'ms-admin.php'; 11 11 require_once('admin-header.php'); 12 12 … … 42 42 } 43 43 echo "</ul>"; 44 ?><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>44 ?><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> 45 45 <script type='text/javascript'> 46 46 <!-- 47 47 function nextpage() { 48 location.href = " wpmu-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>";48 location.href = "ms-upgrade-site.php?action=upgrade&n=<?php echo ($n + 5) ?>"; 49 49 } 50 50 setTimeout( "nextpage()", 250 ); … … 57 57 default: 58 58 ?><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> 59 <p><a class="button" href=" wpmu-upgrade-site.php?action=upgrade"><?php _e("Upgrade Site"); ?></a></p><?php59 <p><a class="button" href="ms-upgrade-site.php?action=upgrade"><?php _e("Upgrade Site"); ?></a></p><?php 60 60 do_action( 'wpmu_upgrade_page' ); 61 61 break; -
trunk/wp-admin/ms-users.php
r12621 r12622 6 6 7 7 $title = __('WordPress MU › Admin › Users'); 8 $parent_file = ' wpmu-admin.php';8 $parent_file = 'ms-admin.php'; 9 9 10 10 wp_enqueue_script( 'admin-forms' ); … … 104 104 <div class="wrap"> 105 105 <h2><?php _e( $current_site->site_name ); ?> <?php _e("Users"); ?></h2> 106 <form action=" wpmu-users.php" method="get" class="search-form">106 <form action="ms-users.php" method="get" class="search-form"> 107 107 <p class="search-box"> 108 108 <input type="text" name="s" value="<?php if (isset($_GET['s'])) esc_attr( stripslashes( $s ) ); ?>" class="search-input" id="user-search-input" /> … … 126 126 127 127 <?php if( isset($_GET['s']) && $_GET['s'] != '' ) : ?> 128 <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>128 <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> 129 129 <?php endif; ?> 130 130 … … 150 150 echo '<th scope="col" class="check-column"><input type="checkbox" /></th>'; 151 151 } else { ?> 152 <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>152 <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> 153 153 <?php } ?> 154 154 <?php } ?> … … 221 221 foreach ( (array) $blogs as $key => $val ) { 222 222 $path = ($val->path == '/') ? '' : $val->path; 223 echo '<a href=" wpmu-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>';223 echo '<a href="ms-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>'; 224 224 echo ' <small class="row-actions">'; 225 225 226 226 // Edit 227 echo '<a href=" wpmu-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . __('Edit') . '</a> | ';227 echo '<a href="ms-blogs.php?action=editblog&id=' . $val->userblog_id . '">' . __('Edit') . '</a> | '; 228 228 229 229 // View -
trunk/wp-includes/ms-functions.php
r12611 r12622 1355 1355 return false; 1356 1356 1357 $options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/ wpmu-options.php");1357 $options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/ms-options.php"); 1358 1358 1359 1359 switch_to_blog( $blog_id ); … … 1383 1383 $user = new WP_User($user_id); 1384 1384 1385 $options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/ wpmu-options.php");1385 $options_site_url = clean_url("http://{$current_site->domain}{$current_site->path}wp-admin/ms-options.php"); 1386 1386 $msg = sprintf(__("New User: %1s 1387 1387 Remote IP: %2s -
trunk/wp-signup.php
r12606 r12622 376 376 377 377 if( is_site_admin() ) 378 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>';378 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>'; 379 379 380 380 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
Note: See TracChangeset
for help on using the changeset viewer.