Template: Rename the $id parameters in the_permalink(), get_the_permalink(), and get_permalink() to $post.

In all three cases, the functions can accept a post ID, a `WP_Post` object, or a falsey value, which defaults to the value of the global `$post`. Switching to `$post` in this context allows the parameters to better self-document and removes ambiguity in the code they are subsequently used in.

Props chriscct7 for the initial patch.
See #34234.

Built from https://develop.svn.wordpress.org/trunk@35001


git-svn-id: http://core.svn.wordpress.org/trunk@34966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes
2015-10-10 05:41:29 +00:00
parent 5399881b18
commit c2b5aeebb0
2 changed files with 13 additions and 13 deletions

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35000';
$wp_version = '4.4-alpha-35001';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.