Quantcast
Channel: wp-super-cache – WordPress.org Forums
Viewing all articles
Browse latest Browse all 3480

Scott Allen on "[Plugin: WP Super Cache] Deprecated function post_permalink() --> Replace with get_permalink()"

$
0
0

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 using WP_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

https://wordpress.org/plugins/wp-super-cache/


Viewing all articles
Browse latest Browse all 3480

Trending Articles