Make WordPress Core

Ticket #18785: 18785.andrew-2nd.1.diff

File 18785.andrew-2nd.1.diff, 849 bytes (added by mbijon, 13 years ago)

For Andrew's comment #38, 2nd item

  • wp-admin/includes/screen.php

     
    590590         *
    591591         * @param array $args
    592592         * - string   - title    - Title for the tab.
    593          * - string   - id       - Tab ID. Optional.
     593         * - string   - id       - Tab ID. Must be HTML-safe.
    594594         * - string   - content  - Help tab content in plain text or HTML. Optional.
    595595         * - callback - callback - A callback to generate the tab content. Optional.
    596596         *
     
    608608                if ( ! $args['title'] )
    609609                        return;
    610610
    611                 // Create an id from the title if one is not provided.
     611                // Ensure we have an id.
    612612                if ( ! $args['id'] )
    613                         $args['id'] = sanitize_html_class( $args['title'] );
     613                        return;
    614614
    615615                $this->_help_tabs[] = $args;
    616616        }