[wp-trac] Re: [WordPress Trac] #2701: Centralize javascript inclusions

WordPress Trac wp-trac at lists.automattic.com
Thu May 4 01:22:40 GMT 2006


#2701: Centralize javascript inclusions
----------------------+-----------------------------------------------------
       Id:  2701      |      Status:  assigned                
Component:  General   |    Modified:  Thu May  4 01:22:40 2006
 Severity:  normal    |   Milestone:  2.1                     
 Priority:  normal    |     Version:  2.1                     
    Owner:  mdawaffe  |    Reporter:  mdawaffe                
----------------------+-----------------------------------------------------
Comment (by mdawaffe):

 Thanks for the pointer about TinyMCE and ver.  I've deprecated
 tinymce_include() and taken your suggestions for cache busting in the new
 patch.

 2701b.diff

  1. Optional version parameter in the addition functions.
  1. Native scripts have all been given versions.  I used real version
 numbers where provided, real version numbers . _changeset where necessary,
 and changeset otherwise.  I kept the date based version on TinyMCE.
 Whether we use dates or changesets for anything in the future won't
 matter.  The changesets were easier to find, is all.
  1. src="blah?ver=( $script->ver ? $script->ver : $wp_db_version )"

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2701>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list