Changeset 2601515
- Timestamp:
- 09/20/2021 05:23:19 AM (5 years ago)
- Location:
- plugin-groups/trunk
- Files:
-
- 6 edited
-
bootstrap.php (modified) (1 diff)
-
classes/class-bulk-actions.php (modified) (1 diff)
-
classes/class-extras.php (modified) (1 diff)
-
classes/class-plugin-groups.php (modified) (5 diffs)
-
plugincore.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-groups/trunk/bootstrap.php
r2585975 r2601515 20 20 } 21 21 22 add_action( ' plugins_loaded', 'Plugin_Groups\activate_plugin_groups' );22 add_action( 'init', 'Plugin_Groups\activate_plugin_groups' ); -
plugin-groups/trunk/classes/class-bulk-actions.php
r2593591 r2601515 105 105 $current_group = $this->plugin_groups->get_current_group(); 106 106 if ( $current_group ) { 107 $actions['remove-from-group'] = sprintf( __( 'Remove from %s', 'plugin s-groups' ), $current_group['name'] );107 $actions['remove-from-group'] = sprintf( __( 'Remove from %s', 'plugin-groups' ), $current_group['name'] ); 108 108 } 109 $actions['add-to-group'] = __( 'Add to group', 'plugin s-groups' );109 $actions['add-to-group'] = __( 'Add to group', 'plugin-groups' ); 110 110 111 111 $this->enqueue_script(); -
plugin-groups/trunk/classes/class-extras.php
r2597155 r2601515 70 70 $newaction[] = '<select disabled=disabled data-plugin="' . $plugin['slug'] . '" style="width:120px;">'; 71 71 $newaction[] = '<option value="_select">'; 72 $newaction[] = __( 'Add to group', 'plugin s-groups' );72 $newaction[] = __( 'Add to group', 'plugin-groups' ); 73 73 $newaction[] = '</option>'; 74 74 foreach ( $groups as $group ) { -
plugin-groups/trunk/classes/class-plugin-groups.php
r2597155 r2601515 8 8 namespace Plugin_Groups; 9 9 10 use WP_Admin_Bar; 11 10 12 /** 11 13 * Plugin_Groups Class. … … 124 126 125 127 // Load plugin text domain 126 add_action( 'init', array( $this, 'load_text_domain' ) );127 128 add_action( 'init', array( $this, 'plugin_groups_init' ), PHP_INT_MAX ); // Always the last thing to init. 128 129 add_action( 'admin_init', array( $this, 'admin_init' ) ); … … 188 189 189 190 return $url; 190 }191 192 /**193 * Load the plugin text domain for translation.194 */195 public function load_text_domain() {196 197 load_plugin_textdomain( self::$slug, false, basename( PLGGRP_PATH ) . '/languages' );198 191 } 199 192 … … 808 801 wp_enqueue_script( self::$slug ); 809 802 wp_enqueue_style( self::$slug ); 810 803 wp_set_script_translations(self::$slug, self::$slug ); 811 804 $this->prep_config(); 812 805 } … … 829 822 * @param int|null $site_id The site to get config for, ir null for current. 830 823 * 831 * @return string 824 * @return string|false 832 825 */ 833 826 public function build_config_object( $site_id = null ) { -
plugin-groups/trunk/plugincore.php
r2597155 r2601515 4 4 * Plugin URI: https://cramer.co.za 5 5 * Description: Organize Plugins in groups 6 * Version: 2.0. 46 * Version: 2.0.5 7 7 * Author: David Cramer 8 8 * Author URI: https://cramer.co.za -
plugin-groups/trunk/readme.txt
r2597155 r2601515 5 5 Requires at least: 5.3 6 6 Tested up to: 5.8 7 Stable tag: 2.0. 47 Stable tag: 2.0.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 == Changelog == 43 44 = 2.0.5 = 45 - Fixed an issue that prevented translations from being added. 43 46 44 47 = 2.0.4 =
Note: See TracChangeset
for help on using the changeset viewer.