Changeset 5823 for sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php
- Timestamp:
- 08/18/2017 07:21:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php
r5807 r5823 18 18 */ 19 19 public static function filter_post_class( $classes ) { 20 if ( is_singular( 'result' ) && get_the_ID() === get_queried_object_id() ) { 20 if ( is_singular( 'result' ) 21 && get_the_ID() === get_queried_object_id() 22 && 'result' === get_post_type( get_the_ID() ) ) { 21 23 $classes[] = 'page'; 22 24 } … … 28 30 */ 29 31 public static function filter_the_content( $content ) { 30 if ( ! is_singular( 'result' ) || get_the_ID() !== get_queried_object_id() ) { 32 if ( ! is_singular( 'result' ) 33 || get_the_ID() !== get_queried_object_id() 34 || 'result' !== get_post_type( get_the_ID() ) ) { 35 return $content; 36 } 37 38 if ( ! did_action( 'loop_start' ) ) { 31 39 return $content; 32 40 }
Note: See TracChangeset
for help on using the changeset viewer.