[wp-trac] [WordPress Trac] #30644: "wpautop" Enhancements

WordPress Trac noreply at wordpress.org
Tue Jan 13 21:48:11 UTC 2015


#30644: "wpautop" Enhancements
-------------------------+-----------------------------
 Reporter:  stefanrz     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  wpautop      |     Focuses:
-------------------------+-----------------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => Future Release


Comment:

 @stefanrz thanks for idea and the patch. Works quite well as far as I see.
 Cleaned up the coding style to match the WordPress standards and made it
 into a plugin in [/attachment/ticket/30644/wpautop_replacement.php
 wpautop_replacement.php]. We probably will need to replace/improve some of
 the variables names to make them clearer. Also adding some inline comments
 explaining what is happening/how does it work would be very nice.

 Think fixing/enhancing wpautop will be best done in a feature plugin. Also
 this is an excellent place to use the
 [http://www.extremeprogramming.org/rules/testfirst.html tests first]
 approach. Having robust unit tests for wpautop() will make this much
 easier to get right and "tune up" in the future.

 There are quite a few wpautop tests on #25856. We can probably start by
 cleaning them up and (conditionally) adding them.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30644#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list