Commit d664c3c
committed
Coding Standards: Correct
This commit corrects the default post ID parameter values used in several functions to bring them in line with their `int` doctypes (and the doctypes of their internal function calls).
More specifically,
* `get_page_link()`: `$post = false` changed to `$post = 0`
* `_get_page_link()`: `$post = false` changed to `$post = 0`
* `post_comments_feed_link()`: `$post_id = ''` changed to `$post_id = 0`
Follow-up to [1752], [4475], [6365], [9136], [9274], [21735], [24490], [32606], [37252].
Props justlevine.
See #63268.
git-svn-id: https://develop.svn.wordpress.org/trunk@60152 602fd350-edb4-49c9-b593-d223f7449a82$post parameter default values in link-template.php.1 parent 4ce25a5 commit d664c3c
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
| 428 | + | |
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | | - | |
| 837 | + | |
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
| |||
0 commit comments