[wp-trac] [WordPress Trac] #27572: get_post_format_link and db queries

WordPress Trac noreply at wordpress.org
Tue Feb 3 06:55:29 UTC 2015


#27572: get_post_format_link and db queries
--------------------------+------------------------
 Reporter:  afercia       |       Owner:
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Post Formats  |     Version:  3.8
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 I'm closing this as a duplicate of #21760 as it takes what I think, is a
 better route here.

 Rather than introducing a new function, or making `get_post_format_link()`
 reliant upon the current post, it adds caching to the `get_term_by()`
 function which gives a far better developer experience. Additionally, if
 the term is attached to an existing post in the current query, it should
 be automatically pulled into the cache on view by `update_post_caches()`.

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


More information about the wp-trac mailing list