Changeset 3371681
- Timestamp:
- 10/02/2025 09:44:45 AM (6 months ago)
- Location:
- enable-media-replace
- Files:
-
- 8 edited
- 1 copied
-
tags/4.1.7 (copied) (copied from enable-media-replace/trunk)
-
tags/4.1.7/classes/ViewController.php (modified) (2 diffs)
-
tags/4.1.7/classes/emr-plugin.php (modified) (2 diffs)
-
tags/4.1.7/enable-media-replace.php (modified) (2 diffs)
-
tags/4.1.7/readme.txt (modified) (2 diffs)
-
trunk/classes/ViewController.php (modified) (2 diffs)
-
trunk/classes/emr-plugin.php (modified) (2 diffs)
-
trunk/enable-media-replace.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enable-media-replace/tags/4.1.7/classes/ViewController.php
r2903341 r3371681 115 115 break; 116 116 case self::ERROR_DIRECTORY_SECURITY: 117 $message = __('Specifi ced directory is outside the upload directory. This is not allowed for security reasons', 'enable-media-replace');117 $message = __('Specified directory is outside the upload directory. This is not allowed for security reasons', 'enable-media-replace'); 118 118 $path = isset($errorData['path']) ? $errorData['path'] : false; 119 119 $basedir = isset($errorData['basedir']) ? $errorData['basedir'] : false; … … 125 125 break; 126 126 case self::ERROR_DIRECTORY_NOTEXIST: 127 $message = __('Specifi ced new directory does not exist. Path must be a relative path from the upload directory and exist', 'enable-media-replace');127 $message = __('Specified new directory does not exist. Path must be a relative path from the upload directory and exist', 'enable-media-replace'); 128 128 break; 129 129 -
enable-media-replace/tags/4.1.7/classes/emr-plugin.php
r3010103 r3371681 643 643 * @todo Note this returns the wrong date, ie. server date not corrected for timezone. Function could be removed altogether, not sure about purpose. 644 644 */ 645 public function get_modified_date($atts) 646 { 647 $id=0; 648 $format= ''; 649 650 extract(shortcode_atts(array( 651 'id' => '', 652 'format' => get_option('date_format') . " " . get_option('time_format'), 653 ), $atts)); 654 655 if ($id == '') { 656 return false; 657 } 658 645 public function get_modified_date($args) 646 { 647 648 $id = isset($args['id']) ? intval($args['id']) : false; 649 $format = isset($args['format']) ? sanitize_text_field($args['format']) : false; 650 651 if (false === $id) 652 { 653 return false; 654 } 655 659 656 // Get path to file 660 657 $current_file = get_attached_file($id); … … 667 664 $filetime = filemtime($current_file); 668 665 666 if (false === $format) 667 { 668 $format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); 669 } 670 669 671 if (false !== $filetime) { 670 672 // do date conversion 671 return date($format, $filetime);673 return wp_date($format, $filetime); 672 674 } 673 675 -
enable-media-replace/tags/4.1.7/enable-media-replace.php
r3363829 r3371681 2 2 /** 3 3 * Plugin Name: Enable Media Replace 4 * Plugin URI: https:// shortpixel.com4 * Plugin URI: https://wordpress.org/plugins/enable-media-replace/ 5 5 * Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library. 6 * Version: 4.1. 66 * Version: 4.1.7 7 7 * Author: ShortPixel 8 8 * Author URI: https://shortpixel.com … … 26 26 */ 27 27 28 define( 'EMR_VERSION', '4.1. 6' );28 define( 'EMR_VERSION', '4.1.7' ); 29 29 30 30 if ( ! defined( 'ABSPATH' ) ) { -
enable-media-replace/tags/4.1.7/readme.txt
r3261237 r3371681 6 6 Tested up to: 6.8 7 7 Requires PHP: 5.6 8 Stable tag: 4.1. 68 Stable tag: 4.1.7 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 81 81 == Changelog == 82 83 = 4.1.7 = 84 85 Release date: October 2, 2025 86 * Fix: A potential "Cross-Site Scripting" vulnerability has been patched, responsibly disclosed by the WordFence team; 87 * Fix: Corrected a few text typos. 82 88 83 89 = 4.1.6 = -
enable-media-replace/trunk/classes/ViewController.php
r2903341 r3371681 115 115 break; 116 116 case self::ERROR_DIRECTORY_SECURITY: 117 $message = __('Specifi ced directory is outside the upload directory. This is not allowed for security reasons', 'enable-media-replace');117 $message = __('Specified directory is outside the upload directory. This is not allowed for security reasons', 'enable-media-replace'); 118 118 $path = isset($errorData['path']) ? $errorData['path'] : false; 119 119 $basedir = isset($errorData['basedir']) ? $errorData['basedir'] : false; … … 125 125 break; 126 126 case self::ERROR_DIRECTORY_NOTEXIST: 127 $message = __('Specifi ced new directory does not exist. Path must be a relative path from the upload directory and exist', 'enable-media-replace');127 $message = __('Specified new directory does not exist. Path must be a relative path from the upload directory and exist', 'enable-media-replace'); 128 128 break; 129 129 -
enable-media-replace/trunk/classes/emr-plugin.php
r3010103 r3371681 643 643 * @todo Note this returns the wrong date, ie. server date not corrected for timezone. Function could be removed altogether, not sure about purpose. 644 644 */ 645 public function get_modified_date($atts) 646 { 647 $id=0; 648 $format= ''; 649 650 extract(shortcode_atts(array( 651 'id' => '', 652 'format' => get_option('date_format') . " " . get_option('time_format'), 653 ), $atts)); 654 655 if ($id == '') { 656 return false; 657 } 658 645 public function get_modified_date($args) 646 { 647 648 $id = isset($args['id']) ? intval($args['id']) : false; 649 $format = isset($args['format']) ? sanitize_text_field($args['format']) : false; 650 651 if (false === $id) 652 { 653 return false; 654 } 655 659 656 // Get path to file 660 657 $current_file = get_attached_file($id); … … 667 664 $filetime = filemtime($current_file); 668 665 666 if (false === $format) 667 { 668 $format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); 669 } 670 669 671 if (false !== $filetime) { 670 672 // do date conversion 671 return date($format, $filetime);673 return wp_date($format, $filetime); 672 674 } 673 675 -
enable-media-replace/trunk/enable-media-replace.php
r3363829 r3371681 2 2 /** 3 3 * Plugin Name: Enable Media Replace 4 * Plugin URI: https:// shortpixel.com4 * Plugin URI: https://wordpress.org/plugins/enable-media-replace/ 5 5 * Description: Enable replacing media files by uploading a new file in the "Edit Media" section of the WordPress Media Library. 6 * Version: 4.1. 66 * Version: 4.1.7 7 7 * Author: ShortPixel 8 8 * Author URI: https://shortpixel.com … … 26 26 */ 27 27 28 define( 'EMR_VERSION', '4.1. 6' );28 define( 'EMR_VERSION', '4.1.7' ); 29 29 30 30 if ( ! defined( 'ABSPATH' ) ) { -
enable-media-replace/trunk/readme.txt
r3261237 r3371681 6 6 Tested up to: 6.8 7 7 Requires PHP: 5.6 8 Stable tag: 4.1. 68 Stable tag: 4.1.7 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 80 80 81 81 == Changelog == 82 83 = 4.1.7 = 84 85 Release date: October 2, 2025 86 * Fix: A potential "Cross-Site Scripting" vulnerability has been patched, responsibly disclosed by the WordFence team; 87 * Fix: Corrected a few text typos. 82 88 83 89 = 4.1.6 =
Note: See TracChangeset
for help on using the changeset viewer.