Changeset 3036754
- Timestamp:
- 02/16/2024 10:18:18 AM (2 years ago)
- Location:
- plugin-groups/trunk
- Files:
-
- 3 edited
-
classes/class-plugin-groups.php (modified) (4 diffs)
-
plugincore.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugin-groups/trunk/classes/class-plugin-groups.php
r2644972 r3036754 320 320 321 321 $this->current_status = $status; 322 $selected_group = filter_input( INPUT_GET, self::$slug, FILTER_SANITIZE_STRING);322 $selected_group = Utils::get_sanitized_text( INPUT_GET, self::$slug ); 323 323 if ( $selected_group && isset( $this->groups[ $selected_group ] ) ) { 324 324 $this->current_group = $selected_group; … … 348 348 protected function get_nav_url( $id = null ) { 349 349 350 $url = filter_input( INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_URL);350 $url = Utils::get_sanitized_text( INPUT_SERVER, 'REQUEST_URI' ); 351 351 if ( ! $url || false === strpos( 'plugins.php', $url ) ) { 352 352 // Just in case. … … 710 710 public function admin_init() { 711 711 712 if ( ! empty( $_POST['plugin-group-config'] ) ) {713 $data = stripslashes( $_POST['plugin-group-config'] );714 $data = json_decode( $data, true );715 update_option( Plugin_Groups::CONFIG_KEY, $data );716 wp_safe_redirect( admin_url( 'plugins.php?page=plugin-groups' ) );717 }718 712 $asset = include PLGGRP_PATH . 'js/' . self::$slug . '.asset.php'; 719 713 wp_register_script( self::$slug, PLGGRP_URL . 'js/' . self::$slug . '.js', $asset['dependencies'], $asset['version'], true ); … … 797 791 public function enqueue_assets() { 798 792 799 $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING);793 $page = Utils::get_sanitized_text( INPUT_GET, 'page' ); 800 794 if ( $page && self::$slug === $page ) { 801 795 wp_enqueue_script( self::$slug ); -
plugin-groups/trunk/plugincore.php
r2644972 r3036754 4 4 * Plugin URI: https://cramer.co.za 5 5 * Description: Organize Plugins in groups 6 * Version: 2.0. 66 * Version: 2.0.8 7 7 * Author: David Cramer 8 8 * Author URI: https://cramer.co.za -
plugin-groups/trunk/readme.txt
r2665702 r3036754 4 4 Tags: plugin organizer, plugin status filter, plugin filter, plugin groups, plugin group 5 5 Requires at least: 5.3 6 Tested up to: 5.97 Stable tag: 2.0. 66 Tested up to: 6.0.3 7 Stable tag: 2.0.8 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.7 = 44 - Fixed vulnerability of forced update of settings. 45 46 = 2.0.7 = 47 - [Multisite] Added path to domain for subdirectory sites. 48 - PHP 8.1 compatibility. 49 - Added an "Ungrouped" toggle in settings, to filter out plugins that are not in a group yet. 50 - Added a setting to enable an Ungrouped group in groups nav. 42 51 43 52 = 2.0.6 =
Note: See TracChangeset
for help on using the changeset viewer.