Plugin Directory

Changeset 877478


Ignore:
Timestamp:
03/18/2014 09:18:18 PM (12 years ago)
Author:
fabifott
Message:

0.3.0.05

  • Reverted 'direct access block' since this is not working for multi-site in some cases
Location:
wp-filebase
Files:
287 added
5 edited

Legend:

Unmodified
Added
Removed
  • wp-filebase/trunk/editor_plugin.php

    r877131 r877478  
    2525require_once(dirname(dirname(dirname(dirname(__FILE__)))).'/wp-load.php');
    2626
     27/*
     28require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    2729// check if WP-Filebase is active
    28 if(!in_array(basename(untrailingslashit(dirname(__FILE__))).'/wp-filebase.php',get_option('active_plugins')))
    29     wp_die('WP-Filebase not active.<!-- FATAL ERROR: WP-Filebase DISABLED -->');
    30 
     30$wpfb_rpath = basename(untrailingslashit(dirname(__FILE__))).'/wp-filebase.php';
     31if(!is_plugin_active($wpfb_rpath))
     32    wp_die("WP-Filebase not active. ($wpfb_rpath not in [".implode(',',get_option('active_plugins'))."]) <!-- FATAL ERROR: WP-Filebase DISABLED -->");
     33*/
    3134
    3235require_once(ABSPATH . 'wp-admin/includes/admin.php');
  • wp-filebase/trunk/readme.txt

    r877131 r877478  
    55Requires at least: 3.1
    66Tested up to: 3.8.1
    7 Stable tag: 0.3.0.04
     7Stable tag: 0.3.0.05
    88
    99Adds a powerful download manager including file categories, downloads counter, widgets, sorted file lists and more to your WordPress blog.
     
    117117
    118118== Changelog ==
     119
     120= 0.3.0.05 =
     121* Reverted 'direct access block' since this is not working for multi-site in some cases
    119122
    120123= 0.3.0.04 =
  • wp-filebase/trunk/wp-filebase.php

    r877131 r877478  
    55Description: Adds a powerful downloads manager supporting file categories, download counter, widgets, sorted file lists and more to your WordPress blog.
    66Author: Fabian Schlieper
    7 Version: 0.3.0.04
     7Version: 0.3.0.05
    88Author URI: http://wpfilebase.com/
    99*/
     
    1212{
    1313    define('WPFB', 'wpfb');
    14     define('WPFB_VERSION', '0.3.0.04');
     14    define('WPFB_VERSION', '0.3.0.05');
    1515    define('WPFB_PLUGIN_ROOT', str_replace('\\','/',dirname(__FILE__)).'/');
    1616    if(!defined('ABSPATH')) {
  • wp-filebase/trunk/wp-filebase_css.php

    r877131 r877478  
    1414if(empty($_GET['rp'])) // if rel path not set, need to load whole WP stuff to get to path to custom CSS!
    1515    require_once(dirname(__FILE__).'/../../../wp-load.php');
    16 
    17 if(!in_array(basename(untrailingslashit(dirname(__FILE__))).'/wp-filebase.php',get_option('active_plugins')))
    18     die('/*disabled*/');
    1916
    2017require_once(dirname(__FILE__).'/wp-filebase.php'); // this only loads some wp-filebase stuff, NOT WP!
  • wp-filebase/trunk/wpfb-load.php

    r877131 r877478  
    2929error_reporting(0);
    3030
     31// check if WP-Filebase is active
     32/*
     33require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     34$wpfb_rpath = basename(untrailingslashit(dirname(__FILE__))).'/wp-filebase.php';
     35if(!is_plugin_active($wpfb_rpath))
     36    wp_die("WP-Filebase ($wpfb_rpath) not active.<!-- FATAL ERROR: WP-Filebase DISABLED -->");
     37 *
     38 */
     39
     40
    3141if(defined('WP_ADMIN') && WP_ADMIN) {
    3242    require_once(ABSPATH.'wp-admin/admin.php');
     
    4151
    4252
    43 if(SUPPRESS_LOADING_OUTPUT)
    44     @ob_end_clean();
     53if(SUPPRESS_LOADING_OUTPUT) {
     54    while(@ob_end_clean()){} // destroy all ob buffers
     55}
    4556
    4657
     
    6273    add_filter('wp_die_ajax_handler', create_function('$v','return "wpfb_ajax_die";'));
    6374}
    64 
    65 if(!in_array(basename(untrailingslashit(dirname(__FILE__))).'/wp-filebase.php',get_option('active_plugins')))
    66     wp_die('WP-Filebase not active.<!-- FATAL ERROR: WP-Filebase DISABLED -->');
Note: See TracChangeset for help on using the changeset viewer.