Ticket #19974: 19974.wp-screen-getters.diff
File 19974.wp-screen-getters.diff, 1.1 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/screen.php
578 578 } 579 579 return $this->_options[ $option ]; 580 580 } 581 581 582 582 /** 583 * Gets the arguments for an option for a help tab. 584 * 585 * @since 3.4.0 586 * 587 * @param string $id Help Tab ID. 588 */ 589 public function get_help_tab( $id ) { 590 if ( ! isset( $this->_help_tab[ $id ] ) ) 591 return null; 592 return $this->_help_tab[ $id ]; 593 } 594 595 /** 583 596 * Add a help tab to the contextual help for the screen. 584 597 * Call this on the load-$pagenow hook for the relevant screen. 585 598 * … … 631 644 } 632 645 633 646 /** 647 * Gets the content from a contextual help sidebar. 648 * 649 * @since 3.4.0 650 * 651 */ 652 public function get_help_sidebar( ) { 653 return $this->_help_sidebar; 654 } 655 656 /** 634 657 * Add a sidebar to the contextual help for the screen. 635 658 * Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help. 636 659 *