Plugin Directory

Changeset 2251595


Ignore:
Timestamp:
02/27/2020 08:23:06 PM (6 years ago)
Author:
eighty20results
Message:

Update to version 5.8 from GitHub

Location:
e20r-members-list
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • e20r-members-list/tags/5.8/README.txt

    r2230630 r2251595  
    55Tested up to: 5.4
    66Requires PHP: 7.0
    7 Stable tag: 5.7.7
     7Stable tag: 5.8
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl
     
    189189== Changelog ==
    190190
     191== 5.8 ==
     192* BUG FIX: Shipping plugin lacks standard utilities library
     193
    191194== 5.7.6 ==
    192195* BUG FIX: Possibly causing fatal error when running/activated
  • e20r-members-list/tags/5.8/class.e20r-members-list.php

    r2230630 r2251595  
    44Plugin URI: https://wordpress.org/plugins/e20r-members-list
    55Description: Extensible, sortable & bulk action capable members listing + export to CSV tool for Paid Memberships Pro.
    6 Version: 5.7.7
     6Version: 5.8
    77Author: Thomas Sjolshagen @ Eighty / 20 Results by Wicked Strong Chicks, LLC <[email protected]>
    88Author URI: https://eighty20results.com/thomas-sjolshagen/
     
    3333
    3434if ( ! defined( 'E20R_MEMBERSLIST_VER' ) ) {
    35     define( 'E20R_MEMBERSLIST_VER', '5.7.7' );
     35    define( 'E20R_MEMBERSLIST_VER', '5.8' );
    3636}
    3737
     
    4242     */
    4343    class E20R_Members_List {
    44        
     44
    4545        const plugin_slug = 'e20r-members-list';
    46        
     46
    4747        /**
    4848         * Instance of the Member List controller
     
    5151         */
    5252        private static $instance = null;
    53        
     53
    5454        /**
    5555         * E20R_Members_List constructor.
     
    5757        private function __construct() {
    5858        }
    59        
     59
    6060        /**
    6161         * Get or instantiate and get the current class
     
    6464         */
    6565        public static function get_instance() {
    66            
     66
    6767            if ( is_null( self::$instance ) ) {
    6868                self::$instance = new self;
    6969            }
    70            
     70
    7171            return self::$instance;
    7272        }
    73        
     73
    7474        /**
    7575         * Class auto-loader for the Enhanced Members List plugin
     
    8181         */
    8282        public static function autoLoader( $class_name ) {
    83            
     83
    8484            if ( false === stripos( $class_name, 'e20r' ) ) {
    8585                return;
    8686            }
    87            
     87
    8888            $parts     = explode( '\\', $class_name );
    8989            $c_name    = strtolower( preg_replace( '/_/', '-', $parts[ ( count( $parts ) - 1 ) ] ) );
    9090            $base_path = plugin_dir_path( __FILE__ ) . 'classes/';
    91            
     91
    9292            if ( file_exists( plugin_dir_path( __FILE__ ) . 'class/' ) ) {
    9393                $base_path = plugin_dir_path( __FILE__ ) . 'class/';
    9494            }
    95            
     95
    9696            $filename = "class.{$c_name}.php";
    9797            $iterator = new \RecursiveDirectoryIterator( $base_path, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveIteratorIterator::SELF_FIRST | \RecursiveIteratorIterator::CATCH_GET_CHILD | \RecursiveDirectoryIterator::FOLLOW_SYMLINKS );
    98            
     98
    9999            /**
    100100             * Loate class member files, recursively
    101101             */
    102102            $filter = new \RecursiveCallbackFilterIterator( $iterator, function ( $current, $key, $iterator ) use ( $filename ) {
    103                
     103
    104104                $file_name = $current->getFilename();
    105                
     105
    106106                // Skip hidden files and directories.
    107107                if ( $file_name[0] == '.' || $file_name == '..' ) {
    108108                    return false;
    109109                }
    110                
     110
    111111                if ( $current->isDir() ) {
    112112                    // Only recurse into intended subdirectories.
     
    117117                }
    118118            } );
    119            
     119
    120120            foreach ( new \ RecursiveIteratorIterator( $iterator ) as $f_filename => $f_file ) {
    121                
     121
    122122                $class_path = $f_file->getPath() . "/" . $f_file->getFilename();
    123                
     123
    124124                if ( $f_file->isFile() && false !== strpos( $class_path, $filename ) ) {
    125125                    require_once( $class_path );
     
    127127            }
    128128        }
    129        
     129
    130130        /**
    131131         * Initialize the Enhanced Members List functionality
     
    137137            add_action( 'init', array( $this, 'loadTextDomain' ), 1 );
    138138        }
    139        
     139
    140140        /**
    141141         * Load translation (I18N) file(s) if applicable
     
    144144         */
    145145        public function loadTextDomain() {
    146            
     146
    147147            $locale = apply_filters( "plugin_locale", get_locale(), self::plugin_slug );
    148148            $mo_file = self::plugin_slug . "-{$locale}.mo";
    149            
     149
    150150            // Path(s) to local and global (WP)
    151151            $mo_file_local  = dirname( __FILE__ ) . "/languages/{$mo_file}";
    152152            $mo_file_global = WP_LANG_DIR . "/e20r-members-list/{$mo_file}";
    153            
     153
    154154            // Start with the global file
    155155            if ( file_exists( $mo_file_global ) ) {
    156                
     156
    157157                load_textdomain(
    158158                    E20R_Members_List::plugin_slug,
     
    160160                );
    161161            }
    162            
     162
    163163            // Load from local next (if applicable)
    164164            load_textdomain(
     
    166166                $mo_file_local
    167167            );
    168            
     168
    169169            // Load with plugin_textdomain or GlotPress
    170170            load_plugin_textdomain(
     
    175175        }
    176176    }
    177    
     177
    178178}
    179179try {
  • e20r-members-list/trunk/README.txt

    r2230630 r2251595  
    55Tested up to: 5.4
    66Requires PHP: 7.0
    7 Stable tag: 5.7.7
     7Stable tag: 5.8
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl
     
    189189== Changelog ==
    190190
     191== 5.8 ==
     192* BUG FIX: Shipping plugin lacks standard utilities library
     193
    191194== 5.7.6 ==
    192195* BUG FIX: Possibly causing fatal error when running/activated
  • e20r-members-list/trunk/class.e20r-members-list.php

    r2230630 r2251595  
    44Plugin URI: https://wordpress.org/plugins/e20r-members-list
    55Description: Extensible, sortable & bulk action capable members listing + export to CSV tool for Paid Memberships Pro.
    6 Version: 5.7.7
     6Version: 5.8
    77Author: Thomas Sjolshagen @ Eighty / 20 Results by Wicked Strong Chicks, LLC <[email protected]>
    88Author URI: https://eighty20results.com/thomas-sjolshagen/
     
    3333
    3434if ( ! defined( 'E20R_MEMBERSLIST_VER' ) ) {
    35     define( 'E20R_MEMBERSLIST_VER', '5.7.7' );
     35    define( 'E20R_MEMBERSLIST_VER', '5.8' );
    3636}
    3737
     
    4242     */
    4343    class E20R_Members_List {
    44        
     44
    4545        const plugin_slug = 'e20r-members-list';
    46        
     46
    4747        /**
    4848         * Instance of the Member List controller
     
    5151         */
    5252        private static $instance = null;
    53        
     53
    5454        /**
    5555         * E20R_Members_List constructor.
     
    5757        private function __construct() {
    5858        }
    59        
     59
    6060        /**
    6161         * Get or instantiate and get the current class
     
    6464         */
    6565        public static function get_instance() {
    66            
     66
    6767            if ( is_null( self::$instance ) ) {
    6868                self::$instance = new self;
    6969            }
    70            
     70
    7171            return self::$instance;
    7272        }
    73        
     73
    7474        /**
    7575         * Class auto-loader for the Enhanced Members List plugin
     
    8181         */
    8282        public static function autoLoader( $class_name ) {
    83            
     83
    8484            if ( false === stripos( $class_name, 'e20r' ) ) {
    8585                return;
    8686            }
    87            
     87
    8888            $parts     = explode( '\\', $class_name );
    8989            $c_name    = strtolower( preg_replace( '/_/', '-', $parts[ ( count( $parts ) - 1 ) ] ) );
    9090            $base_path = plugin_dir_path( __FILE__ ) . 'classes/';
    91            
     91
    9292            if ( file_exists( plugin_dir_path( __FILE__ ) . 'class/' ) ) {
    9393                $base_path = plugin_dir_path( __FILE__ ) . 'class/';
    9494            }
    95            
     95
    9696            $filename = "class.{$c_name}.php";
    9797            $iterator = new \RecursiveDirectoryIterator( $base_path, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveIteratorIterator::SELF_FIRST | \RecursiveIteratorIterator::CATCH_GET_CHILD | \RecursiveDirectoryIterator::FOLLOW_SYMLINKS );
    98            
     98
    9999            /**
    100100             * Loate class member files, recursively
    101101             */
    102102            $filter = new \RecursiveCallbackFilterIterator( $iterator, function ( $current, $key, $iterator ) use ( $filename ) {
    103                
     103
    104104                $file_name = $current->getFilename();
    105                
     105
    106106                // Skip hidden files and directories.
    107107                if ( $file_name[0] == '.' || $file_name == '..' ) {
    108108                    return false;
    109109                }
    110                
     110
    111111                if ( $current->isDir() ) {
    112112                    // Only recurse into intended subdirectories.
     
    117117                }
    118118            } );
    119            
     119
    120120            foreach ( new \ RecursiveIteratorIterator( $iterator ) as $f_filename => $f_file ) {
    121                
     121
    122122                $class_path = $f_file->getPath() . "/" . $f_file->getFilename();
    123                
     123
    124124                if ( $f_file->isFile() && false !== strpos( $class_path, $filename ) ) {
    125125                    require_once( $class_path );
     
    127127            }
    128128        }
    129        
     129
    130130        /**
    131131         * Initialize the Enhanced Members List functionality
     
    137137            add_action( 'init', array( $this, 'loadTextDomain' ), 1 );
    138138        }
    139        
     139
    140140        /**
    141141         * Load translation (I18N) file(s) if applicable
     
    144144         */
    145145        public function loadTextDomain() {
    146            
     146
    147147            $locale = apply_filters( "plugin_locale", get_locale(), self::plugin_slug );
    148148            $mo_file = self::plugin_slug . "-{$locale}.mo";
    149            
     149
    150150            // Path(s) to local and global (WP)
    151151            $mo_file_local  = dirname( __FILE__ ) . "/languages/{$mo_file}";
    152152            $mo_file_global = WP_LANG_DIR . "/e20r-members-list/{$mo_file}";
    153            
     153
    154154            // Start with the global file
    155155            if ( file_exists( $mo_file_global ) ) {
    156                
     156
    157157                load_textdomain(
    158158                    E20R_Members_List::plugin_slug,
     
    160160                );
    161161            }
    162            
     162
    163163            // Load from local next (if applicable)
    164164            load_textdomain(
     
    166166                $mo_file_local
    167167            );
    168            
     168
    169169            // Load with plugin_textdomain or GlotPress
    170170            load_plugin_textdomain(
     
    175175        }
    176176    }
    177    
     177
    178178}
    179179try {
Note: See TracChangeset for help on using the changeset viewer.