Making WordPress.org


Ignore:
Timestamp:
08/16/2017 01:27:16 PM (9 years ago)
Author:
danielbachhuber
Message:

phpunit-test-reporter: Only filter content for queried object

See #2981

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-display.php

    r5806 r5807  
    1818         */
    1919        public static function filter_post_class( $classes ) {
    20                 if ( is_singular( 'result' ) ) {
     20                if ( is_singular( 'result' ) && get_the_ID() === get_queried_object_id() ) {
    2121                        $classes[] = 'page';
    2222                }
     
    2828         */
    2929        public static function filter_the_content( $content ) {
    30                 if ( ! is_singular( 'result' ) ) {
     30                if ( ! is_singular( 'result' ) || get_the_ID() !== get_queried_object_id() ) {
    3131                        return $content;
    3232                }
Note: See TracChangeset for help on using the changeset viewer.