Plugin Directory

Changeset 3362525


Ignore:
Timestamp:
09/16/2025 12:35:21 PM (7 months ago)
Author:
seraphinitesoft
Message:

seraphinite-accelerator: 2.27.43.

Location:
seraphinite-accelerator
Files:
143 added
15 edited

Legend:

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

    r3355498 r3362525  
    36253625            $args[ 'provider' ] = 'CURL';
    36263626        if( !isset( $args[ 'user-agent' ] ) )
    3627             $args[ 'user-agent' ] = 'seraph-accel-Agent/2.27.42';
     3627            $args[ 'user-agent' ] = 'seraph-accel-Agent/2.27.43';
    36283628        if( !isset( $args[ 'timeout' ] ) )
    36293629            $args[ 'timeout' ] = 5;
  • seraphinite-accelerator/trunk/Cmn/Plugin.php

    r3355498 r3362525  
    307307            $args[ 'id' ] = 'wordpress-accelerator';
    308308            $args[ 'name' ] = 'Accelerator';
    309             $args[ 'v' ] = '2.27.42';
     309            $args[ 'v' ] = '2.27.43';
    310310            $args[ 'pk' ] = 'Base';
    311311            $args[ 'cfg' ] = '';
     
    329329            $lastCheckPackage = 'Base';
    330330
    331         if( $lastCheckVer !== '2.27.42' || $lastCheckPackage !== 'Base' )
     331        if( $lastCheckVer !== '2.27.43' || $lastCheckPackage !== 'Base' )
    332332        {
    333333            $state = Plugin::StateGet();
    334334
    335             if( $lastCheckVer !== '2.27.42' && !isset( $state[ 'changeVerCheck' ] ) )
     335            if( $lastCheckVer !== '2.27.43' && !isset( $state[ 'changeVerCheck' ] ) )
    336336            {
    337337                $state[ 'changeVerCheck' ] = $lastCheckVer !== null ? $lastCheckVer : '';
     
    350350        if( !$bForce )
    351351        {
    352             if( $bFirstTimeOnly && $lastCheckVer == '2.27.42' )
     352            if( $bFirstTimeOnly && $lastCheckVer == '2.27.43' )
    353353                return( Gen::S_FALSE );
    354354
     
    369369            $args[ 'id' ] = 'wordpress-accelerator';
    370370            $args[ 'name' ] = 'Accelerator';
    371             $args[ 'v' ] = '2.27.42';
     371            $args[ 'v' ] = '2.27.43';
    372372            $args[ 'pk' ] = 'Base';
    373373            $args[ 'cfg' ] = '';
     
    386386            {
    387387                $data[ 'updTime' ] = $curUpdTime;
    388                 $data[ 'plgVer' ] = '2.27.42';
     388                $data[ 'plgVer' ] = '2.27.43';
    389389                $data[ 'plgPk' ] = 'Base';
    390390
     
    403403        $data[ 'mdfTime' ] = $timeMdf;
    404404        $data[ 'updTime' ] = $curUpdTime;
    405         $data[ 'plgVer' ] = '2.27.42';
     405        $data[ 'plgVer' ] = '2.27.43';
    406406        $data[ 'plgPk' ] = 'Base';
    407407
     
    14491449
    14501450        $urlProductInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductInfo' );
    1451         $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.27.42' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
     1451        $urlAboutPluginImg = file_exists( __DIR__ . '/../Images/ProductLogo.png' ) ? add_query_arg( array( 'v' => '2.27.43' ), Plugin::FileUri( '../Images/ProductLogo.png', __FILE__ ) ) : null;
    14521452        $urlAboutPluginDocs = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductDocs' );
    14531453        $urlAboutPluginSupport = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlProductSupport' );
    1454         $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.27.42' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
     1454        $url3rdPartySoft = file_exists( __DIR__ . '/../third-party-software.html' ) ? add_query_arg( array( 'v' => '2.27.43' ), Plugin::FileUri( '../third-party-software.html', __FILE__ ) ) : null;
    14551455
    14561456        $urlEula = null;
     
    14611461
    14621462        {
    1463             $version = esc_html( '2.27.42' );
     1463            $version = esc_html( '2.27.43' );
    14641464
    14651465            $res .= Ui::TagOpen( 'div' );
     
    15101510        $rmtCfg = PluginRmtCfg::Get();
    15111511
    1512         $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.27.42' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
     1512        $urlAboutUsLogoImg = file_exists( __DIR__ . '/../Images/VendorLogo.png' ) ? add_query_arg( array( 'v' => '2.27.43' ), Plugin::FileUri( '../Images/VendorLogo.png', __FILE__ ) ) : null;
    15131513        $urlMorePlugins = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMorePlugins' );
    15141514        $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlMain' );
     
    20372037
    20382038            $verFrom = self::_PrevVer_GetInt( $plgVerPrev );
    2039             $verTo = self::_PrevVer_GetInt( '2.27.42' );
     2039            $verTo = self::_PrevVer_GetInt( '2.27.43' );
    20402040            if( $verTo < $verFrom )
    20412041                list( $verTo, $verFrom ) = array( $verFrom, $verTo );
     
    21622162                continue;
    21632163
    2164             wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.27.42' );
     2164            wp_enqueue_style( Plugin::CmnScriptId( $id ), add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.css' ), array(), '2.27.43' );
    21652165
    21662166            self::$g_aAlreadyIncludedObj[ 'css' ][ $id ] = true;
     
    22292229            $scrHndId = Plugin::CmnScriptId( $id );
    22302230
    2231             wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.27.42' );
     2231            wp_register_script( $scrHndId, add_query_arg( Plugin::GetFileUrlPackageParams(), $fileUrl . '/' . $id . '.js' ), $deps, '2.27.43' );
    22322232            if( $id == 'Gen' )
    22332233                Plugin::Loc_ScriptLoad( $scrHndId );
     
    26742674                            var sendDataUrl = "<?php echo( Gen::GetArrField( $rmtCfg, 'Questionnaires.SendAnswerUrlTpl' ) ); ?>";
    26752675                            sendDataUrl = sendDataUrl.replace( "{EndPointId}",                  encodeURI( "<?php echo( Wp::GetSiteId() ); ?>" ) );
    2676                             sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.27.42" ) );
     2676                            sendDataUrl = sendDataUrl.replace( "{PluginVersion}",               encodeURI( "2.27.43" ) );
    26772677                            sendDataUrl = sendDataUrl.replace( "{PluginMode}",                  encodeURI( "base" ) );
    26782678                            sendDataUrl = sendDataUrl.replace( "{PluginPackage}",               encodeURI( "Base" ) );
  • seraphinite-accelerator/trunk/cache.php

    r3355498 r3362525  
    645645
    646646    if( $bHdr )
    647         @header( 'X-Seraph-Accel-Cache: 2.27.42;' . $debugInfo );
     647        @header( 'X-Seraph-Accel-Cache: 2.27.43;' . $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.42';
     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.43';
    15541554    }
    15551555
  • seraphinite-accelerator/trunk/common.php

    r3355498 r3362525  
    1313require_once( __DIR__ . '/Cmn/Plugin.php' );
    1414
    15 const PLUGIN_SETT_VER                               = 180;
     15const PLUGIN_SETT_VER                               = 181;
    1616const PLUGIN_DATA_VER                               = 1;
    1717const PLUGIN_EULA_VER                               = 1;
     
    11701170            Gen::SetArrField( $sett, array( 'cache', '_vPth' ), base64_encode( serialize( $a ) ) );
    11711171        }
     1172    }
     1173
     1174    if( $verFrom && $verFrom < 181 )
     1175    {
     1176        Gen::SetArrField( $sett, array( 'contPr', 'cp', 'elmntrWdgtTmFnfctCntr' ), false );
    11721177    }
    11731178
     
    19571962                'elmntrWdgtCntdwn' => true,
    19581963                'elmntrWdgtEaelCntdwn' => true,
     1964                'elmntrWdgtTmFnfctCntr' => true,
    19591965                'elmntrWdgtAvoShcs' => true,
    19601966                'elmntrWdgtLott' => true,
     
    40664072function GetViewTypeUserAgent( $viewsDeviceGrp )
    40674073{
    4068     return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.42 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
     4074    return( 'Mozilla/99999.9 AppleWebKit/9999999.99 (KHTML, like Gecko) Chrome/999999.0.9999.99 Safari/9999999.99 seraph-accel-Agent/2.27.43 ' . ucwords( implode( ' ', Gen::GetArrField( $viewsDeviceGrp, array( 'agents' ), array() ) ) ) );
    40694075}
    40704076
     
    53705376    $args = array( 'sslverify' => false, 'timeout' => $timeout, 'headers' => array() );
    53715377    if( $userAgentCmn )
    5372         $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.42';
     5378        $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.43';
    53735379
    53745380    global $seraph_accel_g_aGetExtContentsFailedSrvs;
     
    58305836    {
    58315837        if( !isset( $headers[ 'User-Agent' ] ) )
    5832             $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.42');
     5838            $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.43');
    58335839        $headers[ 'User-Agent' ] = str_replace( 'seraph-accel-Agent/', 'seraph-accel-Agent-WarmUp/', $headers[ 'User-Agent' ] );
    58345840
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator-admin.pot

    r3355498 r3362525  
    77msgid ""
    88msgstr ""
    9 "#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.27.42)  #-#-#-#-#\n"
    10 "Project-Id-Version: seraphinite-accelerator 2.27.42\n"
     9"#-#-#-#-#  cmn.admin.pot (seraphinite-accelerator 2.27.43)  #-#-#-#-#\n"
     10"Project-Id-Version: seraphinite-accelerator 2.27.43\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.42)  #-#-#-#-#\n"
    16 "Project-Id-Version: seraphinite-accelerator 2.27.42\n"
     15"#-#-#-#-#  main.admin.pot (seraphinite-accelerator 2.27.43)  #-#-#-#-#\n"
     16"Project-Id-Version: seraphinite-accelerator 2.27.43\n"
    1717"Report-Msgid-Bugs-To: support@s-sols.com\n"
    1818"MIME-Version: 1.0\n"
     
    12801280msgstr ""
    12811281
     1282# Forms of Fluent
    12821283msgctxt "admin.Settings_Cache_Revalidate_UpdGlobs"
    12831284msgid "FlntFrmChk"
     
    23882389msgstr ""
    23892390
     2391msgctxt "admin.Settings_Frames_ContParts"
     2392msgid "ElmntrWdgtTmFnfctCntrChk"
     2393msgstr ""
     2394
    23902395# AVO Showcase Widget of Elementor
    23912396msgctxt "admin.Settings_Frames_ContParts"
  • seraphinite-accelerator/trunk/languages/seraphinite-accelerator.pot

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

    r3355498 r3362525  
    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.42', __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.43', __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.42' );
     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.43' );
    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.42' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
     1522    $urlLogoImg = add_query_arg( array( 'v' => '2.27.43' ), Plugin::FileUri( 'Images/hosting-icon-banner.svg', __FILE__ ) );
    15231523    $urlMoreInfo = Plugin::RmtCfgFld_GetLoc( $rmtCfg, 'Links.UrlHostingInfo' );
    15241524
  • seraphinite-accelerator/trunk/oper.php

    r3355498 r3362525  
    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.42' );
     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.43' );
    12111211
    12121212    if( ($settCache[ 'views' ]??null) )
     
    16251625    $contNew = GetAdvCacheFileContent( $sett, $init, $bAllMultisites );
    16261626
     1627    if( preg_match( '@\\<\\?php\\s+declare\\s*\\(\\s*ticks\\s*=\\s*1\\s*\\)\\s*;@', $cont, $m ) )
     1628        $cont = substr_replace( $cont, '<?php', 0, strlen( $m[ 0 ] ) );
     1629
    16271630    if( $cont != $contNew )
    16281631    {
     1632
    16291633        $hr = Gen::HrAccom( $hr, Gen::FilePutContents( $file, $contNew ) !== false ? Gen::S_OK : Gen::E_FAIL );
    16301634        _OpCache_Invalidate( $file );
  • seraphinite-accelerator/trunk/options.php

    r3355498 r3362525  
    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.42' );
     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.43' );
    145145    Plugin::Loc_ScriptLoad( Plugin::ScriptId( 'Admin' ) );
    146146    wp_enqueue_script( Plugin::ScriptId( 'Admin' ) );
     
    32573257                            $fldId = 'contPr/cp/elmntrWdgtEaelCntdwn';
    32583258                            return( Ui::CheckBox( esc_html_x( 'ElmntrWdgtEaelCntdwnChk', 'admin.Settings_Frames_ContParts', 'seraphinite-accelerator' ), 'seraph_accel/' . $fldId, Gen::GetArrField( $sett, $fldId, false, '/' ), true ) );
     3259                        },
     3260
     3261                        function( $sett )
     3262                        {
     3263                            $fldId = 'contPr/cp/elmntrWdgtTmFnfctCntr';
     3264                            return( Ui::CheckBox( esc_html_x( 'ElmntrWdgtTmFnfctCntrChk', 'admin.Settings_Frames_ContParts', 'seraphinite-accelerator' ), 'seraph_accel/' . $fldId, Gen::GetArrField( $sett, $fldId, false, '/' ), true ) );
    32593265                        },
    32603266
     
    60726078        { $fldId = 'contPr/cp/elmntrWdgtCntdwn';            Gen::SetArrField( $sett, $fldId, isset( $args[ 'seraph_accel/' . $fldId ] ), '/' ); }
    60736079        { $fldId = 'contPr/cp/elmntrWdgtEaelCntdwn';        Gen::SetArrField( $sett, $fldId, isset( $args[ 'seraph_accel/' . $fldId ] ), '/' ); }
     6080        { $fldId = 'contPr/cp/elmntrWdgtTmFnfctCntr';       Gen::SetArrField( $sett, $fldId, isset( $args[ 'seraph_accel/' . $fldId ] ), '/' ); }
    60746081        { $fldId = 'contPr/cp/elmntrWdgtAvoShcs';           Gen::SetArrField( $sett, $fldId, isset( $args[ 'seraph_accel/' . $fldId ] ), '/' ); }
    60756082        { $fldId = 'contPr/cp/elmntrWdgtLott';              Gen::SetArrField( $sett, $fldId, isset( $args[ 'seraph_accel/' . $fldId ] ), '/' ); }
  • seraphinite-accelerator/trunk/plugin_root.php

    r3355498 r3362525  
    66Text Domain: seraphinite-accelerator
    77Domain Path: /languages
    8 Version: 2.27.42
     8Version: 2.27.43
    99Author: Seraphinite Solutions
    1010Author URI: https://www.s-sols.com
  • seraphinite-accelerator/trunk/readme.txt

    r3355498 r3362525  
    66Requires at least: 4.5
    77Tested up to: 6.8
    8 Stable tag: 2.27.42
     8Stable tag: 2.27.43
    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.43 =
     166
     167Improvements:
     168
     169* Counter Widget of Elementor.
     170* Funfact Counter Widget of Mascot Core Plugin for Elementor.
     171* Preventing license checking from wrong site ID.
     172
     173Fixes:
     174
     175* Always correcting 'advanced-cache.php' file while being profiled under Code Profiler.
     176
    165177= 2.27.42 =
    166178
Note: See TracChangeset for help on using the changeset viewer.