Hello ??
There is a fatal error triggered on edit post screen with PHP8.0 :
PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method PNV::delete_post() cannot be called statically
I managed to fix it by replacing line 151 : public function delete_post( $post_id ) {
by :public static function delete_post( $post_id ) {
This plugin is looking the same that required for my new website I need some suggestion about its updates because its looking pretty old please guide me.
]]>Added filters to all theme authors to set the verbiage Prepended to new duplicates and/or copies.
New Pull Request available at https://github.com/lpointet/prepare-new-version/pull/9
New code from line 211 – 219:
// We may prepend some string to the post title
switch( $action ) {
case PNV_DUPLICATE_ACTION:
$destination['post_title'] = trim(apply_filters('pnv_duplicate_prepend_title',PNV_STR_DUPLICATE_PREPEND_TITLE).' '. $destination['post_title']);
break;
case PNV_COPY_ACTION:
$destination['post_title'] = trim(apply_filters('pnv_copy_prepend_title',PNV_STR_COPY_PREPEND_TITLE) .' ' . $destination['post_title']);
break;
}
]]>
Hi,
when an article is copied (prepare new version) and then saved as new (create as new) the article can not automatically be posted to social media like Facebook via the Jetpack Publicize function.
This is due to the fact that the Jetpack Publicize function only allows to publish an article ONCE. So obviously Jetpack does not recognize this article as new.
It would be helpful to reset the article to a “new” article state when “create as new” is selected.
Can this be done?
Best regards,
Alex
Hey,
Just wanted to suggest like an option to ajax delete revision in the pending revisions box.
Unless I am missing something one has to click that revision, then go in there to move it to the trash, then it takes you to the pages list that says it has been moved to the trash.. then you would have to go back to the page you just updated from that revision.
An option to delete revisions from the pending revisions box would make the process much, much quicker.
Make sense, Thoughts champ?
Thanks again for this awesome plugin!
]]>Hi,
Your FAQ (last Q) suggests a way to delete old pending versions. I must be doing something wrong, because none of my pending version views show a “Move to Trash” link.
Still a great plugin. Love it.
Thanks.
]]>Hi,
I like this plugin, but it when I use prepare a new version on my static front page, the duplicate won’t load the front_page.php template.
Instead it loads the default template without any text.
My front_page.php template uses several custom fields, which all disappear in the duplicate.
On other pages using different templates, the plug-in works fine.
Any ideas? Thanks!
]]>I love the plugin and am trying to build a workflow around it.
I would love it if permissions were built into this plugin to allow Contributors or Editors to Prepare New Versions but only Admins or Editors could Update Original
]]>Seems to have a minor bug as I get the welcome pointer each time I open the plugins panel.
]]>Would be nice to have the possibility to tag versions – we may use these tags to publish a group of updated posts.
]]>