Skip to content

Commit

Permalink
Modded version
Browse files Browse the repository at this point in the history
  • Loading branch information
ainsleyclark committed Dec 21, 2021
1 parent a9813b2 commit 5321dc2
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 29 deletions.
2 changes: 1 addition & 1 deletion cli/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* functions via the WP CLI.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @category CLI
* @repo https://github.com/ainsleyclark/squidge
*
Expand Down
2 changes: 1 addition & 1 deletion core/Admin/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* admin part of the plugin.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Admin/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* library.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Admin
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* error messages for the plugin.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Package/Convertor.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* coverts or compresses an image.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Package/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* front end.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
3 changes: 1 addition & 2 deletions core/Package/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* and executing commands.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down Expand Up @@ -190,7 +190,6 @@ private static function get_mime_type($file)
public static function has_compressed($id)
{
$meta = get_post_meta($id, self::META_KEY . '_' . static::cmd_name());
Logger::info("Here" . !empty($meta));
return !empty($meta);
}

Expand Down
2 changes: 1 addition & 1 deletion core/Services/AVIF.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* the cwebp library.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Services/JPG.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* library.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Services/PNG.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* library.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Services/WebP.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* the cwebp library.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Squidge.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Main squidge class.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion core/Types/Mimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Mime times for files stored here.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Class
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion functions/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Helper template functions.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Functions
* @repo https://github.com/ainsleyclark/squidge
Expand Down
13 changes: 5 additions & 8 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: image, compression, plugin, image compression, webp, lazy load, optimizati
Requires at least: 5.5
Tested up to: 5.8
Requires PHP: 5.6
Stable tag: 0.1.3
Stable tag: 0.1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -31,13 +31,10 @@ hard work for you.

Squidge compresses and converts image files when the user has uploaded a file to WordPress.

Compresses JPG images using `jpegoptim`.

Compresses PNG images using `optipng`.

Converts JPG and PNG images to `.webp` files using `cwebp` with the appended extension e.g. `image.jpg.webp`.

Converts JPG and PNG images to `.avif` files using `libavif` with the appended extension e.g. `image.jpg.avif`.
- Compresses JPG images using `jpegoptim`.
- Compresses PNG images using `optipng`.
- Converts JPG and PNG images to `.webp` files using `cwebp` with the appended extension e.g. `image.jpg.webp`.
- Converts JPG and PNG images to `.avif` files using `libavif` with the appended extension e.g. `image.jpg.avif`.

== Installation ==

Expand Down
2 changes: 1 addition & 1 deletion squidge.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author: Ainsley Clark
* Author URI: https://github.com/ainsleyclark
* Text Domain: squidge
* Version: 0.1.3
* Version: 0.1.4
* License: GNU
*
* @package Squidge
Expand Down
2 changes: 1 addition & 1 deletion templates/health/avif.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* AVIF health status template.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Templates
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion templates/health/jpg.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* JPG health status template.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Templates
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion templates/health/png.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* PNG health status template.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Templates
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion templates/health/webp.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* WebP health status template.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Templates
* @repo https://github.com/ainsleyclark/squidge
Expand Down
2 changes: 1 addition & 1 deletion templates/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* about Squidge.
*
* @package Squidge
* @version 0.1.3
* @version 0.1.4
* @author Ainsley Clark
* @category Templates
* @repo https://github.com/ainsleyclark/squidge
Expand Down

0 comments on commit 5321dc2

Please sign in to comment.