Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix modal footer #748

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
7d352c3
v6.4-a1: Regrouped CDN menu.
Jul 16, 2024
9dfc69e
v6.4-a2 in dev: Auto CDN Setup for cname method
Jul 22, 2024
d55bda8
v6.4-a3: Corrected QC and LSADC cache hit status
Jul 23, 2024
14ffb82
v7.0-a1 in dev: QC activation; Removing domain key and auto cdn setup
Aug 6, 2024
400ff86
Dropped img_optm prio and jumbo packages to improve code simplicity a…
Aug 12, 2024
3a7c639
v7.0-a1: * **Core** Minimum required PHP version escalated to PHP v7.…
Aug 16, 2024
355d0fd
v7.0-a2
Aug 16, 2024
7bbef51
v7.0-a3 in dev: QC service setup
Aug 16, 2024
e912f8e
debugErr() func
Aug 19, 2024
8d80943
cloud key address fix
Aug 19, 2024
640369b
v7.0-a3: * **Cloud** Dropped domain key. Used sodium encryption for a…
Aug 20, 2024
099023a
tpl correction
Aug 20, 2024
1fd0e6c
changlog
Aug 21, 2024
2ba76f7
v7.0-a4: * **GUI** Switch buttons rtl compatibility. (Eliza/Mehrshad …
Aug 21, 2024
e8165a0
v7.0-a5: * **Core** Added rewrite rule to disable visits to `.log` fi…
Aug 21, 2024
3a549e2
v7 changelog update
Aug 22, 2024
7e96ce3
Jump back to dash after QC activation
Aug 26, 2024
a2833da
v7.0-a6: QC activation callback updated to encryption validation.
Aug 26, 2024
e80dc68
typo fix
Aug 26, 2024
02ddab5
Used signature instead of encryption for QC/WPAPI validation
Aug 27, 2024
853ca46
auto clear invalid sk/pk
Aug 27, 2024
a429352
qc v3 my.qc link
Aug 27, 2024
8215639
Clear QUIC.cloud activation button.
Aug 27, 2024
94d5b77
Corrected activation btn
Aug 28, 2024
e37f2a2
Relocated btn
Aug 28, 2024
596e31c
Echo sign done
Aug 28, 2024
61f409d
Used implode instead of json_encode for signature validation.
Aug 29, 2024
9cae3be
Sign key path updated
Aug 29, 2024
0d72e1d
Add min php version (#741)
timotei-litespeed Sep 9, 2024
b33ad29
Corrected min php ver
Sep 9, 2024
0c97868
* **Misc** Improved readme file by adding min supported PHP/WP versio…
Sep 9, 2024
2898833
-
Sep 9, 2024
1e1d4be
v7.0-a7: AVIF in dev
Sep 10, 2024
dfd177c
v7.0-a7: * 🌱**Image Optimization** Added AVIF format.
Sep 10, 2024
13ddcc5
changelog fix
Sep 16, 2024
3fdeda1
v7.0-a8: Dropped QC CDN switch setting.
Sep 16, 2024
dc096da
Used wp_pk instead of signature for QC service API talk
Sep 16, 2024
45a0b91
Added ref for manage login
Sep 16, 2024
b5667b6
QC API param renamed
Sep 16, 2024
22273b1
Typo fix
Sep 18, 2024
593cc62
Add PHP CS in GH Actions and Local (#745)
timotei-litespeed Sep 20, 2024
bea2938
Replace deprecated function (#746)
timotei-litespeed Sep 20, 2024
ed52b93
ip_validate new api update
Sep 20, 2024
525bf17
v7.0-a8
Sep 20, 2024
45d0fb1
Fix modal footer
Tymotey Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,29 @@ on:
pull_request:

jobs:
test:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
node-version: '20'
path: .cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Initialize Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
check-latest: true
cache: npm
cache-dependency-path: package-lock.json

- run: npm ci
# Start actions
- run: mkdir -p .cache
- run: composer install
- run: composer run sniff-check

- run: npm clean-install
- run: npm run format-check
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
.env*
.vscode
node_modules
/vendor
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
**/*.min.*
**/*.ori.*
**/*.tpl.php
composer.json
composer.lock
package.json
package-lock.json
vendor
.cache
assets/js/css_async.js
assets/js/webfontloader.js
lib
Expand Down
5 changes: 5 additions & 0 deletions assets/css/litespeed.css
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,10 @@ h3 .litespeed-learn-more {
position: relative;
}

.rtl .litespeed-switch {
flex-direction: row-reverse;
}

.litespeed-switch input:checked:active + label {
box-shadow:
0 2px 0 rgba(27, 146, 146, 0.7),
Expand Down Expand Up @@ -2805,6 +2809,7 @@ g.litespeed-pie_info .litespeed-pie-done {

.litespeed-dashboard-stats-wrapper {
display: flex;
position: relative;
}

.litespeed-dashboard-stats-wrapper .litespeed-postbox {
Expand Down
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "litespeedtech/lscache_wp",
"require-dev": {
"squizlabs/php_codesniffer": "*",
"phpcompatibility/php-compatibility": "*"
},
"prefer-stable": true,
"scripts": {
"post-install-cmd": "phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"post-update-cmd": "phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"sniff-check": "phpcs"
}
}
161 changes: 161 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions data/const.default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
; O_AUTO_UPGRADE
auto_upgrade = false

; O_API_KEY
api_key = ''

; O_SERVER_IP
server_ip = ''

Expand Down
12 changes: 6 additions & 6 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: LiteSpeed Cache
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
* Description: High-performance page caching and site optimization from LiteSpeed
* Version: 6.5.1-rc1
* Version: 7.0-a8
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
Expand Down Expand Up @@ -34,7 +34,7 @@
return;
}

!defined('LSCWP_V') && define('LSCWP_V', '6.5.1-rc1');
!defined('LSCWP_V') && define('LSCWP_V', '7.0-a8');

!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
!defined('LSCWP_DIR') && define('LSCWP_DIR', __DIR__ . '/'); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Expand Down Expand Up @@ -174,13 +174,13 @@ function wp_create_nonce_litespeed_esi($action = -1)
if (!function_exists('run_litespeed_cache')) {
function run_litespeed_cache()
{
//Check minimum PHP requirements, which is 5.3 at the moment.
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
//Check minimum PHP requirements, which is 7.2 at the moment.
if (version_compare(PHP_VERSION, '7.2.0', '<')) {
return;
}

//Check minimum WP requirements, which is 4.9 at the moment.
if (version_compare($GLOBALS['wp_version'], '4.9', '<')) {
//Check minimum WP requirements, which is 5.3 at the moment.
if (version_compare($GLOBALS['wp_version'], '5.3', '<')) {
return;
}

Expand Down
62 changes: 62 additions & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0"?>
<ruleset name="LiteSpeed Cache Coding Standards">
<description>Apply LiteSpeed Cache Coding Standards to all plugin files</description>

<!--
#############################################################################
COMMAND LINE ARGUMENTS
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset
#############################################################################
-->

<!-- Only scan PHP files -->
<arg name="extensions" value="php"/>

<!-- Cache scan results to use for unchanged files on future scans -->
<arg name="cache" value=".cache/phpcs.json"/>

<!-- Set memory limit to 512M
Ref: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#specifying-phpini-settings
-->
<ini name="memory_limit" value="512M"/>

<!-- Remove unwanted prefix from filepaths -->
<arg name="basepath" value="./"/>

<!-- Check max 20 files in parallel -->
<arg name="parallel" value="20"/>

<!-- Show sniff codes in all reports -->
<arg value="ps"/>

<!--
#############################################################################
FILE SELECTION
Set which files will be subject to the scans executed using this ruleset.
#############################################################################
-->

<file>.</file>

<!-- Exclude any wordpress folder in the current directory -->
<exclude-pattern type="relative">^wordpress/*</exclude-pattern>

<!-- Directories and third-party library exclusions -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>

<!--
#############################################################################
SET UP THE RULESET
#############################################################################
-->
<!-- Check PHP v7.2 and all newer versions -->
<config name="testVersion" value="7.2-"/>

<rule ref="PHPCompatibility">
<!-- Exclude false positives -->
<!-- array_key_firstFound is defined in lib/php-compatibility.func.php -->
<exclude name="PHPCompatibility.FunctionUse.NewFunctions.array_key_firstFound" />
</rule>

</ruleset>
17 changes: 13 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
=== LiteSpeed Cache ===
Contributors: LiteSpeedTech
Tags: caching, optimize, performance, pagespeed, seo, image optimize, object cache, redis, memcached, database cleaner
Requires at least: 4.9
Tested up to: 6.6.1
Stable tag: 6.5.1
Requires at least: 5.3
Requires PHP: 7.2
Tested up to: 6.6
Stable tag: 6.5.0.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl.html

Expand Down Expand Up @@ -48,7 +49,7 @@ LiteSpeed Cache for WordPress is compatible with ClassicPress.
* Single Site and Multisite (Network) support
* Import/Export settings
* Attractive, easy-to-understand interface
* WebP image format support
* AVIF/WebP image format support
* Heartbeat control

<sup>+</sup> This service is not provided by the LSCache plugin, nor is it guaranteed to be installed by your service provider. However, the plugin is compatible with the service if it is in use on your site.
Expand Down Expand Up @@ -254,6 +255,14 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro

== Changelog ==

= 7.0 - Nov 2024 =
* 🌱**Image Optimization** Added AVIF format.
* **Core** Minimum required PHP version escalated to PHP v7.2.0.
* **Core** Minimum required WP version escalated to WP v5.3.
* **Cloud** Dropped `Domain Key`. Used sodium encryption for authentication and validation.
* **GUI** Switch buttons rtl compatibility. (Eliza/Mehrshad Darzi #603)
* **Misc** Improved readme file by adding min supported PHP/WP versions. (Viktor Szépe)

= 6.5.1 - Sep 25 2024 =
* **Media** Sanitized dimensions for the images when replacing with placeholders. (TaiYou)
* **Cloud** Silent API error when failing to retrieve news updates.
Expand Down
Loading
Loading