Version Description
- Fix: There was a compatibility issue with retina.
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media File Renamer |
Version | 3.5.9 |
Comparing to | |
See all releases |
Code changes from version 3.5.8 to 3.5.9
- common/admin.php +9 -9
- core.php +4 -4
- media-file-renamer.php +2 -2
- readme.txt +4 -1
common/admin.php
CHANGED
@@ -5,7 +5,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
5 |
class MeowApps_Admin {
|
6 |
|
7 |
public static $loaded = false;
|
8 |
-
public static $admin_version = "1.
|
9 |
|
10 |
public $prefix; // prefix used for actions, filters (mfrh)
|
11 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
@@ -161,6 +161,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
161 |
|
162 |
$plugin_file = $plugin . '/' . $plugin . '.php';
|
163 |
if ( is_plugin_active( $plugin_file ) ) {
|
|
|
|
|
164 |
if ( $pro )
|
165 |
return "<small><span style='float: right;'><span class='dashicons dashicons-heart' style='color: rgba(255, 63, 0, 1); font-size: 30px !important; margin-right: 10px;'></span></span></small>";
|
166 |
else
|
@@ -237,26 +239,24 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
237 |
<h3 class=""><span class="dashicons dashicons-camera"></span> UI Plugins </h3>
|
238 |
<ul class="">
|
239 |
<li><b>WP/LR Sync</b> <?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
240 |
-
|
241 |
<li><b>Meow Lightbox</b> <?php echo $this->check_install( 'meow-lightbox' ) ?><br />
|
242 |
-
|
243 |
<li><b>Meow Gallery</b> <?php echo $this->check_install( 'meow-gallery' ) ?><br />
|
244 |
-
|
245 |
-
<li><b>Audio Story for Images</b> <?php echo $this->check_install( 'audio-story-images' ) ?><br />
|
246 |
-
Add audio to your images.</li>
|
247 |
</ul>
|
248 |
</div>
|
249 |
<div class="meow-box meow-col meow-span_1_of_2">
|
250 |
<h3 class=""><span class="dashicons dashicons-admin-tools"></span> System Plugins</h3>
|
251 |
<ul class="">
|
252 |
<li><b>Media File Renamer</b> <?php echo $this->check_install( 'media-file-renamer' ) ?><br />
|
253 |
-
|
254 |
<li><b>Media Cleaner</b> <?php echo $this->check_install( 'media-cleaner' ) ?><br />
|
255 |
Detect the files which are not in use.</li>
|
256 |
<li><b>WP Retina 2x</b> <?php echo $this->check_install( 'wp-retina-2x' ) ?><br />
|
257 |
The famous plugin that adds Retina support.</li>
|
258 |
-
<li><b>WP Category Permalink</b> <?php echo $this->check_install( 'wp-category-permalink' ) ?><br />
|
259 |
-
Allows you to select a main category (or taxonomy) for nicer permalinks.</li>
|
260 |
</ul>
|
261 |
</div>
|
262 |
</div>
|
5 |
class MeowApps_Admin {
|
6 |
|
7 |
public static $loaded = false;
|
8 |
+
public static $admin_version = "1.3";
|
9 |
|
10 |
public $prefix; // prefix used for actions, filters (mfrh)
|
11 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
161 |
|
162 |
$plugin_file = $plugin . '/' . $plugin . '.php';
|
163 |
if ( is_plugin_active( $plugin_file ) ) {
|
164 |
+
if ( $plugin == 'wplr-sync' )
|
165 |
+
$pro = true;
|
166 |
if ( $pro )
|
167 |
return "<small><span style='float: right;'><span class='dashicons dashicons-heart' style='color: rgba(255, 63, 0, 1); font-size: 30px !important; margin-right: 10px;'></span></span></small>";
|
168 |
else
|
239 |
<h3 class=""><span class="dashicons dashicons-camera"></span> UI Plugins </h3>
|
240 |
<ul class="">
|
241 |
<li><b>WP/LR Sync</b> <?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
242 |
+
Synchronize photos (folders, collections, keywords) from Lightroom to WordPress.</li>
|
243 |
<li><b>Meow Lightbox</b> <?php echo $this->check_install( 'meow-lightbox' ) ?><br />
|
244 |
+
Light but powerful lightbox that can also display photo information (EXIF).</li>
|
245 |
<li><b>Meow Gallery</b> <?php echo $this->check_install( 'meow-gallery' ) ?><br />
|
246 |
+
Gallery (using the built-in WP gallery) that makes your website look better.</li>
|
247 |
+
<!-- <li><b>Audio Story for Images</b> <?php echo $this->check_install( 'audio-story-images' ) ?><br />
|
248 |
+
Add audio (music, explanation, ambiance) to your images.</li> -->
|
249 |
</ul>
|
250 |
</div>
|
251 |
<div class="meow-box meow-col meow-span_1_of_2">
|
252 |
<h3 class=""><span class="dashicons dashicons-admin-tools"></span> System Plugins</h3>
|
253 |
<ul class="">
|
254 |
<li><b>Media File Renamer</b> <?php echo $this->check_install( 'media-file-renamer' ) ?><br />
|
255 |
+
For nicer filenames and better SEO.</li>
|
256 |
<li><b>Media Cleaner</b> <?php echo $this->check_install( 'media-cleaner' ) ?><br />
|
257 |
Detect the files which are not in use.</li>
|
258 |
<li><b>WP Retina 2x</b> <?php echo $this->check_install( 'wp-retina-2x' ) ?><br />
|
259 |
The famous plugin that adds Retina support.</li>
|
|
|
|
|
260 |
</ul>
|
261 |
</div>
|
262 |
</div>
|
core.php
CHANGED
@@ -576,7 +576,7 @@ class Meow_MFRH_Core {
|
|
576 |
|
577 |
function save_post( $post_id ) {
|
578 |
$status = get_post_status( $post_id );
|
579 |
-
if ( !in_array( $status, array( 'publish', 'future' ) ) )
|
580 |
return;
|
581 |
$this->rename_media_on_publish( $post_id );
|
582 |
}
|
@@ -636,8 +636,8 @@ class Meow_MFRH_Core {
|
|
636 |
function log_sql( $data, $antidata ) {
|
637 |
if ( !get_option( 'mfrh_logsql' ) || !$this->mfrh_admin->is_registered() )
|
638 |
return;
|
639 |
-
$fh = fopen( trailingslashit(
|
640 |
-
$fh_anti = fopen( trailingslashit(
|
641 |
$date = date( "Y-m-d H:i:s" );
|
642 |
fwrite( $fh, "{$data}\n" );
|
643 |
fwrite( $fh_anti, "{$antidata}\n" );
|
@@ -934,7 +934,7 @@ class Meow_MFRH_Core {
|
|
934 |
if ( $force_rename || ( file_exists( $meta_old_filepath ) && ( ( !file_exists( $meta_new_filepath ) )
|
935 |
|| is_writable( $meta_new_filepath ) ) ) ) {
|
936 |
// WP Retina 2x is detected, let's rename those files as well
|
937 |
-
if ( function_exists( '
|
938 |
$wr2x_old_filepath = $this->str_replace( '.' . $ext, '@2x.' . $ext, $meta_old_filepath );
|
939 |
$wr2x_new_filepath = $this->str_replace( '.' . $ext, '@2x.' . $ext, $meta_new_filepath );
|
940 |
if ( file_exists( $wr2x_old_filepath ) && ( (!file_exists( $wr2x_new_filepath ) ) || is_writable( $wr2x_new_filepath ) ) ) {
|
576 |
|
577 |
function save_post( $post_id ) {
|
578 |
$status = get_post_status( $post_id );
|
579 |
+
if ( !in_array( $status, array( 'publish', 'future', 'private' ) ) )
|
580 |
return;
|
581 |
$this->rename_media_on_publish( $post_id );
|
582 |
}
|
636 |
function log_sql( $data, $antidata ) {
|
637 |
if ( !get_option( 'mfrh_logsql' ) || !$this->mfrh_admin->is_registered() )
|
638 |
return;
|
639 |
+
$fh = fopen( trailingslashit( dirname(__FILE__) ) . 'media-file-renamer/mfrh_sql.log', 'a' );
|
640 |
+
$fh_anti = fopen( trailingslashit( dirname(__FILE__) ) . 'media-file-renamer/mfrh_sql_revert.log', 'a' );
|
641 |
$date = date( "Y-m-d H:i:s" );
|
642 |
fwrite( $fh, "{$data}\n" );
|
643 |
fwrite( $fh_anti, "{$antidata}\n" );
|
934 |
if ( $force_rename || ( file_exists( $meta_old_filepath ) && ( ( !file_exists( $meta_new_filepath ) )
|
935 |
|| is_writable( $meta_new_filepath ) ) ) ) {
|
936 |
// WP Retina 2x is detected, let's rename those files as well
|
937 |
+
if ( function_exists( 'wr2x_get_retina' ) ) {
|
938 |
$wr2x_old_filepath = $this->str_replace( '.' . $ext, '@2x.' . $ext, $meta_old_filepath );
|
939 |
$wr2x_new_filepath = $this->str_replace( '.' . $ext, '@2x.' . $ext, $meta_new_filepath );
|
940 |
if ( file_exists( $wr2x_old_filepath ) && ( (!file_exists( $wr2x_new_filepath ) ) || is_writable( $wr2x_new_filepath ) ) ) {
|
media-file-renamer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Media File Renamer
|
4 |
Plugin URI: http://meowapps.com
|
5 |
Description: Auto-rename the files when titles are modified and update and the references (links). Manual Rename is a Pro option. Please read the description.
|
6 |
-
Version: 3.5.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: http://meowapps.com
|
9 |
Text Domain: media-file-renamer
|
@@ -21,7 +21,7 @@ Originally developed for two of my websites:
|
|
21 |
if ( is_admin() ) {
|
22 |
|
23 |
global $mfrh_version;
|
24 |
-
$mfrh_version = '3.5.
|
25 |
|
26 |
// Admin
|
27 |
require( 'mfrh_admin.php');
|
3 |
Plugin Name: Media File Renamer
|
4 |
Plugin URI: http://meowapps.com
|
5 |
Description: Auto-rename the files when titles are modified and update and the references (links). Manual Rename is a Pro option. Please read the description.
|
6 |
+
Version: 3.5.9
|
7 |
Author: Jordy Meow
|
8 |
Author URI: http://meowapps.com
|
9 |
Text Domain: media-file-renamer
|
21 |
if ( is_admin() ) {
|
22 |
|
23 |
global $mfrh_version;
|
24 |
+
$mfrh_version = '3.5.9';
|
25 |
|
26 |
// Admin
|
27 |
require( 'mfrh_admin.php');
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: TigrouMeow
|
|
3 |
Tags: rename, file, media, management, image, renamer, wpml, wp-retina-2x
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 4.8
|
6 |
-
Stable tag: 3.5.
|
7 |
|
8 |
Automatically rename files depending on Media titles dynamically + update links. Pro version has many more options. Check the description :)
|
9 |
|
@@ -100,6 +100,9 @@ You are welcome to create plugins using Media File Renamer using special rules f
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
103 |
= 3.5.8 =
|
104 |
* Add: New button "Lock All"
|
105 |
* Fix: Button "Unlock All and Rename" was not really unlocking everything.
|
3 |
Tags: rename, file, media, management, image, renamer, wpml, wp-retina-2x
|
4 |
Requires at least: 4.2
|
5 |
Tested up to: 4.8
|
6 |
+
Stable tag: 3.5.9
|
7 |
|
8 |
Automatically rename files depending on Media titles dynamically + update links. Pro version has many more options. Check the description :)
|
9 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 3.5.9 =
|
104 |
+
* Fix: There was a compatibility issue with retina.
|
105 |
+
|
106 |
= 3.5.8 =
|
107 |
* Add: New button "Lock All"
|
108 |
* Fix: Button "Unlock All and Rename" was not really unlocking everything.
|