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


git-svn-id: http://core.svn.wordpress.org/trunk@22380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-11-05 21:19:15 +00:00
parent 6757005b59
commit e9164acb3c
1 changed files with 13 additions and 21 deletions

View File

@ -28,29 +28,21 @@ get_current_screen()->add_help_tab( array(
'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>',
) );
if ( is_multisite() ) {
$post_email_help = '<p>' . __('Due to security issues, you cannot use Post By Email on Multisite Installs.') . '</p>';
} else {
$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>';
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
get_current_screen()->add_help_tab( array(
'id' => 'options-postemail',
'title' => __( 'Post Via Email' ),
'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>',
) );
}
get_current_screen()->add_help_tab( array(
'id' => 'options-postemail',
'title' => __('Post Via Email'),
'content' => $post_email_help,
) );
get_current_screen()->add_help_tab( array(
'id' => 'options-remote',
'title' => __('Remote Publishing'),
'content' => '<p>' . __('Remote Publishing allows you to use an external editor (like the iOS or Android app) to write your posts.') . '</p>',
) );
get_current_screen()->add_help_tab( array(
if ( apply_filters( 'enable_update_services_configuration', true ) ) {
get_current_screen()->add_help_tab( array(
'id' => 'options-services',
'title' => __('Update Services'),
'content' => '<p>' . __('If desired, WordPress will automatically alert various services of your new posts.') . '</p>',
) );
'title' => __( 'Update Services' ),
'content' => $update_services_help,
) );
}
get_current_screen()->set_help_sidebar(
'<p><strong>' . __('For more information:') . '</strong></p>' .