[wp-meta] [Making WordPress.org] #5875: Allow XML configuration examples in WP core handbook

Making WordPress.org noreply at wordpress.org
Tue Aug 24 21:38:51 UTC 2021

#5875: Allow XML configuration examples in WP core handbook
 Reporter:  SergeyBiryukov            |      Owner:  (none)
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  Make (Get Involved) / P2  |   Keywords:
 In a recent [https://www.youtube.com/watch?v=O_sLjiPs494 working session
 on WP core testing local workflow] with @hellofromTonya, @jrf, and other
 contributors, the [https://make.wordpress.org/core/handbook/testing
 /automated-testing/phpunit/ documentation on PHPUnit usage] in WP core
 handbook was overhauled.

 To make one of the test running workflow options clearer, the article
 includes this code snippet to be added to the `phpunit.xml[.dist]` file:
      <const name="WP_TESTS_PHPUNIT_POLYFILLS_PATH" value="path/to/yoast

 The problem is that this snippet is removed every time the post is edited,
 presumably by KSES filtering. So anyone editing the page currently has to
 keep that in mind, and reinstate the snippet over and over again.

 It would be very helpful if the code was not removed on page edits. Since
 it is not meant to be executed, and is only there for documentation
 purposes, allowing this in the handbook context should be safe without any
 security concerns.

Ticket URL: <https://meta.trac.wordpress.org/ticket/5875>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list