Deprecated function post_permalink() –> Replace with get_permalink()
-
Hey there,
Just wanted to report a small bug. In WordPress 4.4, the function
post_permalink()
was deprecated, and now generates constant PHP notices when usingWP_DEBUG
. (Which use a lot on our test servers, both for ours and clients sites.)PHP Notice: post_permalink is deprecated since version 4.4! Use get_permalink() instead. in /xxxxxxxxx/wp-includes/functions.php on line 3573
It took me a bit to figure out which plugin had the code, since the errors only pointed to the WordPress core files.
After doing a little grep action I found it in this file:
wp-super-cache/wp-cache-phase2.php
The old function
post_permalink()
occurs on lines:
1080, 1082, 1135, 1153, and 1176.Just doing a straight swap of the two functions works fine.
Thanks in advance for taking care of this. Keep up the great work! ??
– Scott
- The topic ‘Deprecated function post_permalink() –> Replace with get_permalink()’ is closed to new replies.