Make WordPress Core

Ticket #25229: options-writing.patch

File options-writing.patch, 2.4 KB (added by siobhyb, 11 years ago)

First pass at wp-admin/options-writing.php. 3 of the 4 hooks here are duplicates.

  • options-writing.php

     
    2828        'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you&#8217;ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
    2929) );
    3030
     31// duplicate_hook
    3132if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    3233        get_current_screen()->add_help_tab( array(
    3334                'id'      => 'options-postemail',
     
    3637        ) );
    3738}
    3839
     40/**
     41* Toggle site update services configuration functionality.
     42*
     43* @since 3.0.0
     44*
     45* @param bool True or false, based on whether update services configuration is enabled or not.
     46*/
    3947if ( apply_filters( 'enable_update_services_configuration', true ) ) {
    4048        get_current_screen()->add_help_tab( array(
    4149                'id'      => 'options-services',
     
    122130        <p><textarea rows="5" cols="120" readonly="readonly"><?php echo htmlspecialchars( get_shortcut_link() ); ?></textarea></p>
    123131</div>
    124132
    125 <?php if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { ?>
     133<?php
     134// duplicate_hook
     135if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
     136?>
    126137<h3 class="title"><?php _e('Post via e-mail') ?></h3>
    127138<p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
    128139
     
    156167</table>
    157168<?php } ?>
    158169
    159 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?>
     170<?php
     171// duplicate_hook
     172if ( apply_filters( 'enable_update_services_configuration', true ) ) {
     173?>
    160174<h3 class="title"><?php _e('Update Services') ?></h3>
    161175
    162176<?php if ( 1 == get_option('blog_public') ) : ?>