Warning: include(/var/www/web0/html/my-guide.org/wp-content/themes/adspress/adsense_blog.php): failed to open stream: No such file or directory in /var/www/web0/html/my-guide.org/wp-content/themes/adspress/archive.php on line 4 Warning: include(): Failed opening '/var/www/web0/html/my-guide.org/wp-content/themes/adspress/adsense_blog.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/web0/html/my-guide.org/wp-content/themes/adspress/archive.php on line 4

How to remove post revisions?

February 16th, 2009 Comments Off on How to remove post revisions? Posted in Wordpress MU

We will show you today how to remove existing post revisions from all blogs. This is a very simple about 20-LOC-script (LOC = Lines Of Code) ­čśë

How should it work?

  • Create a menu entry
  • Check if the user has enough rights to run this script
  • Get a list of all blogs
  • Go to each post table and delete posts marked as “revision”

Create a menu entry

First you have to create a file named “mg_clean_revisions.php”. Open the file to put some code into it. At first we need a hook which will be called when you access the admin menu. This hook should run a function which creates a menu entry. More »

My-Guide Interessante Guides: BodybuildingEinb├╝rgerungst..SparenMy-GuideYou must be jok..