[wp-trac] [WordPress Trac] #23327: Cache incrementors for get_bookmarks()

WordPress Trac noreply at wordpress.org
Fri Jan 23 12:53:34 UTC 2015


#23327: Cache incrementors for get_bookmarks()
-------------------------------------------------+-------------------------
 Reporter:  ryan                                 |       Owner:
     Type:  task (blessed)                       |      Status:  new
 Priority:  low                                  |   Milestone:  Future
Component:  Cache API                            |  Release
 Severity:  normal                               |     Version:  3.5.1
 Keywords:  3.7-early has-patch needs-unit-      |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by jipmoors):

 I had a slight problem with figuring out how to create a unit-test that
 would consider the current 'defaults' from get_bookmarks, since that data
 is only available in the function itself.

 This is the most important part in the generation of the cache key, so it
 will be very difficult to test without knowing this and not have it break
 when the defaults might be modified in the future.

 Any advice/suggestions on that?

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


More information about the wp-trac mailing list