Changeset 6553
- Timestamp:
- 02/06/2018 05:47:46 PM (7 years ago)
- 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 446 446 447 447 // 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 ) { 449 449 slack_dm( print_r( $this->request, 1 ), 'obenland' ); 450 450 slack_dm( print_r( $wp_query, 1 ), 'obenland' ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r6462 r6553 751 751 unset( $request['fields'], $request['locale'] ); 752 752 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 753 759 return $result = array( 754 760 'themes' => $api_result->themes,
Note: See TracChangeset
for help on using the changeset viewer.