[wp-meta] [Making WordPress.org] #4457: Encoding issue in the Syntax Highlighter Evolved block
Making WordPress.org
noreply at wordpress.org
Mon Jul 15 19:00:24 UTC 2019
#4457: Encoding issue in the Syntax Highlighter Evolved block
-----------------------+--------------------------
Reporter: truongwp | Owner: coffee2code
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: Handbooks | Resolution:
Keywords: |
-----------------------+--------------------------
Changes (by dingo_d):
* status: closed => reopened
* resolution: fixed =>
* component: Developer Hub => Handbooks
Comment:
Hi @coffee2code,
There seems to be this kind of issue on this page as well:
https://make.wordpress.org/core/handbook/testing/automated-testing
/writing-phpunit-tests/
Example:
{{{#!php
<?php
public function test_user_with_editor_role_can_edit_others_posts() {
$user_id = self::factory()->user->create( array(
'role' => 'editor',
) );
$this->assertTrue( user_can( $user_id, 'edit_others_posts' ) );
}
}}}
Maybe the fix mentioned in 6th comment could be applied to the handbook
pages as well?
I'd submit a patch but I'm not 100% sure what would be a good place to put
the fix to.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4457#comment:11>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list