Changeset 2251595
- Timestamp:
- 02/27/2020 08:23:06 PM (6 years ago)
- Location:
- e20r-members-list
- Files:
-
- 4 edited
- 1 copied
-
tags/5.8 (copied) (copied from e20r-members-list/trunk)
-
tags/5.8/README.txt (modified) (2 diffs)
-
tags/5.8/class.e20r-members-list.php (modified) (14 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/class.e20r-members-list.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
e20r-members-list/tags/5.8/README.txt
r2230630 r2251595 5 5 Tested up to: 5.4 6 6 Requires PHP: 7.0 7 Stable tag: 5. 7.77 Stable tag: 5.8 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl … … 189 189 == Changelog == 190 190 191 == 5.8 == 192 * BUG FIX: Shipping plugin lacks standard utilities library 193 191 194 == 5.7.6 == 192 195 * BUG FIX: Possibly causing fatal error when running/activated -
e20r-members-list/tags/5.8/class.e20r-members-list.php
r2230630 r2251595 4 4 Plugin URI: https://wordpress.org/plugins/e20r-members-list 5 5 Description: Extensible, sortable & bulk action capable members listing + export to CSV tool for Paid Memberships Pro. 6 Version: 5. 7.76 Version: 5.8 7 7 Author: Thomas Sjolshagen @ Eighty / 20 Results by Wicked Strong Chicks, LLC <[email protected]> 8 8 Author URI: https://eighty20results.com/thomas-sjolshagen/ … … 33 33 34 34 if ( ! defined( 'E20R_MEMBERSLIST_VER' ) ) { 35 define( 'E20R_MEMBERSLIST_VER', '5. 7.7' );35 define( 'E20R_MEMBERSLIST_VER', '5.8' ); 36 36 } 37 37 … … 42 42 */ 43 43 class E20R_Members_List { 44 44 45 45 const plugin_slug = 'e20r-members-list'; 46 46 47 47 /** 48 48 * Instance of the Member List controller … … 51 51 */ 52 52 private static $instance = null; 53 53 54 54 /** 55 55 * E20R_Members_List constructor. … … 57 57 private function __construct() { 58 58 } 59 59 60 60 /** 61 61 * Get or instantiate and get the current class … … 64 64 */ 65 65 public static function get_instance() { 66 66 67 67 if ( is_null( self::$instance ) ) { 68 68 self::$instance = new self; 69 69 } 70 70 71 71 return self::$instance; 72 72 } 73 73 74 74 /** 75 75 * Class auto-loader for the Enhanced Members List plugin … … 81 81 */ 82 82 public static function autoLoader( $class_name ) { 83 83 84 84 if ( false === stripos( $class_name, 'e20r' ) ) { 85 85 return; 86 86 } 87 87 88 88 $parts = explode( '\\', $class_name ); 89 89 $c_name = strtolower( preg_replace( '/_/', '-', $parts[ ( count( $parts ) - 1 ) ] ) ); 90 90 $base_path = plugin_dir_path( __FILE__ ) . 'classes/'; 91 91 92 92 if ( file_exists( plugin_dir_path( __FILE__ ) . 'class/' ) ) { 93 93 $base_path = plugin_dir_path( __FILE__ ) . 'class/'; 94 94 } 95 95 96 96 $filename = "class.{$c_name}.php"; 97 97 $iterator = new \RecursiveDirectoryIterator( $base_path, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveIteratorIterator::SELF_FIRST | \RecursiveIteratorIterator::CATCH_GET_CHILD | \RecursiveDirectoryIterator::FOLLOW_SYMLINKS ); 98 98 99 99 /** 100 100 * Loate class member files, recursively 101 101 */ 102 102 $filter = new \RecursiveCallbackFilterIterator( $iterator, function ( $current, $key, $iterator ) use ( $filename ) { 103 103 104 104 $file_name = $current->getFilename(); 105 105 106 106 // Skip hidden files and directories. 107 107 if ( $file_name[0] == '.' || $file_name == '..' ) { 108 108 return false; 109 109 } 110 110 111 111 if ( $current->isDir() ) { 112 112 // Only recurse into intended subdirectories. … … 117 117 } 118 118 } ); 119 119 120 120 foreach ( new \ RecursiveIteratorIterator( $iterator ) as $f_filename => $f_file ) { 121 121 122 122 $class_path = $f_file->getPath() . "/" . $f_file->getFilename(); 123 123 124 124 if ( $f_file->isFile() && false !== strpos( $class_path, $filename ) ) { 125 125 require_once( $class_path ); … … 127 127 } 128 128 } 129 129 130 130 /** 131 131 * Initialize the Enhanced Members List functionality … … 137 137 add_action( 'init', array( $this, 'loadTextDomain' ), 1 ); 138 138 } 139 139 140 140 /** 141 141 * Load translation (I18N) file(s) if applicable … … 144 144 */ 145 145 public function loadTextDomain() { 146 146 147 147 $locale = apply_filters( "plugin_locale", get_locale(), self::plugin_slug ); 148 148 $mo_file = self::plugin_slug . "-{$locale}.mo"; 149 149 150 150 // Path(s) to local and global (WP) 151 151 $mo_file_local = dirname( __FILE__ ) . "/languages/{$mo_file}"; 152 152 $mo_file_global = WP_LANG_DIR . "/e20r-members-list/{$mo_file}"; 153 153 154 154 // Start with the global file 155 155 if ( file_exists( $mo_file_global ) ) { 156 156 157 157 load_textdomain( 158 158 E20R_Members_List::plugin_slug, … … 160 160 ); 161 161 } 162 162 163 163 // Load from local next (if applicable) 164 164 load_textdomain( … … 166 166 $mo_file_local 167 167 ); 168 168 169 169 // Load with plugin_textdomain or GlotPress 170 170 load_plugin_textdomain( … … 175 175 } 176 176 } 177 177 178 178 } 179 179 try { -
e20r-members-list/trunk/README.txt
r2230630 r2251595 5 5 Tested up to: 5.4 6 6 Requires PHP: 7.0 7 Stable tag: 5. 7.77 Stable tag: 5.8 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl … … 189 189 == Changelog == 190 190 191 == 5.8 == 192 * BUG FIX: Shipping plugin lacks standard utilities library 193 191 194 == 5.7.6 == 192 195 * BUG FIX: Possibly causing fatal error when running/activated -
e20r-members-list/trunk/class.e20r-members-list.php
r2230630 r2251595 4 4 Plugin URI: https://wordpress.org/plugins/e20r-members-list 5 5 Description: Extensible, sortable & bulk action capable members listing + export to CSV tool for Paid Memberships Pro. 6 Version: 5. 7.76 Version: 5.8 7 7 Author: Thomas Sjolshagen @ Eighty / 20 Results by Wicked Strong Chicks, LLC <[email protected]> 8 8 Author URI: https://eighty20results.com/thomas-sjolshagen/ … … 33 33 34 34 if ( ! defined( 'E20R_MEMBERSLIST_VER' ) ) { 35 define( 'E20R_MEMBERSLIST_VER', '5. 7.7' );35 define( 'E20R_MEMBERSLIST_VER', '5.8' ); 36 36 } 37 37 … … 42 42 */ 43 43 class E20R_Members_List { 44 44 45 45 const plugin_slug = 'e20r-members-list'; 46 46 47 47 /** 48 48 * Instance of the Member List controller … … 51 51 */ 52 52 private static $instance = null; 53 53 54 54 /** 55 55 * E20R_Members_List constructor. … … 57 57 private function __construct() { 58 58 } 59 59 60 60 /** 61 61 * Get or instantiate and get the current class … … 64 64 */ 65 65 public static function get_instance() { 66 66 67 67 if ( is_null( self::$instance ) ) { 68 68 self::$instance = new self; 69 69 } 70 70 71 71 return self::$instance; 72 72 } 73 73 74 74 /** 75 75 * Class auto-loader for the Enhanced Members List plugin … … 81 81 */ 82 82 public static function autoLoader( $class_name ) { 83 83 84 84 if ( false === stripos( $class_name, 'e20r' ) ) { 85 85 return; 86 86 } 87 87 88 88 $parts = explode( '\\', $class_name ); 89 89 $c_name = strtolower( preg_replace( '/_/', '-', $parts[ ( count( $parts ) - 1 ) ] ) ); 90 90 $base_path = plugin_dir_path( __FILE__ ) . 'classes/'; 91 91 92 92 if ( file_exists( plugin_dir_path( __FILE__ ) . 'class/' ) ) { 93 93 $base_path = plugin_dir_path( __FILE__ ) . 'class/'; 94 94 } 95 95 96 96 $filename = "class.{$c_name}.php"; 97 97 $iterator = new \RecursiveDirectoryIterator( $base_path, \RecursiveDirectoryIterator::SKIP_DOTS | \RecursiveIteratorIterator::SELF_FIRST | \RecursiveIteratorIterator::CATCH_GET_CHILD | \RecursiveDirectoryIterator::FOLLOW_SYMLINKS ); 98 98 99 99 /** 100 100 * Loate class member files, recursively 101 101 */ 102 102 $filter = new \RecursiveCallbackFilterIterator( $iterator, function ( $current, $key, $iterator ) use ( $filename ) { 103 103 104 104 $file_name = $current->getFilename(); 105 105 106 106 // Skip hidden files and directories. 107 107 if ( $file_name[0] == '.' || $file_name == '..' ) { 108 108 return false; 109 109 } 110 110 111 111 if ( $current->isDir() ) { 112 112 // Only recurse into intended subdirectories. … … 117 117 } 118 118 } ); 119 119 120 120 foreach ( new \ RecursiveIteratorIterator( $iterator ) as $f_filename => $f_file ) { 121 121 122 122 $class_path = $f_file->getPath() . "/" . $f_file->getFilename(); 123 123 124 124 if ( $f_file->isFile() && false !== strpos( $class_path, $filename ) ) { 125 125 require_once( $class_path ); … … 127 127 } 128 128 } 129 129 130 130 /** 131 131 * Initialize the Enhanced Members List functionality … … 137 137 add_action( 'init', array( $this, 'loadTextDomain' ), 1 ); 138 138 } 139 139 140 140 /** 141 141 * Load translation (I18N) file(s) if applicable … … 144 144 */ 145 145 public function loadTextDomain() { 146 146 147 147 $locale = apply_filters( "plugin_locale", get_locale(), self::plugin_slug ); 148 148 $mo_file = self::plugin_slug . "-{$locale}.mo"; 149 149 150 150 // Path(s) to local and global (WP) 151 151 $mo_file_local = dirname( __FILE__ ) . "/languages/{$mo_file}"; 152 152 $mo_file_global = WP_LANG_DIR . "/e20r-members-list/{$mo_file}"; 153 153 154 154 // Start with the global file 155 155 if ( file_exists( $mo_file_global ) ) { 156 156 157 157 load_textdomain( 158 158 E20R_Members_List::plugin_slug, … … 160 160 ); 161 161 } 162 162 163 163 // Load from local next (if applicable) 164 164 load_textdomain( … … 166 166 $mo_file_local 167 167 ); 168 168 169 169 // Load with plugin_textdomain or GlotPress 170 170 load_plugin_textdomain( … … 175 175 } 176 176 } 177 177 178 178 } 179 179 try {
Note: See TracChangeset
for help on using the changeset viewer.