Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-writing.php

    r15132 r17056  
    2020    '<p>' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' .
    2121    '<p><strong>' . __('For more information:') . '</strong></p>' .
    22     '<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_SubPanel" target="_blank">Writing Settings Documentation</a>') . '</p>' .
     22    '<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_SubPanel" target="_blank">Documentation on Writing Settings</a>') . '</p>' .
    2323    '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    2424);
     
    5757</td>
    5858</tr>
     59<?php
     60if ( current_theme_supports( 'post-formats' ) ) :
     61    $post_formats = get_theme_support( 'post-formats' );
     62    if ( is_array( $post_formats[0] ) ) :
     63?>
     64<tr valign="top">
     65<th scope="row"><label for="default_post_format"><?php _e('Default Post Format') ?></label></th>
     66<td>
     67    <select name="default_post_format" id="default_post_format">
     68        <option value="0"><?php _e('Standard'); ?></option>
     69<?php foreach ( $post_formats[0] as $format ): ?>
     70        <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
     71<?php endforeach; ?>
     72    </select></label>
     73</td>
     74</tr>
     75<?php endif; endif; ?>
    5976<tr valign="top">
    6077<th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>
     
    138155<p><label for="ping_sites"><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service <abbr title="Universal Resource Locator">URL</abbr>s with line breaks.') ?></label></p>
    139156
    140 <textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php form_option('ping_sites'); ?></textarea>
     157<textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea>
    141158
    142159<?php else : ?>
     
    149166<?php do_settings_sections('writing'); ?>
    150167
    151 <p class="submit">
    152     <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
    153 </p>
     168<?php submit_button(); ?>
    154169</form>
    155170</div>
Note: See TracChangeset for help on using the changeset viewer.