Making WordPress.org


Ignore:
Timestamp:
02/06/2018 05:47:46 PM (7 years ago)
Author:
obenland
Message:

Themes: Add another level of debug

See [6548].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php

    r6548 r6553  
    446446
    447447        // DEBUG
    448         if ( function_exists( 'slack_dm' ) && 'featured' === $wp_query->query_vars['browse'] && 1 === $this->result->found_posts ) {
     448        if ( function_exists( 'slack_dm' ) && isset( $wp_query->query_vars['browse'] ) && 'featured' === $wp_query->query_vars['browse'] && 1 === $this->result->found_posts ) {
    449449            slack_dm( print_r( $this->request, 1 ), 'obenland' );
    450450            slack_dm( print_r( $wp_query, 1 ), 'obenland' );
Note: See TracChangeset for help on using the changeset viewer.