Plugin Directory

Changeset 3384132


Ignore:
Timestamp:
10/24/2025 03:43:36 PM (5 months ago)
Author:
seraphinitesoft
Message:

seraphinite-accelerator: 2.27.46.

Location:
seraphinite-accelerator
Files:
143 added
13 edited

Legend:

Unmodified
Added
Removed
  • seraphinite-accelerator/trunk/Cmn/Gen.php

    r3376789 r3384132  
    18181818
    18191819        case 'string':
    1820             return( json_encode( $v, JSON_UNESCAPED_SLASHES ) );
     1820            $v = json_encode( $v, JSON_UNESCAPED_SLASHES );
     1821            $v = str_replace( array( '${' ), array( '\\${' ), $v );
     1822            return( $v );
    18211823
    18221824        case 'array':
     
    36253627            $args[ 'provider' ] = 'CURL';
    36263628        if( !isset( $args[ 'user-agent' ] ) )
    3627             $args[ 'user-agent' ] = 'seraph-accel-Agent/2.27.45';
     3629            $args[ 'user-agent' ] = 'seraph-accel-Agent/2.27.46';
    36283630        if( !isset( $args[ 'timeout' ] ) )
    36293631            $args[ 'timeout' ] = 5;
  • seraphinite-accelerator/trunk/Cmn/Plugin.php

    r3376789 r3384132  
    307307            $args[ 'id' ] = 'wordpress-accelerator';
    308308            $args[ 'name' ] = 'Accelerator';
    309             $args[ 'v' ] = '2.27.45';
     309            $args[ 'v' ] = '2.27.46';
    310310            $args[ 'pk' ] = 'Base';
    311311            $args[ 'cfg' ] = '';
     
    329329            $lastCheckPackage = 'Base';
    330330
    331         if( $lastCheckVer !== '2.27.45' || $lastCheckPackage !== 'Base' )
     331        if( $lastCheckVer !== '2.27.46' || $lastCheckPackage !== 'Base' )
    332332        {
    333333            $state = Plugin::StateGet();
    334334
    335             if( $lastCheckVer !== '2.27.45' && !isset( $state[ 'changeVerCheck' ] ) )
     335            if( $lastCheckVer !== '2.27.46' && !isset( $state[ 'changeVerCheck' ] ) )
    336336            {
    337337                $state[ 'changeVerCheck' ] = $lastCheckVer !== null ? $lastCheckVer : '';
     
    350350        if( !$bForce )
    351351        {
    352             if( $bFirstTimeOnly && $lastCheckVer == '2.27.45' )
     352            if( $bFirstTimeOnly && $lastCheckVer == '2.27.46' )
    353353                return( Gen::S_FALSE );
    354354
     
    369369            $args[ 'id' ] = 'wordpress-accelerator';
    370370            $args[ 'name' ] = 'Accelerator';
    371             $args[ 'v' ] = '2.27.45';
     371            $args[ 'v' ] = '2.27.46';
    372372            $args[ 'pk' ] = 'Base';
    373373            $args[ 'cfg' ] = '';
     
    386386            {
    387387                $data[ 'updTime' ] = $curUpdTime;
    388                 $data[ 'plgVer' ] = '2.27.45';
     388                $data[ 'plgVer' ] = '2.27.46';
    389389                $data[ 'plgPk' ] = 'Base';
    390390
     
    403403        $data[ 'mdfTime' ] = $timeMdf;
    404404        $data[ 'updTime' ] = $curUpdTime;
    405         $data[ 'plgVer' ] = '2.27.45';
     405        $data[ 'plgVer' ] = '2.27.46';
    406406        $data[ 'plgPk' ] = 'Base';
    407407
     
    14501450
    14511451        $urlProductInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductInfo' );
    1452         $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.27.45' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
     1452        $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.27.46' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
    14531453        $urlAboutPluginDocs = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductDocs' );
    14541454        $urlAboutPluginSupport = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductSupport' );
    1455         $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.27.45' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
     1455        $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.27.46' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
    14561456
    14571457        $urlEula = null;
     
    14621462
    14631463        {
    1464             $version = esc_html( '2.27.45' );
     1464            $version = esc_html( '2.27.46' );
    14651465
    14661466            $res .= Ui::TagOpen( 'div' );
     
    15111511        $rmtCfg = PluginRmtCfg::Get();
    15121512
    1513         $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.27.45' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
     1513        $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.27.46' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
    15141514        $urlMorePlugins = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMorePlugins' );
    15151515        $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMain' );
     
    20382038
    20392039            $verFrom = self::_PrevVer_GetInt( $plgVerPrev );
    2040             $verTo = self::_PrevVer_GetInt( '2.27.45' );
     2040            $verTo = self::_PrevVer_GetInt( '2.27.46' );
    20412041            if( $verTo < $verFrom )
    20422042                list( $verTo, $verFrom ) = array( $verFrom, $verTo );
     
    21632163                continue;
    21642164
    2165             wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.27.45' );
     2165            wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.27.46' );
    21662166
    21672167            self::$g_aAlreadyIncludedObj[ 'css' ][ $id ] = true;
     
    22302230            $scrHndId = Plugin::CmnScriptId( $id );
    22312231
    2232             wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.27.45' );
     2232            wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.27.46' );
    22332233            if( $id == 'Gen' )
    22342234                Plugin::Loc_ScriptLoad( $scrHndId );
     
    26752675                            var sendDataUrl = "<?php echo( Gen::GetArrField( $rmtCfg, 'Questionnaires.SendAnswerUrlTpl' ) ); ?>";
    26762676                            sendDataUrl = sendDataUrl.replace( "{EndPointId}",                  encodeURI( "<?php echo( Wp::GetSiteId() ); ?>" ) );
    2677                             sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.27.45" ) );
     2677                            sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.27.46" ) );
    26782678                            sendDataUrl = sendDataUrl.replace( "{PluginMode}",                  encodeURI( "base" ) );
    26792679                            sendDataUrl = sendDataUrl.replace( "{PluginPackage}",               encodeURI( "Base" ) );
  • seraphinite-accelerator/trunk/cache.php

    r3376789 r3384132  
    645645
    646646    if( $bHdr )
    647         @header( 'X-Seraph-Accel-Cache: 2.27.45;' . $debugInfo );
     647        @header( 'X-Seraph-Accel-Cache: 2.27.46;' . $debugInfo );
    648648
    649649    if( $bLog )
     
    15511551    {
    15521552        $_SERVER[ 'SERAPH_ACCEL_ORIG_USER_AGENT' ] = ($_SERVER[ 'HTTP_USER_AGENT' ]??'');
    1553         $_SERVER[ 'HTTP_USER_AGENT' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.45';
     1553        $_SERVER[ 'HTTP_USER_AGENT' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.46';
    15541554    }
    15551555
  • seraphinite-accelerator/trunk/common.php

    r3376789 r3384132  
    14291429            'urisExcl' => array(
    14301430                '/checkout/',
    1431                 '@.*sitemap\.xsl$@',
     1431                '@sitemap@',
     1432
    14321433                '@(?:^|/)page/@',
    14331434            ),
     
    14571458
    14581459            'exclConts' => array(
     1460                './/*[@id="wpadminbar"]',
    14591461            ),
    14601462
     
    16871689
    16881690                'lifterlms' => array(
    1689                     'enable' => true,
     1691                    'enable' => false,
    16901692                    'name' => 'LMS by LifterLMS',
    16911693
     
    40874089function GetViewTypeUserAgent( $viewsDeviceGrp )
    40884090{
    4089     return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.45 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
     4091    return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.46 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
    40904092}
    40914093
     
    53915393    $args = array( 'sslverify' => false, 'timeout' => $timeout, 'headers' => array() );
    53925394    if( $userAgentCmn )
    5393         $args[ 'headers' ][ 'User-Agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.45';
     5395        $args[ 'headers' ][ 'User-Agent' ] = 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.46';
    53945396
    53955397    global $seraph_accel_g_aGetExtContentsFailedSrvs;
     
    58515853    {
    58525854        if( !isset( $headers[ 'User-Agent' ] ) )
    5853             $headers[ 'User-Agent' ] = ($headers[ 'X-Seraph-Accel-Postpone-User-Agent' ]??'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.45');
     5855            $headers[ 'User-Agent' ] = ($headers[ 'X-Seraph-Accel-Postpone-User-Agent' ]??'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.46');
    58545856        $headers[ 'User-Agent' ] = str_replace( 'seraph-accel-Agent/', 'seraph-accel-Agent-WarmUp/', $headers[ 'User-Agent' ] );
    58555857
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator-admin.pot

    r3376789 r3384132  
    77msgid ""
    88msgstr ""
    9 "#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.27.45)  #-#-#-#-#\n"
    10 "Project-Id-Version: seraphinite-accelerator 2.27.45\n"
     9"#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.27.46)  #-#-#-#-#\n"
     10"Project-Id-Version: seraphinite-accelerator 2.27.46\n"
    1111"Report-Msgid-Bugs-To: support@s-sols.com\n"
    1212"MIME-Version: 1.0\n"
    1313"Content-Type: text/plain; charset=UTF-8\n"
    1414"Content-Transfer-Encoding: 8bit\n"
    15 "#-#-#-#-#  main.admin.pot (seraphinite-accelerator 2.27.45)  #-#-#-#-#\n"
    16 "Project-Id-Version: seraphinite-accelerator 2.27.45\n"
     15"#-#-#-#-#  main.admin.pot (seraphinite-accelerator 2.27.46)  #-#-#-#-#\n"
     16"Project-Id-Version: seraphinite-accelerator 2.27.46\n"
    1717"Report-Msgid-Bugs-To: support@s-sols.com\n"
    1818"MIME-Version: 1.0\n"
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator.pot

    r3376789 r3384132  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: seraphinite-accelerator 2.27.45\n"
     9"Project-Id-Version: seraphinite-accelerator 2.27.46\n"
    1010"Report-Msgid-Bugs-To: support@s-sols.com\n"
    1111"MIME-Version: 1.0\n"
  • seraphinite-accelerator/trunk/main.php

    r3376789 r3384132  
    4242function _AddMenus( $accepted = false )
    4343{
    44     add_menu_page( Plugin::GetPluginString( 'TitleLong' ), Plugin::GetNavMenuTitle(), 'manage_options', 'seraph_accel_manage',                                                                      $accepted ? 'seraph_accel\\_ManagePage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent', Plugin::FileUri( 'icon.png?v=2.27.45', __FILE__ ) );
     44    add_menu_page( Plugin::GetPluginString( 'TitleLong' ), Plugin::GetNavMenuTitle(), 'manage_options', 'seraph_accel_manage',                                                                      $accepted ? 'seraph_accel\\_ManagePage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent', Plugin::FileUri( 'icon.png?v=2.27.46', __FILE__ ) );
    4545    add_submenu_page( 'seraph_accel_manage', esc_html_x( 'Title', 'admin.Manage', 'seraphinite-accelerator' ), esc_html_x( 'Title', 'admin.Manage', 'seraphinite-accelerator' ), 'manage_options', 'seraph_accel_manage',   $accepted ? 'seraph_accel\\_ManagePage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent' );
    4646    add_submenu_page( 'seraph_accel_manage', Wp::GetLocString( 'Settings' ), Wp::GetLocString( 'Settings' ), 'manage_options', 'seraph_accel_settings',                                     $accepted ? 'seraph_accel\\_SettingsPage' : 'seraph_accel\\Plugin::OutputNotAcceptedPageContent' );
     
    12821282{
    12831283    Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
    1284     wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.45' );
     1284    wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.46' );
    12851285    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    12861286    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
     
    15201520    $rmtCfg = PluginRmtCfg::Get();
    15211521
    1522     $urlLogoImg = add_query_arg( array( 'v' => '2.27.45' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
     1522    $urlLogoImg = add_query_arg( array( 'v' => '2.27.46' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
    15231523    $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlHostingInfo' );
    15241524
  • seraphinite-accelerator/trunk/oper.php

    r3376789 r3384132  
    12081208    foreach( $viewId === null ? array( 'cmn' ) : $viewId as $viewIdI )
    12091209        if( CacheOpViewsHeadersGetViewId( $viewIdI ) == 'cmn' )
    1210             $res[ $viewIdI ] = array( 'User-Agent' => 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.45' );
     1210            $res[ $viewIdI ] = array( 'User-Agent' => 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.46' );
    12111211
    12121212    if( ($settCache[ 'views' ]??null) )
  • seraphinite-accelerator/trunk/options.php

    r3376789 r3384132  
    142142
    143143    Plugin::CmnScripts( array( 'Cmn', 'Gen', 'Ui', 'Net', 'AdminUi' ) );
    144     wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.45' );
     144    wp_register_script( Plugin::ScriptId( 'Admin' ), add_query_arg( Plugin::GetFileUrlPackageParams(), Plugin::FileUrl( 'Admin.js', __FILE__ ) ), array_merge( array( 'jquery' ), Plugin::CmnScriptId( array( 'Cmn', 'Gen', 'Ui', 'Net' ) ) ), '2.27.46' );
    145145    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    146146    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
  • seraphinite-accelerator/trunk/plugin_root.php

    r3376789 r3384132  
    66Text Domain: seraphinite-accelerator
    77Domain Path: /languages
    8 Version: 2.27.45
     8Version: 2.27.46
    99Author: Seraphinite Solutions
    1010Author URI: https://www.s-sols.com
  • seraphinite-accelerator/trunk/readme.txt

    r3376789 r3384132  
    66Requires at least: 4.5
    77Tested up to: 6.8
    8 Stable tag: 2.27.45
     8Stable tag: 2.27.46
    99License: GPLv2 or later (if another license is not provided)
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    163163== Changelog ==
    164164
     165= 2.27.46 =
     166
     167Improvements:
     168
     169* Support delay loading of IFRAME with 'onload' attribute.
     170
     171Fixes:
     172
     173* HTML replace works if content optimization is disabled in groups.
     174* Setting can be saved incorrectly in 'wp-config.php' under BatCache based hostings.
     175* Styles conflict in HTML tag in PeakTwo theme 'libraries.js'.
     176
    165177= 2.27.45 =
    166178
Note: See TracChangeset for help on using the changeset viewer.