[wp-trac] [WordPress Trac] #20266: Update get_plugin_data()

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 20 22:32:40 UTC 2012


#20266: Update get_plugin_data()
--------------------------+------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Plugins       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by nacin):

 The one issue with [attachment:20266.diff] is that it causes sanitized
 data to be cached (as _get_plugin_data_markup_translate() is run even when
 $markup = $translate = false), but then will still re-sanitize the data
 when _get_plugin_data_markup_translate() is used later to apply markup or
 apply translations.

 We probably need a final sanitize = false parameter, then call sanitize =
 true in get_plugins(). (Or true by default and false where we don't need
 it.) In general, these kinds of issues were what caused WP_Theme to be
 written.

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


More information about the wp-trac mailing list