You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in class-purger.php the code $url = str_replace( '%postname%', $url[1], $url[0] );
does not work for pages because for pages get_sample_permalink($post_id) returns array where first value contains %pagename% and not %postname%:
in class-purger.php the code
$url = str_replace( '%postname%', $url[1], $url[0] );
does not work for pages because for pages
get_sample_permalink($post_id)
returns array where first value contains%pagename%
and not%postname%
:One solution could perhaps be something like this that I spotted in WordPress core:
$display_link = str_replace( array( '%pagename%', '%postname%' ), ... );
The text was updated successfully, but these errors were encountered: