WordPress.org

Making WordPress.org

Changeset 6546


Ignore:
Timestamp:
02/05/2018 10:42:27 PM (4 years ago)
Author:
obenland
Message:

Themes: Add debug snippet to track 1 theme result

See #3215.

File:
1 edited

Legend:

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

    r6499 r6546  
    445445        }
    446446
     447        // DEBUG
     448        if ( function_exists( 'slack_dm' ) && 1 === $this->result->found_posts ) {
     449            slack_dm( print_r( $this->fields, 1 ), 'obenland' );
     450            slack_dm( print_r( $wp_query, 1 ), 'obenland' );
     451        }
     452
    447453        // Basic information about the request.
    448454        $this->response = (object) array(
     
    472478        );
    473479        if ( isset( $this->request->page ) ) {
    474             $this->query['paged'] = (int)$this->request->page;
     480            $this->query['paged'] = (int) $this->request->page;
    475481        }
    476482        if ( isset( $this->request->per_page ) ) {
Note: See TracChangeset for help on using the changeset viewer.