The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 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
195 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
57 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
28 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 ...
0
votes
1answer
266 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?
0
votes
0answers
15 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
26 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
37 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 ...
0
votes
0answers
37 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
71 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
26 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
36 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
20 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
52 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
77 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 ...
-1
votes
1answer
506 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
293 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
72 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
78 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
76 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
38 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
90 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
130 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
85 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
95 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
746 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
203 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
114 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
99 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 ...
3
votes
1answer
661 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
352 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
203 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
348 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
120 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
468 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
4
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
741 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
182 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?
2
votes
1answer
1k views

Display revision if post status is pending

I'm trying to display the latest post revision if the page is "pending", by default the page displays a 404 if it is pending. But I want it to show the latest revision until the page is updated. The ...
3
votes
1answer
160 views

Define maximum number of revisions per post type?

How can I define the maximum number of revisions on a per-post type basis? For example posts have 3 max revisions where as pages have a max of 10.