diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
index bf04c22..38d0a8d 100644
|
|
|
function wp_ajax_query_themes() { |
| 2779 | 2779 | 'fields' => $theme_field_defaults |
| 2780 | 2780 | ) ); |
| 2781 | 2781 | |
| | 2782 | if ( 'favorites' === $args['browse'] ) { |
| | 2783 | $user = get_user_option( 'wporg_favorites' ); |
| | 2784 | if ( $user ) { |
| | 2785 | $args['user'] = $user; |
| | 2786 | } |
| | 2787 | } |
| | 2788 | |
| 2782 | 2789 | $old_filter = isset( $args['browse'] ) ? $args['browse'] : 'search'; |
| 2783 | 2790 | |
| 2784 | 2791 | /** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */ |
diff --git src/wp-admin/theme-install.php src/wp-admin/theme-install.php
index 06bd438..24a02d1 100644
|
|
|
include(ABSPATH . 'wp-admin/admin-header.php'); |
| 139 | 139 | <li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li> |
| 140 | 140 | <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li> |
| 141 | 141 | <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li> |
| | 142 | <li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li> |
| 142 | 143 | </ul> |
| 143 | 144 | |
| 144 | 145 | <a class="drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a> |