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

Restore Retina Support (via WP Retina 2x, aka Perfect Images, plugin compat) #656

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion classes/Media/WP.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace Imagify\Media;

use Imagify\Deprecated\Traits\Media\WPDeprecatedTrait;

defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

/**
Expand All @@ -10,7 +12,7 @@
* @author Grégory Viguier
*/
class WP extends AbstractMedia {
use \Imagify\Deprecated\Traits\Media\WPDeprecatedTrait;
use WPDeprecatedTrait;

/**
* Tell if we’re playing in WP 5.3’s garden.
Expand Down
3 changes: 2 additions & 1 deletion classes/Optimization/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace Imagify\Optimization\Process;

use Imagify\Deprecated\Traits\Optimization\Process\AbstractProcessDeprecatedTrait;
use Imagify\Job\MediaOptimization;
use Imagify\Optimization\Data\DataInterface;
use Imagify\Optimization\File;
Expand All @@ -14,7 +15,7 @@
* @author Grégory Viguier
*/
abstract class AbstractProcess implements ProcessInterface {
use \Imagify\Deprecated\Traits\Optimization\Process\AbstractProcessDeprecatedTrait;
use AbstractProcessDeprecatedTrait;

/**
* The suffix used in the thumbnail size name.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"Imagify\\ThirdParty\\EnableMediaReplace\\": "inc/3rd-party/enable-media-replace/classes/",
"Imagify\\ThirdParty\\FormidablePro\\": "inc/3rd-party/formidable-pro/classes/",
"Imagify\\ThirdParty\\NGG\\": "inc/3rd-party/nextgen-gallery/classes/",
"Imagify\\ThirdParty\\PerfectImages\\": "inc/3rd-party/perfect-images/classes",
"Imagify\\ThirdParty\\RegenerateThumbnails\\": "inc/3rd-party/regenerate-thumbnails/classes/",
"Imagify\\ThirdParty\\WPRocket\\": "inc/3rd-party/wp-rocket/classes/"
},
Expand Down
1 change: 1 addition & 0 deletions inc/3rd-party/3rd-party.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
require IMAGIFY_PATH . 'inc/3rd-party/enable-media-replace/enable-media-replace.php';
require IMAGIFY_PATH . 'inc/3rd-party/formidable-pro/formidable-pro.php';
require IMAGIFY_PATH . 'inc/3rd-party/nextgen-gallery/nextgen-gallery.php';
require IMAGIFY_PATH . 'inc/3rd-party/perfect-images/wp-retina-2x.php';
require IMAGIFY_PATH . 'inc/3rd-party/regenerate-thumbnails/regenerate-thumbnails.php';
require IMAGIFY_PATH . 'inc/3rd-party/screets-lc.php';
require IMAGIFY_PATH . 'inc/3rd-party/wp-real-media-library.php';
Expand Down
Loading