Make WordPress Core


Ignore:
Timestamp:
11/11/2010 03:16:16 PM (16 years ago)
Author:
ryan
Message:

Add screen options to site-themes. Props PeteMall. see #14897

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16242 r16298  
    6161
    6262                $site_allowed_themes = get_site_allowed_themes();
    63                 if ( !$this->is_site_themes )
    64                         $allowed_themes = $site_allowed_themes;
    65                 else
     63                if ( !$this->is_site_themes ) {
     64                        $allowed_themes = $site_allowed_themes;
     65                        $themes_per_page = $this->get_items_per_page( 'themes_network_per_page' );
     66                } else {
    6667                        $allowed_themes = wpmu_get_blog_allowedthemes( $this->site_id );
     68                        $themes_per_page = $this->get_items_per_page( 'site_themes_network_per_page' );
     69                }
    6770               
    6871                $current = get_site_transient( 'update_themes' );
     
    113116                        uasort( $this->items, array( &$this, '_order_callback' ) );
    114117                }
    115 
    116                 $themes_per_page = $this->get_items_per_page( 'themes_network_per_page' );
    117118
    118119                $start = ( $page - 1 ) * $themes_per_page;
Note: See TracChangeset for help on using the changeset viewer.