The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 views

Are featured images registered in the revisions?

Are the changes to featured images (add/change/delete) registered in the revisions? Otherwise there is a way to accomplish this?
0
votes
0answers
44 views

Why does uploading a media file a second time restore older version?

Sometimes I wish to update a media file, but when I Delete Permanently from the library, and then upload the same file a second time, instead of getting the revised version, I instead recover the ...
0
votes
0answers
22 views

Users can only save their draft once before saving for revision

I use the Members Plugin and Custom Post Types. I created a role and want them to contribute posts (within this Custom Post Type musician) but don't publish them. Additionally I want to give the ...
0
votes
0answers
26 views

custom post types preview from post.php and new-post.php

I use wordpress 4.0 and I'm building a site with 2 custom post types: ptf and addendum. I modified ptf post type interface (post.php and new-post.php) and in this interface I added 2 addendum post ...
0
votes
1answer
34 views

How to Determine a Post's Last Edited Date?

I'm writing a little extract script to do a DB pull. I've been asked to get all restaurant posts (custom post type) that are among the 1000 top hit, OR have been added or edited in the last 3 years. ...
1
vote
1answer
40 views

Are posts updated or built from revisions + autosaves?

When editing a post in the admin I see records being added to the database to document my changes (here is part of the hooks I'm logging): ... http://local.dev/151-autosave-v1/ clean_post_cache ...
0
votes
0answers
190 views

Notice: Constant WP_POST_REVISIONS already defined

I made a local clone of a website that's running LIVE in order to safely work offline for a while. On every page of the local version I get a HUGE warning which says Notice: Constant ...
0
votes
1answer
21 views

What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?

I have the following doubt related to the posts table of the WordPress database. I see that when I create a new post in this table are automatically created 2 new rows. 32 1 2014-08-16 15:07:22 ...
0
votes
0answers
51 views

High CPU usage after running WP-Optimize for the first time

I installed WP-Optimize and ran it one time. It found and removed over 1500 post revisions and some spam comments. Before this, 4 CPUs were very idle, below 10%. After running the scan, all 4 CPUs ...
0
votes
0answers
26 views

How is revision works internally?

I'm curious about wordpress revision feature. I want to implement this revision feature in my own php app. How is logic behind this revision feature? Thanks.
4
votes
1answer
279 views

How to hook in and modify the new revisions UI (3.6+)?

Let's say I want to add some post_meta into the "new" revisions UI. I'm saving some meta on revisions only, and want to display it on this screen. Normally, I'd open up wp-admin/revisions.php look ...
0
votes
0answers
107 views

Revision History for Entire Wordpress Site

I am learning wordpress and am working on a wordpress site where I would like to have a revision history for every single change I make. I understand you can see the revision history for pages and ...
0
votes
0answers
51 views

Send ALL new posts and edits for moderation before publish

I want to have ALL new posts / edits moderated. I.E. When any user from a specific role (can be WP role such as contributer, or a custom created role) creates a new post, or edits an existing one it ...
3
votes
1answer
1k views

Enable revisions for custom post type

I have created a custom Post Type, and Registered it. Can someone help me how to enable revisions to Custom Post type?
1
vote
0answers
44 views

Front end URL to restore a post/page

I was wondering if a url exists where one can click on a link and would automatically populate in the edit post of the most current revision. ...
0
votes
0answers
36 views

How does Wordpress know if a revision can be restored?

I'm looking at the wp-admin/revisions.php and I'm confused about this block of code: <# if ( 'to' === data.type && data.attributes.restoreUrl ) { #> <input <?php if ( ...
0
votes
0answers
75 views

Restoring this Revision button disabled

I'm fixing the wordy plugin to send posts to editors and when the edits are finished the modified posts are sent back as a revision. But when I go to the revision differences page the button 'Restore ...
1
vote
0answers
60 views

Post author for revision not being set on update/insert

I'm trying to programmatically update a custom-type post with revisions enabled via form, and everything seems to be working fine except the post_author field for the revision is being set to 0 ...
0
votes
2answers
89 views

How to update the 'modified_time' of a post ONLY when content is changed?

For some reasons I show the Last Modified information to my users in the blog. Recently I have to clear up my categories and tags, but these actions will result in the update of 'Last Modified' field ...
1
vote
0answers
30 views

Schedule Page/CPT Revisions

I'm currently working on a wordpress installation that (ab-)uses wordpress Pages with extensive ammounts of custom fields to allow for simple handling of landingpages etc. Our users now asked for a ...
0
votes
0answers
58 views

Compare revisions on pending posts doesn't work for authors and lower

I'm using map meta cap to allow extra permissions (edit/publish/edit_others/read_private/edit_private) if the user and post share a category. Comparing revisions doesn't work beyond the first ...
1
vote
1answer
28 views

Revert multiple posts to an older revision?

Is there a way to revert many/all posts to the closest revision to a particular date, all at once? The specific use case I need it for is to remove all the spammy viagra links from the content on a ...
0
votes
0answers
60 views

Get latest post revision with wp-query

How can I retrieve the latest revision post using wp-query? I am trying to replicate the behaviour as when a user updates a published post and clicks on preview. So far I've tried editing wp-query ...
1
vote
0answers
82 views

Adding a cancel button to edit post screen

I'm actually quite surprised WP hasn't already implemented this. I want to add a Cancel button to the edit post screen which will do some cleanup when pressed. After a little playing while watching my ...
0
votes
1answer
779 views

How to remove in the wordpress database all posts revisions except the last three?

here is the commonly recommended sql command for removing posts revisions and cleaning up the wp database: DELETE a,b,c FROM `wp_posts` a LEFT JOIN `wp_term_relationships` b ON (a.ID = b.object_id) ...
0
votes
2answers
451 views

Safest way to bulk delete post revisions

One of my clients is on a rather large blog in terms of number of posts and traffic. I'm trying to get her database down to a manageable size, and one thing that's bulking up is literally tens of ...
1
vote
2answers
91 views

Max Number of Post Versions Supported

We are running a news site based on WP 3.5.1. Some editors complain that the WYSIWYG editor on the post editing page is not working properly for some posts. The editing buttons are not shown. In some ...
0
votes
1answer
93 views

Public (Non-Admin) Post Edit/Revision History

Does anyone know of a way to provide an edit history for posts in production? That is, when people look at a post, they can see that it was modified and examine a list of changes like is possible with ...
0
votes
1answer
96 views

Saving Taxonomies to Post Revisions

In a custom post type, I first got all the revisions using wp_get_post_revisions(). I looped through, and compared metadata and postdata to see the differences between the two. However, it seems ...
0
votes
1answer
39 views

Building WP Web App: Creating a Feed for post revisions

I'm building a project management web app using WordPress. I want to create a kind of "news feed" on the home page so that everyone can see what the latest posts added/edited were. I need this to ...
0
votes
1answer
114 views

Visual (non-HTML) display of post revisions

So you know when you click "show revisions" on a post and can choose to edit any of the recent drafts? I have a client, non tech-savvy, who is frustrated by how the revision previews display as HTML ...
2
votes
1answer
139 views

New Plugin: Post update pushes a copy as a revision

I've been working alot with editing of posts after they've been published. I know I can hit update on the post to just update it, but I want to have the journey of revisions available for users to ...
3
votes
1answer
29 views

how to enable different number of revisions for different blogs when using WPMU?

for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog ...
2
votes
1answer
93 views

How do I batch create revisions of all posts?

I cleaned up an old-site from pasted tags, manually created lists, etc, and I'd like to keep the old posts as "revisions", so we can easily "compare" with the old posts and retrieve/revert the ...
4
votes
1answer
104 views

Any way to create a revision of a post ONLY with a new button in the Meta Box?

Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
5
votes
3answers
877 views

How to delete post revisions?

I haven't set a limit to the number of revisions, which makes some of my post have more than 20 revisions, so how to delete these revisions? By the way, I am using WPMU and have many blogs, so how to ...
1
vote
1answer
237 views

Get the author of the latest revision

I would like to display the author (username) of the latest revision of a post from inside the loop. I tried get_the_author(), which echoes the username and $post->post_author(), which returns the ...
2
votes
1answer
136 views

Is it wise to delete post revisions and autosaves from database?

I'm just wondering is it wise to delete all post revisions and autosaves from database every once in a while? I mean they take a lot of database space and apparently have no use after the post has ...
0
votes
1answer
106 views

why there are so many posts whoes post_type is revision? will these records waste too much database space?

from the following data we may know there are only 30 records which are meaningful, and there are 92 records of revision post_type which can not be shown on the blog. so will these records waste too ...
4
votes
1answer
894 views

Post revisions don't save or show up only for custom post types

My website makes use of a number of custom post types as well as the traditional "posts" and "pages" types. For all "posts" and "pages" revisions show up as they should, with a history of edits ...
0
votes
1answer
423 views

Saving Revision of post meta key/value on each update_post_meta event

I have some code that updates a meta-key's value by incrementing... $post_id = $wpdb->get_var( $query ); $meta = get_post_meta( $post_id, 'stuff', TRUE ); $meta++; ...
1
vote
1answer
227 views

Will removing revisions positively impact database performance?

As per this question over on DBA.SE, I'm having quite a few issues with database optimisation. I'm just wondering if removing/disabling revisions will positively impact my database usage? We don't ...
0
votes
2answers
406 views

How to reduce the number of revisions?

I some posts I have a lot of revisions, and I want only 2 revisions for each post. I found this plugin http://wordpress.org/extend/plugins/revision-control/ that able to set that in the future WP will ...
5
votes
2answers
135 views

Per Post Type Revision Numbers

In wp-config.php you're able to change how WordPress deals with post revisions. Specifically you're able to turn them off or specify a max number of revisions. I'd like to be able to set a max number ...
4
votes
1answer
50 views

A Blog's changelog

I'm looking for a plugin that would keep track of a all the structural "changes" journal. For instance, the date+time of each wordpress upgrade, or plugin install/update/activation/desactivation or ...
2
votes
1answer
571 views

wp-types - How to allow custom fields to be saved in the revision

I am using this plugin: http://wordpress.org/extend/plugins/types/ When I use the revision, it does not saves the custom fields data. Is there anyway to do it? Thanks
6
votes
4answers
2k views

How to properly turn off REVISIONS and AUTOSAVE for whole site and optionally for a custom post type only

Is there a hook/function combination that can be added to my theme's functions.php to properly disable REVISIONS and AUTOSAVE for the entire wordpress installation? What about if just for a certain ...
0
votes
2answers
842 views

“Revision” records in wp_posts have original post type instead of “revision”

After seeing some weird hits in my Relevanssi search results I found the following: http://wordpress.org/support/topic/searching-with-relevanssi-shows-all-revisions I ran the following on my ...
1
vote
1answer
192 views

WordPress as a web app - always auto-save post and meta data

Is is possible to make WordPress auto-save revisiona more often and have the auto-save version always be the most recent version - Like the way google docs works. This would mean the update button is ...
0
votes
2answers
1k views

Disable revisions for a specific post type only?

Any way to disable post revision on specific post types only?