[wp-trac] [WordPress Trac] #18534: Synchronize block tags between PHP and JS versions of wpautop()

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 14 22:39:47 UTC 2012


#18534: Synchronize block tags between PHP and JS versions of wpautop()
---------------------------------+------------------
 Reporter:  SergeyBiryukov       |       Owner:
     Type:  defect (bug)         |      Status:  new
 Priority:  normal               |   Milestone:  3.5
Component:  Editor               |     Version:  3.2
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.5-early  |
---------------------------------+------------------

Comment (by MarcusPope):

 Just wanted to point out that the blocklist/$allblocks variables are not
 the only differences between the php and javascript wpautop functions.
 The javascript version includes regex transforms that are not included in
 the php version and vice versa.  I highly suggest that you make an ajax
 request to the php version on tab switch instead of failing to maintain
 two versions.  This would reduce the application complexity, and make the
 logic DRY.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18534#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list