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
I found an issue, where the post content & excerpt are not copy over when i duplicate the post.
After debugged the code and notice that, this is because of the strict comparison issue. intval( get_option( 'duplicate_post_copycontent' ) ) === '1'
As you can see above code, since it's using a strict comparison it should be int instead of string.
File : duplicate-post-admin.php
There are a few of the same issue related to that.
Thank you.
The text was updated successfully, but these errors were encountered:
This bug was exposed by PHP 8.1.
The `Check_Changes_Handler::check_changes_action_handler()` expects a global `$wp_version` variable to be available, but this variable was not created for the test, leading to a "Deprecated: version_compare(): Passing null to parameter #1 ($version1) of type string is deprecated" deprecation notices in PHP 8.1.
Fixed by improving the test.
HI
I found an issue, where the post content & excerpt are not copy over when i duplicate the post.
After debugged the code and notice that, this is because of the strict comparison issue.
intval( get_option( 'duplicate_post_copycontent' ) ) === '1'
As you can see above code, since it's using a strict comparison it should be int instead of string.
File : duplicate-post-admin.php
There are a few of the same issue related to that.
Thank you.
The text was updated successfully, but these errors were encountered: