[wp-trac] [WordPress Trac] #4915: Deprecate get_alloptions()

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 7 19:28:25 UTC 2010


#4915: Deprecate get_alloptions()
--------------------------+-------------------------------------------------
 Reporter:  mdawaffe      |       Owner:  anonymous       
     Type:  enhancement   |      Status:  new             
 Priority:  normal        |   Milestone:  3.0             
Component:  Optimization  |     Version:  2.9             
 Severity:  normal        |    Keywords:  has-patch commit
--------------------------+-------------------------------------------------

Comment(by nacin):

 Replying to [comment:12 Denis-de-Bernardy]:
 > It's not used at all in WP, the ticket has been opened for 2 years...
 Sure, but there's been no sign of deprecation. The codex and
 wp_load_alloptions() inline docs even denote the difference between the
 two, which means a plugin author might still use it, even choosing to use
 it over wp_load_alloptions() due to the difference. While the repository
 is a good guideline, not all plugins out there are on wordpress.org.

 Best I can tell, wp_load_alloptions() should be a named replacement.
 Generally, it seems we run down this checklist:

 1. Is the functionality and return value of the replacement (if
 applicable) roughly compatible? If yes, return the replacement. If no:

 2. Does the deprecated function still perform an action? If it still does
 something: leave it as is and only name the replacement (if applicable).
 If no:

 3. The function no longer provides any functionality, so strip it down to
 nothing. (See get_autotoggle() as an example.)

 Seems the first one applies here.

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


More information about the wp-trac mailing list