WP 2.6 saved revisions and GeoPress incompatibility?
The new WordPress 2.6 saved revisions function is messing up my GeoPress maps by linking to every saved revision. IS there a fix to this problem?
4
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?ajturner will most likely correct me if I'm wrong....
I've modified the plugin on my blog to only show posts that are published. To do this you'll need to hardcode the following line into geopress.php under the get_location_posts function. I added it to line 236.
$sql .= " AND $wpdb->posts.post_status = 'publish'";
Also, you will want to add this code under the get_locations function as well... I added it to line 262
As far as I know there is no way to fix this through the GeoPress settings under wp-admin.
hope that helps!
I’m confident
1 person says
this answers the question
-
Inappropriate?I haven't yet upgraded & tested with WP2.6 yet.
Sounds like Johnstonian's solution should work, though will add and test to check before pushing out.
I’m thankful
-
Inappropriate?I've tried it and it seems to work! Brilliant. Thanks so much for your help. Revisions are proving to be difficult and have unintended consequences.
I’m thankful
-
Inappropriate?I fixed this problem by installing a plugin called 'disable revisions and autosave' and another one called 'remove revisions' that cleaned up all the revision versions from the database. Now the map only shows the final posts.
I’m confident
-
Inappropriate?When I first had this problem and started looking for a solution I did not find a plugin that removed all revisions, so while I disabled revisions, which stopped new ones being created, the already existing ones were not removed.
I believe Johnstonian's solution is better. It is more elegant and has the added benefit of solving another problem I had. GeoPress would map future scheduled posts, so I had to write and schedule them, then edit them once live to add the geodata. If I added the geodata then scheduled them, the post would be mapped immediately but the URL was not live so it created an error.
This solution stops scheduled posts being mapped until they go live, which is brilliant!
I’m happy
Loading Profile...




EMPLOYEE
