[wp-meta] [Making WordPress.org] #5855: Correct formatting for code blocks imported from GitHub PRs, take 2
Making WordPress.org
noreply at wordpress.org
Wed Mar 30 20:42:58 UTC 2022
#5855: Correct formatting for code blocks imported from GitHub PRs, take 2
----------------------------+-----------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Trac | Resolution:
Keywords: |
----------------------------+-----------------------
Changes (by SergeyBiryukov):
* status: closed => reopened
* resolution: fixed =>
Comment:
Another example: https://core.trac.wordpress.org/ticket/36907#comment:15
> {{{php
> /**
> * Ensure all sticky posts are included, no matter how many.
> *
> * @ticket 36907
> */
> public function test_query_should_return_all_stickies() {
> $old_option = get_option( 'sticky_posts' );
> foreach ( self::$posts as $post_id ) {
> stick_post( $post_id );
> }
>
> $q = new WP_Query( array( 'post_type' => 'post' ) );
> // 22 sticky posts, 1 hello world.
> $this->assertCount( 23, $q->posts );
>
> update_option( 'sticky_posts', $old_option );
> }
> }}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5855#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list