Don't display the Help tab reference in Page Attributes meta box if Help tab was removed.

props bananastalktome.
fixes #31164.
Built from https://develop.svn.wordpress.org/trunk@31303


git-svn-id: http://core.svn.wordpress.org/trunk@31284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-01-30 15:34:24 +00:00
parent eddf93639b
commit b05014805f
2 changed files with 4 additions and 2 deletions

View File

@ -763,8 +763,10 @@ $default_title = apply_filters( 'default_page_template_title', __( 'Default Tem
} ?>
<p><strong><?php _e('Order') ?></strong></p>
<p><label class="screen-reader-text" for="menu_order"><?php _e('Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p>
<p><?php if ( 'page' == $post->post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p>
<?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) { ?>
<p><?php _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p>
<?php
}
}
// -- Link related Meta Boxes

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31302';
$wp_version = '4.2-alpha-31303';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.