$id
parameter in get_post_permalink()
, get_edit_post_link()
, edit_post_link()
, and get_delete_post_link()
, to reflect that either a post ID or WP_Post
object is accepted.
Separately, use `$post` for checking the post status and retrieving the page_uri in `get_post_permalink()` instead of referencing back to the original `$id` parameter. Props GunGeekATX for the initial patch. Fixes #40780. git-svn-id: https://develop.svn.wordpress.org/trunk@40975 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
76.7%
CSS
10.9%
JavaScript
9.2%
Modelica
2.4%
HTML
0.6%
Other
0.2%