WordPress.org

Make WordPress Core

Ticket #22365: 22365.2.diff

File 22365.2.diff, 2.9 KB (added by DrewAPicture, 18 months ago)

filter checks

  • wp-admin/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 if ( is_multisite() ) { 
    32         $post_email_help = '<p>' . __('Due to security issues, you cannot use Post By Email on Multisite Installs.') . '</p>'; 
    33 } else { 
    34         $post_email_help = '<p>' . __('Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret.') . '</p>'; 
     31if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { 
     32        get_current_screen()->add_help_tab( array( 
     33                'id'      => 'options-postemail', 
     34                'title'   => __( 'Post Via Email' ), 
     35                'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret.' ) . '</p>', 
     36        ) ); 
    3537} 
    3638 
    37 get_current_screen()->add_help_tab( array( 
    38         'id'      => 'options-postemail', 
    39         'title'   => __('Post Via Email'), 
    40         'content' => $post_email_help, 
    41 ) ); 
     39if ( apply_filters( 'enable_update_services_configuration', true ) ) { 
     40        get_current_screen()->add_help_tab( array( 
     41                'id'      => 'options-services', 
     42                'title'   => __( 'Update Services' ), 
     43                'content' => $update_services_help, 
     44        ) ); 
     45} 
    4246 
    43 get_current_screen()->add_help_tab( array( 
    44         'id'      => 'options-remote', 
    45         'title'   => __('Remote Publishing'), 
    46         'content' => '<p>' . __('Remote Publishing allows you to use an external editor (like the iOS or Android app) to write your posts.') . '</p>', 
    47 ) ); 
    48  
    49 get_current_screen()->add_help_tab( array( 
    50         'id'      => 'options-services', 
    51         'title'   => __('Update Services'), 
    52         'content' => '<p>' . __('If desired, WordPress will automatically alert various services of your new posts.') . '</p>', 
    53 ) ); 
    54  
    5547get_current_screen()->set_help_sidebar( 
    5648        '<p><strong>' . __('For more information:') . '</strong></p>' . 
    5749        '<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_Screen" target="_blank">Documentation on Writing Settings</a>') . '</p>' .