Make WordPress Core

Changeset 31303


Ignore:
Timestamp:
01/30/2015 03:33:33 PM (10 years ago)
Author:
SergeyBiryukov
Message:

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

props bananastalktome.
fixes #31164.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r31090 r31303  
    764764<p><strong><?php _e('Order') ?></strong></p>
    765765<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>
    766 <p><?php if ( 'page' == $post->post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p>
    767 <?php
     766<?php if ( 'page' == $post->post_type && get_current_screen()->get_help_tabs() ) { ?>
     767<p><?php _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?></p>
     768<?php
     769    }
    768770}
    769771
Note: See TracChangeset for help on using the changeset viewer.