Ticket #18785: 18785.andrew-2nd.1.diff
File 18785.andrew-2nd.1.diff, 849 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/screen.php
590 590 * 591 591 * @param array $args 592 592 * - string - title - Title for the tab. 593 * - string - id - Tab ID. Optional.593 * - string - id - Tab ID. Must be HTML-safe. 594 594 * - string - content - Help tab content in plain text or HTML. Optional. 595 595 * - callback - callback - A callback to generate the tab content. Optional. 596 596 * … … 608 608 if ( ! $args['title'] ) 609 609 return; 610 610 611 // Create an id from the title if one is not provided.611 // Ensure we have an id. 612 612 if ( ! $args['id'] ) 613 $args['id'] = sanitize_html_class( $args['title'] );613 return; 614 614 615 615 $this->_help_tabs[] = $args; 616 616 }