Making WordPress.org

Changeset 6553


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

Themes: Add another level of debug

See [6548].

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory
Files:
2 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' );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r6462 r6553  
    751751    unset( $request['fields'], $request['locale'] );
    752752
     753    // DEBUG
     754    if ( function_exists( 'slack_dm' ) && isset( $request['browse'] ) && 'featured' === $request['browse'] && 1 === $api_result->info['results'] ) {
     755        slack_dm( print_r( $GLOBALS['wp_query'], 1 ), 'obenland' );
     756        slack_dm( print_r( $api_result, 1 ), 'obenland' );
     757    }
     758
    753759    return $result = array(
    754760        'themes'  => $api_result->themes,
Note: See TracChangeset for help on using the changeset viewer.