Plugin Directory

Changeset 394358


Ignore:
Timestamp:
06/07/2011 08:20:46 PM (15 years ago)
Author:
ramon fincken
Message:

Bugfix

Location:
antispam-for-all-fields
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • antispam-for-all-fields/trunk/antispam-for-all-fields.php

    r393326 r394358  
    55 Description: Class and functions
    66 Author: Ramon Fincken
    7  Version: 0.7.1
     7 Version: 0.7.5
    88 Author URI: http://www.mijnpress.nl
    99 */
     
    1616}
    1717
    18 define('PLUGIN_ANTISPAM_FOR_ALL_FIELDS_VERSION', '0.7.1');
     18define('PLUGIN_ANTISPAM_FOR_ALL_FIELDS_VERSION', '0.7.5');
    1919
    2020if(!class_exists('antispam_for_all_fields_core'))
  • antispam-for-all-fields/trunk/mijnpress_plugin_framework.php

    r393171 r394358  
    4646 *
    4747 * 1.3.3
    48  * Added: Plugin support url
     48 * Added: Plugin support url
     49 *
     50 * 1.4
     51 * Changed: is_admin as this gives problems on multisite installs
    4952 * ------------------------------------------------------------------
    5053 *
     
    5962    var $showcredits = true;
    6063    var $showcredits_fordevelopers = true;
    61     var $all_plugins = array('Admin renamer extended','Find replace','Simple add pages or posts','Force apply terms and conditions','GTmetrix website performance','Antispam for all fields','Mass Delete Tags','Auto Prune Posts','Warm cache','See attachments','Automatic Comment Scheduler','Register plus redux export users','Subscribe2 widget');
     64    var $all_plugins = array('Admin renamer extended','Find replace','Simple add pages or posts','Force apply terms and conditions','GTmetrix website performance','Antispam for all fields','Mass Delete Tags','Auto Prune Posts','Warm cache','See attachments','Automatic Comment Scheduler','Register plus redux export users','Subscribe2 widget','Define Constants');
    6265   
    6366    /**
     
    6568     * @author     Ramon Fincken
    6669     */
    67     function addPluginSubMenu($title,$function, $file, $capability = 10, $where = "plugins.php") {   
    68         add_submenu_page($where, $title, $title, $capability, $file, $function);
     70    function addPluginSubMenu($title,$function, $file, $capability = 10, $where = "plugins.php") {
     71        add_submenu_page($where, $title, $title, $capability, $file, $function);
    6972    }
    7073
     
    8588    }
    8689
     90    /**
     91     * Checks if user is admin or has plugin caps.
     92     */
    8793    function is_admin()
    8894    {
     95        if(is_multisite())
     96        {
     97            // TODO fix this, for now rely on WP roles ( I have tested this 07062011 )
     98            return true;
     99        }       
     100       
    89101        require_once(ABSPATH . WPINC . '/pluggable.php');
    90102        $current_user = wp_get_current_user();
     
    200212If you are a coder, you might like to visit <a href="http://www.ramonfincken.com/tag/wordpress.html">his WordPress blogposts</a>.
    201213<br/><br/><a href="http://pluginsupport.mijnpress.nl">Is this plugin broken? Report it here</a>
    202 <br/><a href="http://donate.ramonfincken.com/">PayPal Donations</a> (even as small as $1,- or &euro;1,- are welcome!.
     214<br/><br/><a href="http://donate.ramonfincken.com/">PayPal Donations</a> (even as small as $1,- or &euro;1,- are welcome!.
    203215           
    204216        </div>
  • antispam-for-all-fields/trunk/readme.txt

    r393326 r394358  
    55Requires at least: 2.0.2
    66Tested up to: 3.1.3
    7 Stable tag: 0.7.1
     7Stable tag: 0.7.5
    88
    99Plugin to reject spam. Port from same author from http://www.phpbbantispam.com
     
    3939
    4040== Changelog ==
     41
     42= 0.7.5 =
     43Bugfix: Framework did not work on multisite, is_admin() problem.<br>If anyone could help me with that ? :)
    4144
    4245= 0.7.1 =
Note: See TracChangeset for help on using the changeset viewer.