Make WordPress Core

Changeset 20141


Ignore:
Timestamp:
03/07/2012 06:29:36 PM (13 years ago)
Author:
nacin
Message:

Deprecate display_theme(). see #19910.

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-theme-install-list-table.php

    r20140 r20141  
    149149    function display_rows() {
    150150        $themes = $this->items;
    151         $theme_names = array_keys( $themes );
    152 
    153         foreach ( $theme_names as $theme_name ) {
     151        foreach ( $themes as $theme ) {
    154152                ?>
    155153                <div class="available-theme installable-theme"><?php
    156                     if ( isset( $themes[$theme_name] ) )
    157                         display_theme( $themes[$theme_name] );
     154                    $this->single_row( $theme );
    158155                ?></div>
    159156        <?php } // end foreach $theme_names
     
    161158        $this->theme_installer();
    162159    }
    163 
    164 
    165160
    166161    /*
  • trunk/wp-admin/includes/theme-install.php

    r20140 r20141  
    128128add_action('install_themes_upload', 'install_themes_upload', 10, 1);
    129129
    130 /*
     130/**
    131131 * Prints a theme on the Install Themes pages.
    132132 *
    133  * @param object $theme An object that contains theme data returned by the WordPress.org API.
     133 * @deprecated 3.4.0
    134134 */
    135135function display_theme( $theme ) {
     136    _deprecated_function( __FUNCTION__, '3.4' );
    136137    global $wp_list_table;
    137 
    138138    return $wp_list_table->single_row( $theme );
    139139}
Note: See TracChangeset for help on using the changeset viewer.