Make WordPress Core

Changeset 8905


Ignore:
Timestamp:
09/16/2008 10:37:49 PM (17 years ago)
Author:
ryan
Message:

Move media settings to options-media.php. see #7552

Location:
trunk/wp-admin
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r8870 r8905  
    6565    $submenu['options-general.php'][20] = array(__('Reading'), 'manage_options', 'options-reading.php');
    6666    $submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php');
    67     $submenu['options-general.php'][30] = array(__('Privacy'), 'manage_options', 'options-privacy.php');
    68     $submenu['options-general.php'][35] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
    69     $submenu['options-general.php'][40] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php');
     67    $submenu['options-general.php'][30] = array(__('Media'), 'manage_options', 'options-media.php');
     68    $submenu['options-general.php'][35] = array(__('Privacy'), 'manage_options', 'options-privacy.php');
     69    $submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
     70    $submenu['options-general.php'][45] = array(__('Miscellaneous'), 'manage_options', 'options-misc.php');
    7071
    7172$menu[25] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
  • trunk/wp-admin/options-misc.php

    r8855 r8905  
    4949</table>
    5050
    51 <h3><?php _e('Image sizes') ?></h3>
    52 <p><?php _e('The sizes listed below determine the maximum dimensions to use when inserting an image into the body of a post.'); ?></p>
    53 
    54 <table class="form-table">
    55 <tr valign="top">
    56 <th scope="row"><?php _e('Thumbnail size') ?></th>
    57 <td><fieldset><legend class="hidden"><?php _e('Thumbnail size') ?></legend>
    58 <label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    59 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" size="6" />
    60 <label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    61 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" size="6" /><br />
    62 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    63 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    64 </fieldset></td>
    65 </tr>
    66 <tr valign="top">
    67 <th scope="row"><?php _e('Medium size') ?></th>
    68 <td><fieldset><legend class="hidden"><?php _e('Medium size') ?></legend>
    69 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
    70 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
    71 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
    72 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
    73 </fieldset></td>
    74 </tr>
    75 <tr valign="top">
    76 <th scope="row"><?php _e('Large size') ?></th>
    77 <td><fieldset><legend class="hidden"><?php _e('Large size') ?></legend>
    78 <label for="large_size_w"><?php _e('Max Width'); ?></label>
    79 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" size="6" />
    80 <label for="large_size_h"><?php _e('Max Height'); ?></label>
    81 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" size="6" />
    82 </fieldset></td>
    83 </tr>
    84 
    85 <tr valign="top">
    86 <th scope="row"><?php _e('Default image size') ?></th>
    87 <td><fieldset><legend class="hidden"><?php _e('Default image size') ?></legend>
    88 <?php
    89     $size_names = array('' => 'Auto', 'thumbnail' => 'Thumbnail', 'medium' => 'Medium', 'large' => 'Large', 'full' => 'Full size');
    90     foreach ($size_names as $size => $name) { ?>
    91         <input type="radio" name="image_default_size" id="image_default_size_<?php echo $size; ?>" value="<?php echo $size; ?>"<?php checked(get_option('image_default_size'), $size); ?> />           
    92         <label for="image_default_size_<?php echo $size; ?>"><?php _e($name); ?></label>
    93     <?php
    94     }
    95 
    96 ?>
    97 </fieldset></td>
    98 </tr>
    99 
    100 <tr valign="top">
    101 <th scope="row"><?php _e('Default image alignment') ?></th>
    102 <td><fieldset><legend class="hidden"><?php _e('Default image alignment') ?></legend>
    103 <?php
    104     $alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right');
    105 
    106     $default_align = get_option('image_default_align');
    107     if ( empty($default_align) )
    108         $default_align = 'none';
    109 
    110     foreach ($alignments as $align => $name) { ?>
    111         <input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php checked($default_align, $align); ?> />
    112         <label for="image_default_align_<?php echo $align; ?>"><?php _e($name); ?></label>
    113     <?php
    114     }
    115 
    116 ?>
    117 </fieldset></td>
    118 </tr>
    119 
    120 <tr valign="top">
    121 <th scope="row"><?php _e('Default image links') ?></th>
    122 <td><fieldset><legend class="hidden"><?php _e('Default image links') ?></legend>
    123 <?php
    124     $link_types = array('' => 'None', 'post' => 'Post URL', 'file' => 'File');
    125     foreach ($link_types as $type => $name) { ?>
    126         <input type="radio" name="image_default_link_type" id="image_default_link_type_<?php echo $type; ?>" value="<?php echo $type; ?>"<?php checked(get_option('image_default_link_type'), $type); ?> />         
    127         <label for="image_default_link_type_<?php echo $type; ?>"><?php _e($name); ?></label>
    128     <?php
    129     }
    130 
    131 ?>
    132 </fieldset></td>
    133 </tr>
    134 <?php do_settings_fields('misc', 'images'); ?>
    135 </table>
    136 
    137 
    138 
    13951<table class="form-table">
    14052
  • trunk/wp-admin/options.php

    r8892 r8905  
    2323
    2424$whitelist_options = array(
    25     'general' => array('blogname', 'blogdescription', 'admin_email', 'users_can_register', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'comment_registration', 'default_role'),
     25    'general' => array('blogname', 'blogdescription', 'admin_email', 'users_can_register', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'comment_registration', 'default_role' ),
    2626    'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'close_comments_for_old_posts', 'close_comments_days_old' ),
    2727    'misc' => array( 'hack_file', 'use_linksupdate', 'uploads_use_yearmonth_folders', 'upload_path', 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', 'large_size_w', 'large_size_h' ),
     28    'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type' ),
    2829    'privacy' => array( 'blog_public' ),
    2930    'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'blog_charset', 'gzipcompression', 'show_on_front', 'page_on_front', 'page_for_posts' ),
Note: See TracChangeset for help on using the changeset viewer.