WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2014 05:03:44 AM (6 years ago)
Author:
wonderboymusic
Message:

Fix some hackificator odds and ends in wp-admin:

  • wp-activate.php and wp-admin/themes.php don't need the closing PHP tag
  • Switch single quotes for HTML attribute values to double in a few places
  • Convert include_once file.php syntax to include_once( 'file.php' )
  • Add access modifiers to methods/members in: _WP_List_Table_Compat, Walker_Nav_Menu_Edit, Walker_Nav_Menu_Checklist, WP_Screen, Walker_Category_Checklist
  • edit_user() doesn't need to import the $wpdb global
  • wp_list_widgets() doesn't need to import the $sidebars_widgets global
  • switch/endswitch syntax is not supported in Hack
  • A <ul> in wp-admin/users.php is unclosed

See #27881.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/screen.php

    r28348 r28500  
    531531     * @since 3.3.0
    532532     */
    533     function set_current_screen() {
     533    public function set_current_screen() {
    534534        global $current_screen, $taxnow, $typenow;
    535535        $current_screen = $this;
     
    582582     * @param string $help Help text.
    583583     */
    584     static function add_old_compat_help( $screen, $help ) {
     584    public static function add_old_compat_help( $screen, $help ) {
    585585        self::$_old_compat_help[ $screen->id ] = $help;
    586586    }
     
    594594     * @param string $parent_file The parent file of the screen. Typically the $parent_file global.
    595595     */
    596     function set_parentage( $parent_file ) {
     596    public function set_parentage( $parent_file ) {
    597597        $this->parent_file = $parent_file;
    598598        list( $this->parent_base ) = explode( '?', $parent_file );
     
    10901090     * @since 3.3.0
    10911091     */
    1092     function render_screen_layout() {
     1092    public function render_screen_layout() {
    10931093        if ( ! $this->get_option('layout_columns') )
    10941094            return;
     
    11191119     * @since 3.3.0
    11201120     */
    1121     function render_per_page_options() {
     1121    public function render_per_page_options() {
    11221122        if ( ! $this->get_option( 'per_page' ) )
    11231123            return;
Note: See TracChangeset for help on using the changeset viewer.