Version Description
- Update: Dashboard and Updater... updated.
- Fix: The WooCommerce add-on file was missing.
- Fix: Search was sometimes not working properly in the Media Library.
- Info: We are working on a bunch of updates concerning the usage of dots, hyphens and other characters, so expect the renaming rules to change a bit (for the best).
- Note: If you like it, please review the plugin here: https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post. It's important for us :) Thank you!
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media File Renamer |
Version | 4.5.5 |
Comparing to | |
See all releases |
Code changes from version 4.5.4 to 4.5.5
- common/admin.css +4 -1
- common/admin.php +50 -23
- core.php +1 -1
- helpers.php +2 -1
- media-file-renamer.php +2 -2
- plugins/woocommerce.php +18 -0
- readme.txt +11 -7
common/admin.css
CHANGED
@@ -308,11 +308,14 @@
|
|
308 |
margin: 0px;
|
309 |
}
|
310 |
|
|
|
|
|
|
|
|
|
311 |
.meow-dashboard .meow-box li {
|
312 |
border-bottom: 1px solid #eee;
|
313 |
margin: 0px;
|
314 |
padding: 10px;
|
315 |
-
min-height: 80px;
|
316 |
box-sizing: border-box;
|
317 |
}
|
318 |
|
308 |
margin: 0px;
|
309 |
}
|
310 |
|
311 |
+
.meow-featured-plugins .meow-box li {
|
312 |
+
min-height: 80px;
|
313 |
+
}
|
314 |
+
|
315 |
.meow-dashboard .meow-box li {
|
316 |
border-bottom: 1px solid #eee;
|
317 |
margin: 0px;
|
318 |
padding: 10px;
|
|
|
319 |
box-sizing: border-box;
|
320 |
}
|
321 |
|
common/admin.php
CHANGED
@@ -7,7 +7,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
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 = "
|
11 |
|
12 |
public $prefix; // prefix used for actions, filters (mfrh)
|
13 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
@@ -29,21 +29,30 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
29 |
$this->prefix = $prefix;
|
30 |
$this->mainfile = $mainfile;
|
31 |
$this->domain = $domain;
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
44 |
}
|
45 |
}
|
46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
function show_meowapps_create_rating_date() {
|
@@ -147,7 +156,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
147 |
|
148 |
function display_title( $title = "Meow Apps",
|
149 |
$author = "By <a style='text-decoration: none;' href='https://meowapps.com' target='_blank'>Jordy Meow</a>" ) {
|
150 |
-
if ( !empty( $this->prefix ) )
|
151 |
$title = apply_filters( $this->prefix . '_plugin_title', $title );
|
152 |
if ( $this->display_ads() ) {
|
153 |
}
|
@@ -190,9 +199,9 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
190 |
add_settings_field( 'meowapps_force_sslverify', "SSL Verify",
|
191 |
array( $this, 'meowapps_force_sslverify_callback' ),
|
192 |
'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
193 |
-
add_settings_field( 'meowapps_hide_ads', "Ads",
|
194 |
-
|
195 |
-
|
196 |
register_setting( 'meowapps_common_settings', 'force_sslverify' );
|
197 |
register_setting( 'meowapps_common_settings', 'meowapps_hide_meowapps' );
|
198 |
register_setting( 'meowapps_common_settings', 'meowapps_hide_ads' );
|
@@ -334,14 +343,15 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
334 |
else {
|
335 |
|
336 |
?>
|
337 |
-
<?php $this->display_title(); ?>
|
338 |
<p>
|
339 |
<?php _e( 'Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking <a target="_blank" href="http://offbeatjapan.org">a lot of photos</a>). Meow Apps is a suite of plugins focusing on photography, imaging, optimization and it teams up with the best players in the community (other themes and plugins developers). For more information, please check <a href="http://meowapps.com" target="_blank">Meow Apps</a>.', 'meowapps' )
|
340 |
?>
|
341 |
</p>
|
342 |
-
|
|
|
|
|
343 |
<div class="meow-box meow-col meow-span_1_of_2 ">
|
344 |
-
<h3 class=""><span class="dashicons dashicons-camera"></span> UI Plugins </h3>
|
345 |
<ul class="">
|
346 |
<li><img src='<?= $this->common_url( 'img/wplr-sync.jpg' ) ?>' /><b>WP/LR Sync</b>
|
347 |
<?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
@@ -355,7 +365,6 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
355 |
</ul>
|
356 |
</div>
|
357 |
<div class="meow-box meow-col meow-span_1_of_2">
|
358 |
-
<h3 class=""><span class="dashicons dashicons-admin-tools"></span> System Plugins</h3>
|
359 |
<ul class="">
|
360 |
<li><img src='<?= $this->common_url( 'img/media-file-renamer.jpg' ) ?>' /><b>Media File Renamer</b>
|
361 |
<?php echo $this->check_install( 'media-file-renamer' ) ?><br />
|
@@ -370,6 +379,27 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
370 |
</div>
|
371 |
</div>
|
372 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
<div class="meow-row">
|
374 |
<div class="meow-box meow-col meow-span_2_of_3">
|
375 |
<h3><span class="dashicons dashicons-admin-tools"></span> Common</h3>
|
@@ -409,11 +439,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
409 |
</div>
|
410 |
</div>
|
411 |
|
412 |
-
|
413 |
<?php
|
414 |
-
|
415 |
}
|
416 |
-
|
417 |
echo "<br /><small style='color: lightgray;'>Meow Admin " . MeowApps_Admin::$admin_version . "</small></div>";
|
418 |
}
|
419 |
|
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 = "2.0";
|
11 |
|
12 |
public $prefix; // prefix used for actions, filters (mfrh)
|
13 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
29 |
$this->prefix = $prefix;
|
30 |
$this->mainfile = $mainfile;
|
31 |
$this->domain = $domain;
|
32 |
+
$this->is_theme = ( strpos( $this->mainfile, '-theme' ) !== false );
|
33 |
|
34 |
+
// If there is no mainfile, it's either a Pro only Plugin (with no Free version available) or a Theme.
|
35 |
+
if ( !$this->is_theme ) {
|
36 |
+
register_activation_hook( $mainfile, array( $this, 'show_meowapps_create_rating_date' ) );
|
37 |
+
if ( is_admin() ) {
|
38 |
+
$license = get_option( $this->prefix . '_license', "" );
|
39 |
+
if ( ( !empty( $license ) ) && !file_exists( plugin_dir_path( $this->mainfile ) . 'common/meowapps/admin.php' ) ) {
|
40 |
+
add_action( 'admin_notices', array( $this, 'admin_notices_licensed_free' ) );
|
41 |
+
}
|
42 |
+
if ( !$disableReview ) {
|
43 |
+
$rating_date = $this->create_rating_date();
|
44 |
+
if ( time() > $rating_date ) {
|
45 |
+
add_action( 'admin_notices', array( $this, 'admin_notices_rating' ) );
|
46 |
+
}
|
47 |
}
|
48 |
}
|
49 |
}
|
50 |
+
|
51 |
+
add_filter( 'edd_sl_api_request_verify_ssl', array( $this, 'request_verify_ssl' ), 10, 0 );
|
52 |
+
}
|
53 |
+
|
54 |
+
function request_verify_ssl() {
|
55 |
+
return get_option( 'force_sslverify', false );
|
56 |
}
|
57 |
|
58 |
function show_meowapps_create_rating_date() {
|
156 |
|
157 |
function display_title( $title = "Meow Apps",
|
158 |
$author = "By <a style='text-decoration: none;' href='https://meowapps.com' target='_blank'>Jordy Meow</a>" ) {
|
159 |
+
if ( !empty( $this->prefix ) && $title !== "Meow Apps" )
|
160 |
$title = apply_filters( $this->prefix . '_plugin_title', $title );
|
161 |
if ( $this->display_ads() ) {
|
162 |
}
|
199 |
add_settings_field( 'meowapps_force_sslverify', "SSL Verify",
|
200 |
array( $this, 'meowapps_force_sslverify_callback' ),
|
201 |
'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
202 |
+
// add_settings_field( 'meowapps_hide_ads', "Ads",
|
203 |
+
// array( $this, 'meowapps_hide_ads_callback' ),
|
204 |
+
// 'meowapps_common_settings-menu', 'meowapps_common_settings' );
|
205 |
register_setting( 'meowapps_common_settings', 'force_sslverify' );
|
206 |
register_setting( 'meowapps_common_settings', 'meowapps_hide_meowapps' );
|
207 |
register_setting( 'meowapps_common_settings', 'meowapps_hide_ads' );
|
343 |
else {
|
344 |
|
345 |
?>
|
346 |
+
<?php $this->display_title( 'Meow Apps' ); ?>
|
347 |
<p>
|
348 |
<?php _e( 'Meow Apps is run by Jordy Meow, a photographer and software developer living in Japan (and taking <a target="_blank" href="http://offbeatjapan.org">a lot of photos</a>). Meow Apps is a suite of plugins focusing on photography, imaging, optimization and it teams up with the best players in the community (other themes and plugins developers). For more information, please check <a href="http://meowapps.com" target="_blank">Meow Apps</a>.', 'meowapps' )
|
349 |
?>
|
350 |
</p>
|
351 |
+
|
352 |
+
<h2 style="margin-bottom: 0px; margin-top: 25px;">Featured Plugins</h2>
|
353 |
+
<div class="meow-row meow-featured-plugins">
|
354 |
<div class="meow-box meow-col meow-span_1_of_2 ">
|
|
|
355 |
<ul class="">
|
356 |
<li><img src='<?= $this->common_url( 'img/wplr-sync.jpg' ) ?>' /><b>WP/LR Sync</b>
|
357 |
<?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
365 |
</ul>
|
366 |
</div>
|
367 |
<div class="meow-box meow-col meow-span_1_of_2">
|
|
|
368 |
<ul class="">
|
369 |
<li><img src='<?= $this->common_url( 'img/media-file-renamer.jpg' ) ?>' /><b>Media File Renamer</b>
|
370 |
<?php echo $this->check_install( 'media-file-renamer' ) ?><br />
|
379 |
</div>
|
380 |
</div>
|
381 |
|
382 |
+
<h2>Recommendations</h2>
|
383 |
+
<div style="background: white; padding: 5px 15px 5px 15px; box-shadow: 2px 2px 1px rgba(0,0,0,.02);">
|
384 |
+
<p>
|
385 |
+
<?php _e( 'Too many WordPress installs are blown-up with useless and/or huge plugins, and bad practices. But that is because most users are overwhelmed by the diversity and immensity of the WordPress jungle. One rule of thumb is to keep your install the simplest as possible, with the least amount of plugins, in number and weight.', 'meowapps' )?>
|
386 |
+
</p>
|
387 |
+
<p>
|
388 |
+
<?php _e( 'Articles are kept being updated on the Meow Apps website, with all the latest recommendations. Please have a look and make your WordPress simpler, faster, better: ', 'meowapps' )?>
|
389 |
+
<a href='https://meowapps.com/debugging-wordpress/' target='_blank'>
|
390 |
+
How To Debug</a>,
|
391 |
+
<a href='https://meowapps.com/seo-optimization/' target='_blank'>
|
392 |
+
SEO Checklist & Optimization</a>,
|
393 |
+
<a href='https://meowapps.com/clean-optimize-wordpress/' target='_blank'>
|
394 |
+
Clean Up and Optimize</a>,
|
395 |
+
<a href='https://meowapps.com/optimize-images-cdn/' target='_blank'>
|
396 |
+
Optimize Images</a>,
|
397 |
+
<a href='https://meowapps.com/best-hosting-services-wordpress/' target='_blank'>
|
398 |
+
Best Hosting Services</a>.
|
399 |
+
</p>
|
400 |
+
</div>
|
401 |
+
|
402 |
+
<h2 style="margin-bottom: 0px; margin-top: 25px;">Common Options & Tools</h2>
|
403 |
<div class="meow-row">
|
404 |
<div class="meow-box meow-col meow-span_2_of_3">
|
405 |
<h3><span class="dashicons dashicons-admin-tools"></span> Common</h3>
|
439 |
</div>
|
440 |
</div>
|
441 |
|
|
|
442 |
<?php
|
|
|
443 |
}
|
|
|
444 |
echo "<br /><small style='color: lightgray;'>Meow Admin " . MeowApps_Admin::$admin_version . "</small></div>";
|
445 |
}
|
446 |
|
core.php
CHANGED
@@ -466,7 +466,7 @@ SQL;
|
|
466 |
// Conversion table
|
467 |
static $chars = null;
|
468 |
|
469 |
-
if ( is_null($chars) ) {
|
470 |
$chars = array (
|
471 |
// iexcl and iquest
|
472 |
'%c2%a1', '%c2%bf',
|
466 |
// Conversion table
|
467 |
static $chars = null;
|
468 |
|
469 |
+
if ( is_null( $chars ) ) {
|
470 |
$chars = array (
|
471 |
// iexcl and iquest
|
472 |
'%c2%a1', '%c2%bf',
|
helpers.php
CHANGED
@@ -18,10 +18,11 @@ if ( !function_exists( 'is_rest' ) ) {
|
|
18 |
|| isset($_GET['rest_route']) // (#2)
|
19 |
&& strpos( trim( $_GET['rest_route'], '\\/' ), $prefix , 0 ) === 0)
|
20 |
return true;
|
21 |
-
|
22 |
// (#3)
|
23 |
$rest_url = wp_parse_url( site_url( $prefix ) );
|
24 |
$current_url = wp_parse_url( add_query_arg( array( ) ) );
|
|
|
|
|
25 |
return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
|
26 |
}
|
27 |
}
|
18 |
|| isset($_GET['rest_route']) // (#2)
|
19 |
&& strpos( trim( $_GET['rest_route'], '\\/' ), $prefix , 0 ) === 0)
|
20 |
return true;
|
|
|
21 |
// (#3)
|
22 |
$rest_url = wp_parse_url( site_url( $prefix ) );
|
23 |
$current_url = wp_parse_url( add_query_arg( array( ) ) );
|
24 |
+
if ( !isset( $current_url['path'] ) || !isset( $rest_url['path'] ) )
|
25 |
+
return false;
|
26 |
return strpos( $current_url['path'], $rest_url['path'], 0 ) === 0;
|
27 |
}
|
28 |
}
|
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.5.
|
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.5.
|
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.5.5
|
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.5.5';
|
36 |
|
37 |
// Admin
|
38 |
require( 'mfrh_admin.php');
|
plugins/woocommerce.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
add_action( 'added_post_meta', 'mfrh_wc_update_meta', 10, 4 );
|
4 |
+
add_action( 'updated_post_meta', 'mfrh_wc_update_meta', 10, 4 );
|
5 |
+
|
6 |
+
function mfrh_wc_update_meta( $meta_id, $post_id, $meta_key, $meta_value )
|
7 |
+
{
|
8 |
+
if ( '_product_image_gallery' == $meta_key ) {
|
9 |
+
$ids = explode( ',', $meta_value );
|
10 |
+
foreach ( $ids as $id ) {
|
11 |
+
wp_update_post( array( 'ID' => $id, 'post_parent' => $post_id ) );
|
12 |
+
global $mfrh_core;
|
13 |
+
$mfrh_core->rename( $id );
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
?>
|
readme.txt
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
=== Media File Renamer (Auto Rename) ===
|
2 |
Contributors: TigrouMeow, amekusa
|
3 |
Tags: rename, seo, file, files, media, renamer, optimize, library
|
|
|
4 |
Requires at least: 4.8
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 4.5.
|
8 |
|
9 |
Physically renames your files nicely for a cleaner system and for a better SEO. Please read the description.
|
10 |
|
@@ -21,7 +22,7 @@ The plugin automatically renames your media filenames depending on their titles.
|
|
21 |
[youtube https://youtu.be/RjaA-b3avxs]
|
22 |
|
23 |
=== PRO VERSION ===
|
24 |
-
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.
|
25 |
|
26 |
=== BE CAREFUL ===
|
27 |
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.
|
@@ -30,7 +31,7 @@ File renaming is a dangerous process. Before renaming everything automatically,
|
|
30 |
The plugin can be tweaked and reference updates enhanced for your themes/plugins. Have a look [here](https://meowapps.com/media-file-renamer-faq/).
|
31 |
|
32 |
=== JUST TO MAKE SURE ===
|
33 |
-
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*.
|
34 |
|
35 |
This plugin works perfectly with WP Retina 2x, Polylang, WPML and many more. Is has been tested in Windows, Linux and OSX systems.
|
36 |
|
@@ -44,7 +45,7 @@ Languages: English, French.
|
|
44 |
|
45 |
== Frequently Asked Questions ==
|
46 |
|
47 |
-
Check the FAQ on the official website, [here](https://meowapps.com/media-file-renamer
|
48 |
|
49 |
== Screenshots ==
|
50 |
|
@@ -56,8 +57,12 @@ Check the FAQ on the official website, [here](https://meowapps.com/media-file-re
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
59 |
-
= 4.5.
|
|
|
|
|
60 |
* Fix: Search was sometimes not working properly in the Media Library.
|
|
|
|
|
61 |
|
62 |
= 4.5.2 =
|
63 |
* Update: Code cleaning, Youtube video.
|
@@ -75,7 +80,6 @@ Check the FAQ on the official website, [here](https://meowapps.com/media-file-re
|
|
75 |
* Fix: Removed Updraft.
|
76 |
* Update: UTF-8 is handled by default, no need to have an option for it.
|
77 |
* Add: Option for transliteration (cyrillic, accents, umlauts).
|
78 |
-
* Note: If you like it, please review the plugin here: https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post. It's important for us :) Thank you!
|
79 |
|
80 |
= 4.2.2 =
|
81 |
* Add: Polylang compatibility.
|
1 |
=== Media File Renamer (Auto Rename) ===
|
2 |
Contributors: TigrouMeow, amekusa
|
3 |
Tags: rename, seo, file, files, media, renamer, optimize, library
|
4 |
+
Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a950f61832f
|
5 |
Requires at least: 4.8
|
6 |
+
Tested up to: 5.2
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 4.5.5
|
9 |
|
10 |
Physically renames your files nicely for a cleaner system and for a better SEO. Please read the description.
|
11 |
|
22 |
[youtube https://youtu.be/RjaA-b3avxs]
|
23 |
|
24 |
=== PRO VERSION ===
|
25 |
+
The [Pro Version](https://meowapps.com/plugin/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.
|
26 |
|
27 |
=== BE CAREFUL ===
|
28 |
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.
|
31 |
The plugin can be tweaked and reference updates enhanced for your themes/plugins. Have a look [here](https://meowapps.com/media-file-renamer-faq/).
|
32 |
|
33 |
=== JUST TO MAKE SURE ===
|
34 |
+
This plugin will not allow you to change the filename *manually* in its standard version. The [Pro Version](https://meowapps.com/plugin/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*.
|
35 |
|
36 |
This plugin works perfectly with WP Retina 2x, Polylang, WPML and many more. Is has been tested in Windows, Linux and OSX systems.
|
37 |
|
45 |
|
46 |
== Frequently Asked Questions ==
|
47 |
|
48 |
+
Check the FAQ on the official website, [here](https://meowapps.com/media-file-renamer-faq/).
|
49 |
|
50 |
== Screenshots ==
|
51 |
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 4.5.5 =
|
61 |
+
* Update: Dashboard and Updater... updated.
|
62 |
+
* Fix: The WooCommerce add-on file was missing.
|
63 |
* Fix: Search was sometimes not working properly in the Media Library.
|
64 |
+
* Info: We are working on a bunch of updates concerning the usage of dots, hyphens and other characters, so expect the renaming rules to change a bit (for the best).
|
65 |
+
* Note: If you like it, please review the plugin here: https://wordpress.org/support/plugin/media-file-renamer/reviews/?rate=5#new-post. It's important for us :) Thank you!
|
66 |
|
67 |
= 4.5.2 =
|
68 |
* Update: Code cleaning, Youtube video.
|
80 |
* Fix: Removed Updraft.
|
81 |
* Update: UTF-8 is handled by default, no need to have an option for it.
|
82 |
* Add: Option for transliteration (cyrillic, accents, umlauts).
|
|
|
83 |
|
84 |
= 4.2.2 =
|
85 |
* Add: Polylang compatibility.
|