WordPress.org

Make WordPress Core

Changeset 22380


Ignore:
Timestamp:
11/05/2012 09:19:15 PM (7 years ago)
Author:
ryan
Message:

Remove 'Remote Publishing' contextual help section.
Don't show the 'Post Via Email' contextual help section if enable_post_by_email_configuration is not enabled.
Don't show the 'Update Services' contextual help section if enable_update_services_configuration is not enabled.

Props DrewAPicture
fixes #22365

File:
1 edited

Legend:

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

    r22006 r22380  
    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 ) );
    42 
    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 ) );
     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}
    5446
    5547get_current_screen()->set_help_sidebar(
Note: See TracChangeset for help on using the changeset viewer.