[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 25 12:05:56 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 dev-feedback commit  |     Focuses:  performance
-------------------------------------------+--------------------------

Comment (by kovshenin):

 Replying to [comment:17 arnee]: As I said, I'm not against this change,
 just not for the reasons you mentioned above (tricking get_permalink()
 into returning something that does not exist, working directly with the
 database and by-passing object caching, resulting in extra database
 queries). I'd accept the consistency/cleaner code reason, maybe even the
 performance reason although there seems to be very little gain if any.

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


More information about the wp-trac mailing list