Plugin: Never Moderate Admin or Post Author

This plugin has been deprecated! It is no longer necessary as its functionality has been integrated into WordPress. There will not be any continued support for it. Comments to this post are also now closed.

When I released the plugin, I also simultaneously made a bug report and patch for the WP core, which was quickly accepted and applied.

Reported as a bug in trac ticket #1262.
Fixed in WordPress in changeset #2556.

Name:
Never Moderate Admin or Post Author
Author:
Scott Reilly
Version:
0.9
Last updated:
25 March 2005
Download:
Description:

Never moderate or mark as spam comments made by the site admin, the post’s author, or optionally, any registered user above a specified user level, regardless of the apparent spamminess of the comment.

Notes:

You can customize the $min_user_level argument. All users with a user level greater than or equal to the value set for this argument will NEVER be moderated. By default, this value is ’10’, which means that only the site admin would never be moderated. If you set this to ‘0’, then everyone who has registered to your site will be able to make comments without being moderated/marked as spam. Setting it to ‘1’ would mean only those with the ability to write posts would be able to comment without moderation. Obviously, you can also define a value anywhere else in the range 0-10.

Installation:
  1. Download the file never-moderate-admin.zip and unzip it into your /wp-content/plugins/ directory.
    -OR-
    Copy and paste the the code ( never-moderate-admin.phps ) into a file called never-moderate-admin.php, and put that file into your /wp-content/plugins/ directory. Please ensure you do not introduce any spaces or other characters before the <?php or after the ?>
  2. Optional: Change the value of the $min_user_level argument (see below).
  3. Activate the plugin from your WordPress admin ‘Plugins’ page.
Functions:

function c2c_never_moderate_admin( $approved, $min_user_level='10' )

  • $approved : Text to be scanned for shortcut links to posts
  • $min_user_level : optional; the minimum user level which should NEVER be moderated; defaulted to ’10’, which basically says that only the site admin should never be administrated (mind you, this is in addition to the post author, who also is never moderated)
Tips & Examples:

N/A

Release Log:
  • 25 Mar 2005 : v0.9 — Released to the public
Copyright & Disclaimer:

Copyright (c) 2005 by Scott Reilly (aka coffee2code)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Acknowledgements:
N/A

10 thoughts on “Plugin: Never Moderate Admin or Post Author

  1. I’m trying the plugin, but can’t get it to work. Are there any known conflicts with the following plugins that I also use?
    Comment Plugger
    Search Hilite
    Most Commented
    Recent Comments
    Recent Posts
    SmartyPants-PHP
    Wp Advanced Tracking

  2. jon kvanvig: Are you logged into WordPress at the time you post your comment? The plugin relies on you being logged in when you make your comment. If you log out and/or comment from a machine fom which you never logged in then the plugin won’t recognize you as the admin and/or post author.

    Oh, also, are you running WP 1.5?

  3. I tried your plugin for pre-approval of my own comments but no luck I’m afraid. I have activated it and have set the level to 1 but nothing happens; I still have to approve my own comments.

  4. Odd, it works almost perfectly for me. The only exception is that if I set the mun_user-Level to 0 instead of ten only users with level 1 and higher are allowed to post without moderation. Looking at the, quite cimple really, code I can’t figure out why this would be the case. I created a new account and it can not comment without moderation but if I promote it to user level one it can. I have “User must be registered and logged in to comment” turned off and “An administrator must approve the comment (regardless of any matches below)” turned on WP1.5 Any thoughts?

Comments are closed.