Changeset 3476531
- Timestamp:
- 03/06/2026 03:40:47 PM (3 weeks ago)
- Location:
- rc-site-manager-optimization/trunk
- Files:
-
- 7 edited
-
assets/scripts/script.js (modified) (1 diff)
-
plugins/wp_rocket/index.php (modified) (1 diff)
-
rc-site-manager-optimization.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
utility/index.php (modified) (3 diffs)
-
utility/tab_system_fn.php (modified) (1 diff)
-
utility/utility_script.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rc-site-manager-optimization/trunk/assets/scripts/script.js
r3438010 r3476531 605 605 606 606 const newUrl = page 607 ? `${cleanUrl.origin}${cleanUrl.pathname}?page=${page}#${tabName}` 607 //? `${cleanUrl.origin}${cleanUrl.pathname}?page=${page}#${tabName}` modifica radames 06/03/2026 608 ? `${cleanUrl.origin}${cleanUrl.pathname}?page=${page}&tab_par=${tabName}#${tabName}` 608 609 : `${cleanUrl.origin}${cleanUrl.pathname}#${tabName}`; 609 610 -
rc-site-manager-optimization/trunk/plugins/wp_rocket/index.php
r3438010 r3476531 15 15 } 16 16 17 add_action('admin_enqueue_scripts', function () { 17 add_action('admin_enqueue_scripts', function () { 18 18 19 19 $current_page = rc_sm_security_get_param('page'); -
rc-site-manager-optimization/trunk/rc-site-manager-optimization.php
r3476253 r3476531 3 3 * Plugin Name: RC Site Manager & Optimization 4 4 * Description: All-in-one Wordpress manager: control WooCommerce, SEO, caching, media, and multilingual tools from one dashboard. 5 * Version: 2.3. 85 * Version: 2.3.9 6 6 * Author: Rocket Comunicazione 7 7 * Author URI: https://www.rocketcomunicazione.com … … 18 18 19 19 20 define('RC_SM_PLUGIN_VERSION', '2.3. 8');20 define('RC_SM_PLUGIN_VERSION', '2.3.9'); 21 21 22 22 define( 'RC_SM_SITE_URL', home_url() ); -
rc-site-manager-optimization/trunk/readme.txt
r3476253 r3476531 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.1 7 Stable tag: 2.3. 87 Stable tag: 2.3.9 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 160 160 == Changelog == 161 161 162 163 = 2.3.9 - March 6, 2026 = 164 * Minor bug fixes and improvement 162 165 163 166 = 2.3.8 - March 6, 2026 = … … 292 295 == Upgrade Notice == 293 296 297 = 2.3.9 - March 6, 2026 = 298 Minor bug fixes. 299 294 300 = 2.3.8 - March 6, 2026 = 295 301 Minor bug fixes. -
rc-site-manager-optimization/trunk/utility/index.php
r3474847 r3476531 17 17 add_action('admin_enqueue_scripts', function () { 18 18 19 $current_page = rc_sm_security_get_param _safe('page');20 if ( !$current_page || strpos($current_page, 'rc_sm_' . RC_SM_PAGE_DIR_UTILITY) !== 0) return;19 $current_page = rc_sm_security_get_param('page'); 20 if ($current_page !== 'rc_sm_' . RC_SM_PAGE_DIR_UTILITY) return; 21 21 22 22 $js_file_name = RC_SM_PAGE_DIR_UTILITY . '_script.js'; … … 26 26 27 27 wp_enqueue_script( 28 'rc_sm_ file_jquery_js',28 'rc_sm_' . RC_SM_PAGE_DIR_UTILITY . '_js', 29 29 $js_url, 30 30 ['jquery'], … … 33 33 ); 34 34 35 rc_sm_security_ajax_localize_script('rc_sm_ file_jquery_js', 'rc_sm_localized', 'rc_sm_ajax_nonce', [35 rc_sm_security_ajax_localize_script('rc_sm_' . RC_SM_PAGE_DIR_UTILITY . '_js', 'rc_sm_ajax', 'rc_sm_ajax_nonce', [ 36 36 'i18n' => [ 37 37 'rc_sm_text_file_deleted_success' => __('File deleted successfully.', 'rc-site-manager-optimization'), -
rc-site-manager-optimization/trunk/utility/tab_system_fn.php
r3476253 r3476531 102 102 } 103 103 $home_dir = dirname( rtrim( ABSPATH, '/' ) ); 104 $short_path = $path ? preg_replace( '#^.*?(/public_html/)#', '$1', $path ) : 'N/A'; 105 if ( $short_path === $path && $home_dir && strpos( $path, $home_dir ) === 0 ) { 104 if ( $home_dir && strpos( $path, $home_dir ) === 0 ) { 106 105 $short_path = '~' . substr( $path, strlen( $home_dir ) ); 106 } else { 107 $short_path = $path ? preg_replace( '#^.*?(/public_html/)#', '$1', $path ) : 'N/A'; 107 108 } 108 109 $data[ $label ] = [ 'value' => $value, 'source' => esc_html( $short_path ), 'raw' => true ]; -
rc-site-manager-optimization/trunk/utility/utility_script.js
r3476253 r3476531 1 1 jQuery(function ($) { 2 2 3 // Hash-based tab switching 4 function rc_sm_activate_tab_from_hash() { 5 var hash = window.location.hash.replace('#', ''); 6 if ( hash ) { 7 var $btn = $('.rc_sm_tab_button[data-tab="' + hash + '"]'); 8 if ( $btn.length ) $btn.trigger('click'); 9 } 10 } 11 rc_sm_activate_tab_from_hash(); 12 $(window).on('hashchange', rc_sm_activate_tab_from_hash); 3 $(document).on('rc_sm_modal_action_confirmed', '.rc_sm_modal_action', function(e) { 4 const $btn = $(this); 13 5 14 $(document).on('click', '.rc_sm_confirm_remove_debug_log, .rc_sm_confirm_remove_php_errorlog', function () {6 if (!$btn.hasClass('rc_sm_confirm_remove_php_errorlog') && !$btn.hasClass('rc_sm_confirm_remove_debug_log')) return; 15 7 16 const $btn = $(this);17 8 const type = $btn.attr('data-id'); 18 9 … … 22 13 action: 'rc_sm_delete_log', 23 14 type: type, 24 nonce: rc_sm_ajax.nonce 15 nonce: rc_sm_ajax.nonce, 16 tab_par: 'tab_utility_log' 25 17 }, function (res) { 26 18 const labelMap = { … … 33 25 34 26 const notice = res.success 35 ? ( rc_sm_localized.i18n.rc_sm_text_file_deleted_success|| 'File deleted successfully.')36 : `${ rc_sm_localized.i18n.rc_sm_text_error_label|| 'Error'}: ${res.data}`;27 ? ((rc_sm_ajax.i18n && rc_sm_ajax.i18n.rc_sm_text_file_deleted_success) || 'File deleted successfully.') 28 : `${(rc_sm_ajax.i18n && rc_sm_ajax.i18n.rc_sm_text_error_label) || 'Error'}: ${res.data}`; 37 29 38 30 rc_sm_js_notice_fly_show(notice, res.success ? 'success' : 'error'); … … 41 33 42 34 }).fail(function () { 43 rc_sm_js_notice_fly_show(rc_sm_localized.i18n.rc_sm_text_ajax_error || 'Unexpected AJAX error.', 'error'); 35 const msg = (rc_sm_ajax.i18n && rc_sm_ajax.i18n.rc_sm_text_ajax_error) || 'Unexpected AJAX error.'; 36 rc_sm_js_notice_fly_show(msg, 'error'); 44 37 }); 45 38 }); … … 60 53 }); 61 54 }); 55 62 56 });
Note: See TracChangeset
for help on using the changeset viewer.