Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30644, comment 2


Ignore:
Timestamp:
01/13/2015 10:56:02 PM (10 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30644, comment 2

    initial v1  
    1 @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.
     1@stefanrz thanks for the 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.
    22
    33Think 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.