[wp-trac] [WordPress Trac] #28425: get_permalink passes only post ID to called functions instead of post object

WordPress Trac noreply at wordpress.org
Wed Jun 4 08:03:21 UTC 2014


#28425: get_permalink passes only post ID to called functions instead of post
object
-------------------------------+--------------------------
 Reporter:  arnee              |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  4.0
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  performance
-------------------------------+--------------------------

Comment (by kovshenin):

 Replying to [comment:6 arnee]: can you provide a code sample, perhaps from
 your sitemap plugin, where a call to `get_permalink()` results in an
 database hit vs. no hit if you pass the whole object to `get_page_link()`?

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


More information about the wp-trac mailing list