Make WordPress Core


Ignore:
Timestamp:
10/07/2010 07:34:18 PM (14 years ago)
Author:
ryan
Message:

First pass of user admin. Network admin and screen cleanups. see #14696

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/settings.php

    r15481 r15746  
    4444
    4545<div class="wrap">
    46     <?php screen_icon(); ?>
     46    <?php screen_icon('options-general'); ?>
    4747    <h2><?php _e( 'Network Options' ) ?></h2>
    4848    <form method="post" action="edit.php?action=siteoptions">
     
    6666                    <?php printf( __( 'Registration and support emails will come from this address. An address such as <code>support@%s</code> is recommended.' ), $current_site->domain ); ?>
    6767                </td>
    68             </tr>
    69         </table>
    70         <h3><?php _e( 'Dashboard Settings' ); ?></h3>
    71         <table class="form-table">
    72             <tr valign="top">
    73                 <th scope="row"><label for="dashboard_blog"><?php _e( 'Dashboard Site' ) ?></label></th>
    74                 <td>
    75                     <?php
    76                     if ( $dashboard_blog = get_site_option( 'dashboard_blog' ) ) {
    77                         $details = get_blog_details( $dashboard_blog );
    78                         $blogname = untrailingslashit( sanitize_user( str_replace( '.', '', str_replace( $current_site->domain . $current_site->path, '', $details->domain . $details->path ) ) ) );
    79                     } else {
    80                         $blogname = '';
    81                     }?>
    82                     <input name="dashboard_blog_orig" type="hidden" id="dashboard_blog_orig" value="<?php echo esc_attr( $blogname ); ?>" />
    83                     <input name="dashboard_blog" type="text" id="dashboard_blog" value="<?php echo esc_attr( $blogname ); ?>" class="regular-text" />
    84                     <br />
    85                     <?php _e( 'Site path (&#8220;dashboard&#8221;, &#8220;control&#8221;, &#8220;manager&#8221;, etc.) or blog ID.<br />New users are added to this site as the user role defined below if they don&#8217;t have a site. Leave blank for the main site. Users with the Subscriber role on the old site will be moved to the new site if changed. The new site will be created if it does not exist.' ); ?>
    86                 </td>
    87             </tr>
    88             <tr valign="top">
    89                 <th scope="row"><label for="default_user_role"><?php _e( 'Dashboard User Default Role' ) ?></label></th>
    90                 <td>
    91                     <select name="default_user_role" id="default_user_role"><?php
    92                     wp_dropdown_roles( get_site_option( 'default_user_role', 'subscriber' ) );
    93                     ?>
    94                     </select>
    95                     <br />
    96                     <?php _e( 'The default role for new users on the Dashboard site. &#8220;Subscriber&#8221; or &#8220;Contributor&#8221; roles are recommended.' ); ?>
    97                 </td>
    98             </tr>
    99             <tr valign="top">
    100                 <th scope="row"><label for="admin_notice_feed"><?php _e( 'Admin Notice Feed' ) ?></label></th>
    101                 <td><input name="admin_notice_feed" class="large-text" type="text" id="admin_notice_feed" value="<?php echo esc_attr( get_site_option( 'admin_notice_feed' ) ) ?>" size="80" /><br />
    102                 <?php _e( 'Display the latest post from this RSS or Atom feed on all site dashboards. Leave blank to disable.' ); ?><br />
    103 
    104                 <?php if ( get_site_option( 'admin_notice_feed' ) != get_home_url( $current_site->id, 'feed/' ) )
    105                     echo __( 'A good one to use would be the feed from your main site: ' ) . esc_url( get_home_url( $current_site->id, 'feed/' ) ) ?></td>
    10668            </tr>
    10769        </table>
Note: See TracChangeset for help on using the changeset viewer.