Plugin Directory

Changeset 3476531


Ignore:
Timestamp:
03/06/2026 03:40:47 PM (3 weeks ago)
Author:
rocketcomunicazione
Message:

2.3.9

Location:
rc-site-manager-optimization/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • rc-site-manager-optimization/trunk/assets/scripts/script.js

    r3438010 r3476531  
    605605
    606606        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}`
    608609            : `${cleanUrl.origin}${cleanUrl.pathname}#${tabName}`;
    609610
  • rc-site-manager-optimization/trunk/plugins/wp_rocket/index.php

    r3438010 r3476531  
    1515}
    1616
    17 add_action('admin_enqueue_scripts', function () {
     17add_action('admin_enqueue_scripts', function () { 
    1818
    1919    $current_page = rc_sm_security_get_param('page');
  • rc-site-manager-optimization/trunk/rc-site-manager-optimization.php

    r3476253 r3476531  
    33 * Plugin Name: RC Site Manager & Optimization
    44 * Description: All-in-one Wordpress manager: control WooCommerce, SEO, caching, media, and multilingual tools from one dashboard.
    5  * Version: 2.3.8
     5 * Version: 2.3.9
    66 * Author: Rocket Comunicazione
    77 * Author URI: https://www.rocketcomunicazione.com
     
    1818
    1919
    20 define('RC_SM_PLUGIN_VERSION', '2.3.8');
     20define('RC_SM_PLUGIN_VERSION', '2.3.9');
    2121
    2222define( 'RC_SM_SITE_URL', home_url() );
  • rc-site-manager-optimization/trunk/readme.txt

    r3476253 r3476531  
    55Tested up to: 6.9
    66Requires PHP: 8.1
    7 Stable tag: 2.3.8
     7Stable tag: 2.3.9
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    160160== Changelog ==
    161161
     162
     163= 2.3.9 - March 6, 2026 =
     164* Minor bug fixes and improvement
    162165
    163166= 2.3.8 - March 6, 2026 =
     
    292295== Upgrade Notice ==
    293296
     297= 2.3.9 - March 6, 2026 =
     298Minor bug fixes.
     299
    294300= 2.3.8 - March 6, 2026 =
    295301Minor bug fixes.
  • rc-site-manager-optimization/trunk/utility/index.php

    r3474847 r3476531  
    1717add_action('admin_enqueue_scripts', function () {
    1818   
    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;
    2121
    2222    $js_file_name = RC_SM_PAGE_DIR_UTILITY . '_script.js';
     
    2626
    2727    wp_enqueue_script(
    28         'rc_sm_file_jquery_js',
     28        'rc_sm_' . RC_SM_PAGE_DIR_UTILITY . '_js',
    2929        $js_url,
    3030        ['jquery'],
     
    3333    );
    3434
    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', [
    3636        'i18n' => [
    3737            '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  
    102102        }
    103103        $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 ) {
    106105            $short_path = '~' . substr( $path, strlen( $home_dir ) );
     106        } else {
     107            $short_path = $path ? preg_replace( '#^.*?(/public_html/)#', '$1', $path ) : 'N/A';
    107108        }
    108109        $data[ $label ] = [ 'value' => $value, 'source' => esc_html( $short_path ), 'raw' => true ];
  • rc-site-manager-optimization/trunk/utility/utility_script.js

    r3476253 r3476531  
    11jQuery(function ($) {
    22
    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);
    135
    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;
    157
    16         const $btn = $(this);
    178        const type = $btn.attr('data-id');
    189
     
    2213            action: 'rc_sm_delete_log',
    2314            type: type,
    24             nonce: rc_sm_ajax.nonce
     15            nonce: rc_sm_ajax.nonce,
     16            tab_par: 'tab_utility_log'
    2517        }, function (res) {
    2618            const labelMap = {
     
    3325
    3426            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}`;
    3729
    3830            rc_sm_js_notice_fly_show(notice, res.success ? 'success' : 'error');
     
    4133
    4234        }).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');
    4437        });
    4538    });
     
    6053        });
    6154    });
     55
    6256});
Note: See TracChangeset for help on using the changeset viewer.