fix "bulk replace" issue
This commit is contained in:
parent
77415ef510
commit
47dc2f72d1
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class Post {
|
||||||
$post = $this->post;
|
$post = $this->post;
|
||||||
|
|
||||||
if ( 'trash' === get_post_status( $post ) ) {
|
if ( 'trash' === get_post_status( $post ) ) {
|
||||||
$permalink = \get_post_meta( $post->url, 'activitypub_canonical_url', true );
|
$permalink = \get_post_meta( $post->ID, 'activitypub_canonical_url', true );
|
||||||
} else {
|
} else {
|
||||||
$permalink = \get_permalink( $post );
|
$permalink = \get_permalink( $post );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue