[wp-trac] [WordPress Trac] #16585: Proposed changes to wp enqueueing and shortcode handling

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 17 23:53:40 UTC 2011


#16585: Proposed changes to wp enqueueing and shortcode handling
-------------------------------------------------+-------------------------
 Reporter:  Jester831                            |       Owner:  Jester831
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  General                              |  Review
 Severity:  major                                |     Version:  3.1
 Keywords:  dev-feedback needs-patch needs-      |  Resolution:
  codex                                          |
-------------------------------------------------+-------------------------

Comment (by scribu):

 > This can be achieved by storing a list of used shortcode tags within a
 pages meta, likely while saving a post or page, that can later be used as
 a conditional check with, among others, wp_enqueue_script and
 wp_enqueue_style.

 Big -1. As described in IRC:

 {{{
 (01:40:45 AM) scribu: scenario: you make a simple shortcode that doesn't
 need additional css/js and you release it as a plugin
 (01:41:21 AM) scribu: afterwards, you make it fancier and now you do need
 a some additional css/js
 (01:41:36 AM) scribu: you release the updated version of the plugin and
 the user updates
 (01:41:52 AM) scribu: but wait, the user already has posts that use the
 previous version of the shortcode
 (01:41:58 AM) scribu: what happens then?
 }}}

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


More information about the wp-trac mailing list