Media File Renamer - Version 4.4.4

Version Description

  • Fix: ...
Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 Media File Renamer
Version 4.4.4
Comparing to
See all releases

Code changes from version 4.4.3 to 4.4.4

Files changed (4) hide show
  1. common/admin.css +1 -1
  2. common/admin.php +7 -5
  3. media-file-renamer.php +4 -40
  4. readme.txt +21 -12
common/admin.css CHANGED
@@ -134,7 +134,7 @@
134
  padding: 10px 10px;
135
  }
136
 
137
- .meow-box p.submit {
138
  text-align: right;
139
  margin: 10px -10px -10px -10px;
140
  padding: 7px 10px 10px 0px !important;
134
  padding: 10px 10px;
135
  }
136
 
137
+ .meow-box div.submit {
138
  text-align: right;
139
  margin: 10px -10px -10px -10px;
140
  padding: 7px 10px 10px 0px !important;
common/admin.php CHANGED
@@ -4,8 +4,10 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
4
 
5
  class MeowApps_Admin {
6
 
 
 
7
  public static $loaded = false;
8
- public static $admin_version = "1.6";
9
 
10
  public $prefix; // prefix used for actions, filters (mfrh)
11
  public $mainfile; // plugin main file (media-file-renamer.php)
@@ -151,8 +153,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
151
  }
152
  ?>
153
  <h1 style="line-height: 16px;">
154
- <img width="36" style="margin-right: 10px; float: left; position: relative; top: -5px;"
155
- src="<?php echo $this->meowapps_logo_url(); ?>"><?php echo $title; ?><br />
156
  <span style="font-size: 12px"><?php echo $author; ?></span>
157
  </h1>
158
  <div style="clear: both;"></div>
@@ -174,8 +176,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
174
  // Creates standard menu if it does NOT exist
175
  global $submenu;
176
  if ( !isset( $submenu[ 'meowapps-main-menu' ] ) ) {
177
- add_menu_page( 'Meow Apps', 'Meow Apps', 'manage_options', 'meowapps-main-menu',
178
- array( $this, 'admin_meow_apps' ), 'dashicons-camera', 82 );
179
  add_submenu_page( 'meowapps-main-menu', __( 'Dashboard', 'meowapps' ),
180
  __( 'Dashboard', 'meowapps' ), 'manage_options',
181
  'meowapps-main-menu', array( $this, 'admin_meow_apps' ) );
4
 
5
  class MeowApps_Admin {
6
 
7
+ public static $logo = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB2aWV3Qm94PSIwIDAgMTY1IDE2NSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c3R5bGU+CiAgICAuc3Qye2ZpbGw6IzgwNDYyNX0uc3Qze2ZpbGw6I2ZkYTk2MH0KICA8L3N0eWxlPgogIDxwYXRoIGQ9Ik03MiA3YTc2IDc2IDAgMCAxIDg0IDkxQTc1IDc1IDAgMSAxIDcyIDd6IiBmaWxsPSIjNGE2YjhjIi8+CiAgPHBhdGggZD0iTTQ4IDQ4YzIgNSAyIDEwIDUgMTQgNSA4IDEzIDE3IDIyIDIwbDEtMTBjMS0yIDMtMyA1LTNoMTNjMiAwIDQgMSA1IDNsMyA5IDQtMTBjMi0zIDYtMiA5LTJoMTFjMyAyIDMgNSAzIDhsMiAzN2MwIDMtMSA3LTQgOGgtMTJjLTIgMC0zLTItNS00LTEgMS0yIDMtNCAzLTUgMS05IDEtMTMtMS0zIDItNSAyLTkgMnMtOSAxLTEwLTNjLTItNC0xLTggMC0xMi04LTMtMTUtNy0yMi0xMi03LTctMTUtMTQtMjAtMjMtMy00LTUtOC01LTEzIDEtNCAzLTEwIDYtMTMgNC0zIDEyLTIgMTUgMnoiIGZpbGw9IiMxMDEwMTAiLz4KICA8cGF0aCBjbGFzcz0ic3QyIiBkPSJNNDMgNTFsNCAxMS02IDVoLTZjLTMtNS0zLTExIDAtMTYgMi0yIDYtMyA4IDB6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTQ3IDYybDMgNmMwIDMgMCA0LTIgNnMtNCAyLTcgMmwtNi05aDZsNi01eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik01MCA2OGw4IDljLTMgMy01IDYtOSA4bC04LTljMyAwIDUgMCA3LTJzMy0zIDItNnoiLz4KICA8cGF0aCBkPSJNODIgNzRoMTJsNSAxOCAzIDExIDgtMjloMTNsMiA0MmgtOGwtMS0yLTEtMzEtMTAgMzItNyAxLTktMzMtMSAyOS0xIDRoLThsMy00MnoiIGZpbGw9IiNmZmYiLz4KICA8cGF0aCBjbGFzcz0ic3QzIiBkPSJNNTggNzdsNSA1Yy0xIDQtMiA4LTcgOGwtNy01YzQtMiA2LTUgOS04eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02MyA4Mmw5IDUtNiA5LTEwLTZjNSAwIDYtNCA3LTh6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTcyIDg3bDMgMS0xIDExLTgtMyA2LTEweiIvPgo8L3N2Zz4K';
8
+
9
  public static $loaded = false;
10
+ public static $admin_version = "1.8";
11
 
12
  public $prefix; // prefix used for actions, filters (mfrh)
13
  public $mainfile; // plugin main file (media-file-renamer.php)
153
  }
154
  ?>
155
  <h1 style="line-height: 16px;">
156
+ <img width="42" style="margin-right: 10px; float: left; position: relative; top: -5px;"
157
+ src="<?php echo MeowApps_Admin::$logo ?>"><?php echo $title; ?><br />
158
  <span style="font-size: 12px"><?php echo $author; ?></span>
159
  </h1>
160
  <div style="clear: both;"></div>
176
  // Creates standard menu if it does NOT exist
177
  global $submenu;
178
  if ( !isset( $submenu[ 'meowapps-main-menu' ] ) ) {
179
+ add_menu_page( 'Meow Apps', '<img style="width: 24px; margin-left: -30px; position: absolute; margin-top: -3px;" src="' . MeowApps_Admin::$logo . '" />Meow Apps', 'manage_options', 'meowapps-main-menu',
180
+ array( $this, 'admin_meow_apps' ), '', 82 );
181
  add_submenu_page( 'meowapps-main-menu', __( 'Dashboard', 'meowapps' ),
182
  __( 'Dashboard', 'meowapps' ), 'manage_options',
183
  'meowapps-main-menu', array( $this, 'admin_meow_apps' ) );
media-file-renamer.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
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: 4.4.3
7
  Author: Jordy Meow
8
  Author URI: http://meowapps.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.4.3';
36
 
37
  // Admin
38
  require( 'mfrh_admin.php');
@@ -46,40 +46,4 @@ if ( is_admin() || is_rest() ) {
46
  // UI
47
  require( 'ui.php' );
48
  new Meow_MFRH_UI( $mfrh_core, $mfrh_admin );
49
-
50
- /*******************************************************************************
51
- * TODO: OLD PRO, THIS FUNCTION SHOULD BE REMOVED IN THE FUTURE
52
- ******************************************************************************/
53
-
54
- add_action( 'admin_notices', 'mfrh_meow_old_version_admin_notices' );
55
-
56
- function mfrh_meow_old_version_admin_notices() {
57
- if ( isset( $_POST['mfrh_reset_sub'] ) ) {
58
- delete_transient( 'mfrh_validated' );
59
- delete_option( 'mfrh_pro_serial' );
60
- delete_option( 'mfrh_pro_status' );
61
- }
62
- $subscr_id = get_option( 'mfrh_pro_serial', "" );
63
- if ( empty( $subscr_id ) )
64
- return;
65
- $forever = strpos( $subscr_id, 'F-' ) !== false;
66
- $yearly = strpos( $subscr_id, 'I-' ) !== false;
67
- if ( !$forever && !$yearly )
68
- return;
69
- ?>
70
- <div class="error">
71
- <p>
72
- <h2>IMPORTANT MESSAGE ABOUT MEDIA FILE RENAMER</h2>
73
- In order to comply with WordPress.org, BIG CHANGES in the code and how the plugin was sold were to be made. The plugin needs requires to be purchased and updated through the new <a target='_blank' href="https://store.meowapps.com">Meow Apps Store</a>. This store is also more robust (keys, websites management, invoices, etc). Now, since WordPress.org only accepts free plugins on its repository, this is the one currently installed. Therefore, you need to take an action. <b>Please click here to know more about your license and to learn what to do: <a target='_blank' href='https://meowapps.com/?mkey=<?php echo $subscr_id ?>'>License <?php echo $subscr_id ?></a></b>.
74
- </p>
75
- <p>
76
- <form method="post" action="">
77
- <input type="hidden" name="mfrh_reset_sub" value="true">
78
- <input type="submit" name="submit" id="submit" class="button" value="Got it. Clear this!">
79
- <br /><small><b>Make sure you followed the instruction before clicking this button.</b></small>
80
- </form>
81
- </p>
82
- </div>
83
- <?php
84
- }
85
  }
1
  <?php
2
  /*
3
+ Plugin Name: Media File Auto Renamer
4
  Plugin URI: http://meowapps.com
5
+ Description: Renames automatically the files depending on Media titles and updates the links.
6
+ Version: 4.4.4
7
  Author: Jordy Meow
8
  Author URI: http://meowapps.com
9
  Text Domain: media-file-renamer
32
  if ( is_admin() || is_rest() ) {
33
 
34
  global $mfrh_version, $mfrh_core;
35
+ $mfrh_version = '4.4.4';
36
 
37
  // Admin
38
  require( 'mfrh_admin.php');
46
  // UI
47
  require( 'ui.php' );
48
  new Meow_MFRH_UI( $mfrh_core, $mfrh_admin );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  }
readme.txt CHANGED
@@ -1,29 +1,35 @@
1
- === Media File Renamer ===
2
  Contributors: TigrouMeow, amekusa
3
- Tags: rename, file, files, media, manager, image, renamer, wpml, optimization, seo, retina, gutenberg
4
  Requires at least: 4.8
5
  Tested up to: 5.0
6
- Stable tag: 4.4.3
7
 
8
- Automatically rename files depending on Media titles dynamically + update links. Pro version has many more options. Check the description :)
9
 
10
  == Description ==
11
 
12
- The Media File Auto Renamer is a WordPress plugin that physically renames media files nicely for a cleaner system and for a better SEO. Please read this description.
13
 
14
- **IMPORTANT**. This is originally an *automatic* renamer based on the Media title. This plugin features were all meant to be automatic depending on the title of the Media. Manual Rename (and a few more features) were added two years later, in a Pro version. I add complex features based on requests usually in the Pro to be able to maintain the quality of the plugin and its support.
 
15
 
16
- **HOW IT WORKS**. The plugin automatically renames your media filenames depending on their titles. When files are renamed, the references to it are also updated (posts, pages, custom types and their metadata). A new column in the Media Library will display to you the new ideal filename and a button will allow you to rename it straight away. You can lock and unlock the renaming automatic process through little icons. There is also a little dashboard called File Renamer in Media that will help you rename all your files at once. Advanced users can change the way the files are renamed by using the plugin's filters (check the FAQ). There is also a LOCK option on every image to avoid the filename to be modified any further.
 
17
 
18
- **PRO VERSION**. The [Pro Version](https://meowapps.com/media-file-renamer/) gives a few more features like manual renaming, renaming depending on the post the media is attached to or the content of the alternative text (ALT), logging of SQL queries and a few more options. A good process is to actually let the plugin do the renaming automatically (like in the free version) and to do manual renaming for the files that require fine tuning.
 
19
 
20
- **BE CAREFUL**. File renaming is a dangerous process. Before renaming everything automatically, try to rename a few files first and check carefully that all the references to those files have been properly updated on your website. WordPress has so many themes and plugins that this renaming process can't unfortunately cover all the cases, especially if other plugins are using unconventional ways. If references aren't updated properly, please write a nice post (not an angry one) in the support threads :) I will try my best to cover more and more special cases. In any case, always make a **backup** of your database and files before using a plugin that alter your install. For backup, I recommend use the excellent service called [BlogVault](https://meow.click/blogvault). Also, if your website seems broken after a few renames, try to **clear your cache**. The cached HTML will indeed not be linked to the new filenames.
 
21
 
22
- **FOR DEVELOPER**. The plugin can be tweaked and reference updates enhanced for your themes/plugins. Have a look [here](https://wordpress.org/plugins/media-file-renamer/faq/).
 
23
 
24
- **JUST TO MAKE SURE**. This plugin will not allow you to change the filename manually in its standard version. The [Pro Version](https://meowapps.com/media-file-renamer/) is required. If you are about to *write an angry review* because this feature is not available, please *mention that you read the whole description*.
 
25
 
26
- This plugin works perfectly with WP Retina 2x, WPML and many more. Is has been tested in Windows, Linux, BSD and macOS systems.
27
 
28
  Languages: English, French.
29
 
@@ -47,6 +53,9 @@ Check the FAQ on the official website, [here](https://meowapps.com/media-file-re
47
 
48
  == Changelog ==
49
 
 
 
 
50
  = 4.4.3 =
51
  * Fix: Issue with updating the ALT field.
52
 
1
+ === Media File Auto Renamer ===
2
  Contributors: TigrouMeow, amekusa
3
+ Tags: rename, seo, file, files, media, renamer
4
  Requires at least: 4.8
5
  Tested up to: 5.0
6
+ Stable tag: 4.4.4
7
 
8
+ Physically renames your files nicely for a cleaner system and for a better SEO. Please read the description.
9
 
10
  == Description ==
11
 
12
+ Media File Auto Renamer is a WordPress plugin that physically renames media files nicely for a cleaner system and for a better SEO. Please read this description.
13
 
14
+ === IMPORTANT ===
15
+ This is an *automatic* renamer based on the Media title. This plugin features were all meant to be automatic depending on the title of the Media. Manual Rename (and a few more features) were added two years later, in a Pro version. I add complex features based on requests usually in the Pro to be able to maintain the quality of the plugin and its support.
16
 
17
+ === HOW IT WORKS ===
18
+ The plugin automatically renames your media filenames depending on their titles. When files are renamed, the references to it are also updated (posts, pages, custom types and their metadata). A new column in the Media Library will display to you the new ideal filename and a button will allow you to rename it straight away. You can lock and unlock the renaming automatic process through little icons. There is also a little dashboard called File Renamer in Media that will help you rename all your files at once. Advanced users can change the way the files are renamed by using the plugin's filters (check the FAQ). There is also a LOCK option on every image to avoid the filename to be modified any further.
19
 
20
+ === PRO VERSION ===
21
+ The [Pro Version](https://meowapps.com/media-file-renamer/) gives a few more features like manual renaming, renaming depending on the post the media is attached to or the content of the alternative text (ALT), logging of SQL queries and a few more options. A good process is to actually let the plugin do the renaming automatically (like in the free version) and to do manual renaming for the files that require fine tuning.
22
 
23
+ === BE CAREFUL ===
24
+ File renaming is a dangerous process. Before renaming everything automatically, try to rename a few files first and check carefully that all the references to those files have been properly updated on your website. WordPress has so many themes and plugins that this renaming process can't unfortunately cover all the cases, especially if other plugins are using unconventional ways. If references aren't updated properly, please write a nice post (not an angry one) in the support threads :) I will try my best to cover more and more special cases. In any case, always make a **backup** of your database and files before using a plugin that alter your install. For backup, I recommend use the excellent service called [BlogVault](https://meow.click/blogvault). Also, if your website seems broken after a few renames, try to **clear your cache**. The cached HTML will indeed not be linked to the new filenames.
25
 
26
+ === FOR DEVELOPER ===
27
+ The plugin can be tweaked and reference updates enhanced for your themes/plugins. Have a look [here](https://meowapps.com/media-file-renamer-faq/).
28
 
29
+ === JUST TO MAKE SURE ===
30
+ This plugin will not allow you to change the filename *manually* in its standard version. The [Pro Version](https://meowapps.com/media-file-renamer/) is required. If you are about to *write an angry review* because this feature is not available, at least, please *mention that you read the whole description*.
31
 
32
+ This plugin works perfectly with WP Retina 2x, Polylang, WPML and many more. Is has been tested in Windows, Linux and OSX systems.
33
 
34
  Languages: English, French.
35
 
53
 
54
  == Changelog ==
55
 
56
+ = 4.4.4 =
57
+ * Fix: ...
58
+
59
  = 4.4.3 =
60
  * Fix: Issue with updating the ALT field.
61