Changeset 3038306
- Timestamp:
- 02/20/2024 06:45:59 AM (2 years ago)
- Location:
- plugin-groups/trunk
- Files:
-
- 4 edited
-
classes/class-bulk-actions.php (modified) (2 diffs)
-
classes/class-utils.php (modified) (1 diff)
-
plugincore.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-groups/trunk/classes/class-bulk-actions.php
r2601515 r3038306 66 66 switch ( $action ) { 67 67 case 'add-to-group': 68 $selected_group = filter_input( INPUT_POST, 'group_id', FILTER_SANITIZE_STRING);68 $selected_group = Utils::get_sanitized_text( INPUT_POST, 'group_id' ); 69 69 if ( '__new' === $selected_group ) { 70 70 // Create a new group. 71 $new_group_name = filter_input( INPUT_POST, 'new_group_name', FILTER_SANITIZE_STRING);71 $new_group_name = Utils::get_sanitized_text( INPUT_POST, 'new_group_name' ); 72 72 $succeed = $this->plugin_groups->create_group( $new_group_name, $plugins ); 73 73 if ( $succeed ) { … … 105 105 $current_group = $this->plugin_groups->get_current_group(); 106 106 if ( $current_group ) { 107 // Translators: placeholder is group name. 107 108 $actions['remove-from-group'] = sprintf( __( 'Remove from %s', 'plugin-groups' ), $current_group['name'] ); 108 109 } -
plugin-groups/trunk/classes/class-utils.php
r2593591 r3038306 127 127 return uniqid( 'nd' ); 128 128 } 129 130 /** 131 * Get a sanitized input text field. 132 * 133 * @param int $type The type to get. 134 * @param string $var The value to get. 135 * 136 * @return mixed 137 */ 138 public static function get_sanitized_text( $type, $var ) { 139 return filter_input( $type, $var, FILTER_CALLBACK, array( 'options' => 'sanitize_text_field' ) ); 140 } 141 129 142 } -
plugin-groups/trunk/plugincore.php
r3036754 r3038306 4 4 * Plugin URI: https://cramer.co.za 5 5 * Description: Organize Plugins in groups 6 * Version: 2.0. 86 * Version: 2.0.9 7 7 * Author: David Cramer 8 8 * Author URI: https://cramer.co.za -
plugin-groups/trunk/readme.txt
r3036761 r3038306 5 5 Requires at least: 5.3 6 6 Tested up to: 6.4.3 7 Stable tag: 2.0. 87 Stable tag: 2.0.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 41 41 == Changelog == 42 43 = 2.0.9 = 44 - Fixed missing class. 42 45 43 46 = 2.0.8 =
Note: See TracChangeset
for help on using the changeset viewer.