Make WordPress Core


Ignore:
Timestamp:
11/16/2015 07:46:37 PM (10 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

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

    r35527 r35646  
    28222822    ) );
    28232823
    2824     if ( 'favorites' === $args['browse'] && ! isset( $args['user'] ) ) {
     2824    if ( isset( $args['browse'] ) && 'favorites' === $args['browse'] && ! isset( $args['user'] ) ) {
    28252825        $user = get_user_option( 'wporg_favorites' );
    28262826        if ( $user ) {
Note: See TracChangeset for help on using the changeset viewer.