Opened 3 years ago
Last modified 3 years ago
#5855 reopened defect (bug)
Correct formatting for code blocks imported from GitHub PRs, take 2
Reported by: | SergeyBiryukov | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Trac | Keywords: | |
Cc: |
Description
As seen in some comments on #WP22316, the formatting of code blocks still looks broken:
https://core.trac.wordpress.org/ticket/22316#comment:93
`json
{
"name": "vendor/my-plugin",
"description: "....",
/* snip */
"wordpress": {
...
}
}
https://core.trac.wordpress.org/ticket/22316#comment:94
{{{json
{
"plugin-dependencies": [
{
"slug": "gutenberg",
"name": "Gutenberg"
},
{
"slug": "woocommerce",
"name": "WooCommerce"
}
]
}
}}}
It looks like converting the GitHub syntax for code blocks to the syntax that Trac recognizes could use some adjustment.
Change History (5)
#4
@
3 years ago
- Resolution set to fixed
- Status changed from new to closed
Marking as fixed, as I believe this is fixed.
Re-open if there's still examples of the code blocks importing badly.
#5
@
3 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
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 );
}
}}}
In 11244: