Ticket #19827: core-ticket19827.diff
| File core-ticket19827.diff, 1.5 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/screen.php
606 606 if ( ! $args['id'] || ! $args['title'] ) 607 607 return; 608 608 609 $this->_help_tabs[ ] = $args;609 $this->_help_tabs[$args['id']] = $args; 610 610 } 611 611 612 612 /** … … 686 686 <div id="contextual-help-columns"> 687 687 <div class="contextual-help-tabs"> 688 688 <ul> 689 <?php foreach ( $this->_help_tabs as $i =>$tab ):689 <?php $i=0; foreach ( $this->_help_tabs as $tab ): 690 690 $link_id = "tab-link-{$tab['id']}"; 691 691 $panel_id = "tab-panel-{$tab['id']}"; 692 692 $classes = ( $i == 0 ) ? 'active' : ''; … … 697 697 <?php echo esc_html( $tab['title'] ); ?> 698 698 </a> 699 699 </li> 700 <?php endforeach; ?>700 <?php $i++; endforeach; ?> 701 701 </ul> 702 702 </div> 703 703 … … 708 708 <?php endif; ?> 709 709 710 710 <div class="contextual-help-tabs-wrap"> 711 <?php foreach ( $this->_help_tabs as $i =>$tab ):711 <?php $i=0; foreach ( $this->_help_tabs as $tab ): 712 712 $panel_id = "tab-panel-{$tab['id']}"; 713 713 $classes = ( $i == 0 ) ? 'active' : ''; 714 714 $classes .= ' help-tab-content'; … … 724 724 call_user_func_array( $tab['callback'], array( $this, $tab ) ); 725 725 ?> 726 726 </div> 727 <?php endforeach; ?>727 <?php $i++; endforeach; ?> 728 728 </div> 729 729 </div> 730 730 </div>