芝麻web文件管理V1.00
编辑当前文件:/home/felaukpo/public_html/wp-content/plugins/elementor/modules/editor-one/classes/url-matcher.php
parse_query_string( $menu_parsed['query'] ?? '' ); $current_query = $this->parse_query_string( $current_parsed['query'] ?? '' ); if ( ! $this->query_params_match( $menu_query, $current_query ) ) { return -1; } return count( $menu_query ); } public function parse_query_string( string $query ): array { $params = []; if ( '' !== $query ) { parse_str( $query, $params ); } return $params; } public function query_params_match( array $required, array $actual ): bool { foreach ( $required as $key => $value ) { if ( ! isset( $actual[ $key ] ) || $actual[ $key ] !== $value ) { return false; } } return true; } }