[wp-trac] [WordPress Trac] #31503: code flaw in function wp_clean_update_cache

WordPress Trac noreply at wordpress.org
Wed Mar 18 21:42:27 UTC 2015


#31503: code flaw in function wp_clean_update_cache
------------------------------+------------------------
 Reporter:  juggledad         |       Owner:  ocean90
     Type:  defect (bug)      |      Status:  reviewing
 Priority:  normal            |   Milestone:  4.2
Component:  General           |     Version:  4.1.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------

Comment (by nacin):

 Replying to [comment:2 TobiasBg]:
 > I can't think of a scenario right now, where `WP_INC/theme.php` (for
 `wp_clean_themes_cache()`) is loaded, but `plugin.php` (for
 `wp_clean_plugins_cache()`) isn't. Thus, we should probably add the same
 check for `wp_clean_themes_cache()` as well, see [attachment:31503.diff].

 wp_clean_plugins_cache() is in *wp-admin/includes*, which is not always
 loaded, while wp-includes/theme.php is always loaded. Just removing the
 one line is appropriate.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31503#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list