[wp-trac] [WordPress Trac] #14721: set_theme_mod() needs a filter

WordPress Trac noreply at wordpress.org
Thu Feb 27 15:50:29 UTC 2014


#14721: set_theme_mod() needs a filter
--------------------------+--------------------
 Reporter:  mikeschinkel  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  Themes        |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------

Comment (by MikeHansenMe):

 Replying to [comment:12 ssmathias]:
 >
 > Using a filter on save can be more performant if something is saved less
 frequently than it is read. Running filters does take time, so if it saves
 once, or even once a month, versus being read on page load, you can see
 how frequently the latter filters would run compared to the former.

 So in your situation you are filtering it in order to save it. Why would
 you not just update the setting and avoid a filter all together?

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


More information about the wp-trac mailing list