Changeset 19185
- Timestamp:
- 11/06/2011 06:13:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/screen.php
r19155 r19185 683 683 // Default help only if there is no old-style block of text and no new-style help tabs. 684 684 if ( empty( $old_help ) && empty( $this->_help_tabs ) ) { 685 $default_help = __( '<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>' ); 686 $default_help .= '<br />'; 687 $default_help .= __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ); 688 $old_help = '<p>' . apply_filters( 'default_contextual_help', $default_help ) . '</p>'; 685 $default_help = apply_filters( 'default_contextual_help', '' ); 686 if ( $default_help ) 687 $old_help = '<p>' . $default_help . '</p>'; 689 688 } 690 689 … … 750 749 ?> 751 750 </div> 751 <?php 752 if ( ! $this->_help_tabs && ! $this->show_screen_options() ) 753 return; 754 ?> 752 755 <div id="screen-meta-links"> 753 <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle"> 754 <a href="#contextual-help-wrap" id="contextual-help-link" class="show-settings"><?php _e('Help') ?></a> 755 </div> 756 <?php if ( $this->show_screen_options() ) { ?> 757 <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle"> 758 <a href="#screen-options-wrap" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a> 759 </div> 760 <?php } ?> 756 <?php if ( $this->_help_tabs ) : ?> 757 <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle"> 758 <a href="#contextual-help-wrap" id="contextual-help-link" class="show-settings"><?php _e( 'Help' ); ?></a> 759 </div> 760 <?php endif; 761 if ( $this->show_screen_options() ) : ?> 762 <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle"> 763 <a href="#screen-options-wrap" id="show-settings-link" class="show-settings"><?php _e( 'Screen Options' ); ?></a> 764 </div> 765 <?php endif; ?> 761 766 </div> 762 767 <?php
Note: See TracChangeset
for help on using the changeset viewer.