Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/search.php

    r46586 r47122  
    8181        $title = '-HYPHENATION_TEST';
    8282
    83         // Create a post with a title which starts with a hyphen
     83        // Create a post with a title which starts with a hyphen.
    8484        $post_id = self::factory()->post->create(
    8585            array(
     
    8989        );
    9090
    91         // By default, we can use the hyphen prefix to exclude results
     91        // By default, we can use the hyphen prefix to exclude results.
    9292        $this->assertEquals( array(), $this->get_search_results( $title ) );
    9393
    94         // After we disable the feature using the filter, we should get the result
     94        // After we disable the feature using the filter, we should get the result.
    9595        add_filter( 'wp_query_search_exclusion_prefix', '__return_false' );
    9696        $result = $this->get_search_results( $title );
Note: See TracChangeset for help on using the changeset viewer.