Themes: Check if the browse view is set in wp_ajax_query_themes() to avoid a PHP notice when searching for new themes.

Introduced in [35527].

See #34206.
Built from https://develop.svn.wordpress.org/trunk@35646


git-svn-id: http://core.svn.wordpress.org/trunk@35610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-11-16 19:47:54 +00:00
parent 767518ffaa
commit 99f4fc4404
2 changed files with 2 additions and 2 deletions

View File

@ -2821,7 +2821,7 @@ function wp_ajax_query_themes() {
'fields' => $theme_field_defaults 'fields' => $theme_field_defaults
) ); ) );
if ( 'favorites' === $args['browse'] && ! isset( $args['user'] ) ) { if ( isset( $args['browse'] ) && 'favorites' === $args['browse'] && ! isset( $args['user'] ) ) {
$user = get_user_option( 'wporg_favorites' ); $user = get_user_option( 'wporg_favorites' );
if ( $user ) { if ( $user ) {
$args['user'] = $user; $args['user'] = $user;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-beta4-35645'; $wp_version = '4.4-beta4-35646';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.