diff --git a/fly-dynamic-image-resizer.php b/fly-dynamic-image-resizer.php index 366d8fc..c68cab1 100755 --- a/fly-dynamic-image-resizer.php +++ b/fly-dynamic-image-resizer.php @@ -2,7 +2,7 @@ /* Plugin Name: Fly Dynamic Image Resizer Description: Dynamically create image sizes on the fly! -Version: 1.0.2 +Version: 1.0.3 Author: Junaid Bhura Author URI: http://www.junaidbhura.com Text Domain: fly-images @@ -26,8 +26,16 @@ class Fly_Images { * Constructor */ public function __construct() { + /* Initializations */ + add_action( 'init', array( $this, 'init' ) ); + } + + /** + * Initializes Actions + */ + public function init() { /* Checks for Fly Images Directory */ - $this->_fly_dir = $this->get_fly_dir(); + $this->_fly_dir = apply_filters( 'fly_dir_path', $this->get_fly_dir() ); // Check if the Fly Image folder exists and is writeable if ( ! is_dir( $this->_fly_dir ) ) { @@ -39,14 +47,6 @@ public function __construct() { $this->_fly_dir_writeable = true; } - /* Initializations */ - add_action( 'init', array( $this, 'init' ) ); - } - - /** - * Initializes Actions - */ - public function init() { add_action( 'admin_menu', array( $this, 'admin_menu' ) ); add_filter( 'media_row_actions', array( $this, 'media_row_action' ), 10, 2 ); add_action( 'delete_attachment', array( $this, 'delete_attachment' ) ); diff --git a/readme.txt b/readme.txt index 4b29a05..cce61f4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: junaidbhura Tags: media library, images, resize, dynamic, on the fly Requires at least: 3.0 Tested up to: 4.7 -Stable tag: 1.0.2 +Stable tag: 1.0.3 Dynamically create image sizes on the fly! @@ -101,6 +101,9 @@ Create dynamic image sizes in your PHP code! == Changelog == += 1.0.3 = +* Added new filter 'fly_dir_path'. + = 1.0.2 = * Fixed IIS URLs.