Version Description
- Add: There was an issue with Auto-Rename sometimes not appearing when the Sensitive Files Check was disabled.
- Note: If you like it, please review the plugin by clicking here. It's important for us - we need motivation for all the work we want to put in the next version :)
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media File Renamer |
Version | 4.6.9 |
Comparing to | |
See all releases |
Code changes from version 4.6.8 to 4.6.9
- core.php +1 -1
- helpers.php +2 -0
- media-file-renamer.php +2 -2
- readme.txt +5 -2
core.php
CHANGED
@@ -43,7 +43,7 @@ class Meow_MFRH_Core {
|
|
43 |
|
44 |
$sensitive_check = get_option( 'mfrh_case_sensitive_check', true );
|
45 |
if ( !$sensitive_check ) {
|
46 |
-
return file_exists( $filename );
|
47 |
}
|
48 |
|
49 |
$output = false;
|
43 |
|
44 |
$sensitive_check = get_option( 'mfrh_case_sensitive_check', true );
|
45 |
if ( !$sensitive_check ) {
|
46 |
+
return file_exists( $filename ) ? $filename : false;
|
47 |
}
|
48 |
|
49 |
$output = false;
|
helpers.php
CHANGED
@@ -27,6 +27,8 @@ if ( !function_exists( 'is_rest' ) ) {
|
|
27 |
// (#4)
|
28 |
$rest_url = wp_parse_url( trailingslashit( rest_url( ) ) );
|
29 |
$current_url = wp_parse_url( add_query_arg( array( ) ) );
|
|
|
|
|
30 |
return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
|
31 |
}
|
32 |
}
|
27 |
// (#4)
|
28 |
$rest_url = wp_parse_url( trailingslashit( rest_url( ) ) );
|
29 |
$current_url = wp_parse_url( add_query_arg( array( ) ) );
|
30 |
+
if ( !$rest_url || !$current_url )
|
31 |
+
return false;
|
32 |
return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
|
33 |
}
|
34 |
}
|
media-file-renamer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Media File Renamer (Auto Rename)
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Renames automatically the files depending on Media titles and updates the links.
|
6 |
-
Version: 4.6.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://jordymeow.com
|
9 |
Text Domain: media-file-renamer
|
@@ -32,7 +32,7 @@ require( 'helpers.php');
|
|
32 |
if ( is_admin() || is_rest() ) {
|
33 |
|
34 |
global $mfrh_version, $mfrh_core;
|
35 |
-
$mfrh_version = '4.6.
|
36 |
|
37 |
// Admin
|
38 |
require( 'mfrh_admin.php');
|
3 |
Plugin Name: Media File Renamer (Auto Rename)
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Renames automatically the files depending on Media titles and updates the links.
|
6 |
+
Version: 4.6.9
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://jordymeow.com
|
9 |
Text Domain: media-file-renamer
|
32 |
if ( is_admin() || is_rest() ) {
|
33 |
|
34 |
global $mfrh_version, $mfrh_core;
|
35 |
+
$mfrh_version = '4.6.9';
|
36 |
|
37 |
// Admin
|
38 |
require( 'mfrh_admin.php');
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a95
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 7.0
|
8 |
-
Stable tag: 4.6.
|
9 |
|
10 |
Physically renames your files nicely for a cleaner system and for a better SEO. Please read the description.
|
11 |
|
@@ -57,10 +57,13 @@ Check the FAQ on the official website, [here](https://meowapps.com/media-file-re
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
|
|
60 |
= 4.6.8 =
|
61 |
* Add: New filter 'mfrh_allow_rename'. Developers can now allow/reject the renaming (useful for bulk).
|
62 |
* Fix: The file numbering wasn't working fine in a few specific cases.
|
63 |
-
* Note: If you like it, please review the plugin [by clicking here](https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post). It's important for us - we need motivation for all the work we want to put in the next version :)
|
64 |
|
65 |
= 4.6.7 =
|
66 |
* Add: Better handling of dots and hyphens (especially the non-standard ones).
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 4.6.9
|
9 |
|
10 |
Physically renames your files nicely for a cleaner system and for a better SEO. Please read the description.
|
11 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 4.6.9 =
|
61 |
+
* Add: There was an issue with Auto-Rename sometimes not appearing when the Sensitive Files Check was disabled.
|
62 |
+
* Note: If you like it, please review the plugin [by clicking here](https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post). It's important for us - we need motivation for all the work we want to put in the next version :)
|
63 |
+
|
64 |
= 4.6.8 =
|
65 |
* Add: New filter 'mfrh_allow_rename'. Developers can now allow/reject the renaming (useful for bulk).
|
66 |
* Fix: The file numbering wasn't working fine in a few specific cases.
|
|
|
67 |
|
68 |
= 4.6.7 =
|
69 |
* Add: Better handling of dots and hyphens (especially the non-standard ones).
|