Plugin Directory

Changeset 2889837


Ignore:
Timestamp:
03/30/2023 07:28:05 AM (3 years ago)
Author:
rvola
Message:

https://github.com/rvola/wp-original-media-path/releases/tag/2.4.2

Location:
wp-original-media-path/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-original-media-path/trunk/readme.txt

    r2852745 r2889837  
    55Requires PHP: 7.0
    66Requires at least: 3.5
    7 Tested up to: 6.1
    8 Stable tag: 2.4.1
     7Tested up to: 6.2
     8Stable tag: 2.4.2
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    7777
    7878== Changelog ==
     79
     80= 2.4.2 | 2023-03-30 =
     81* Check WP 6.2
     82* Revert "Improve force to clean input regex"
    7983
    8084= 2.4.1 | 2023-01-13 =
  • wp-original-media-path/trunk/wp_original_media_path.php

    r2852745 r2889837  
    66Description:            Change the location for the uploads folder for WordPress
    77
    8 Version:                2.4.1
    9 Revision:               2023-01-23
     8Version:                2.4.2
     9Revision:               2023-03-30
    1010Creation:               2013-01-06
    1111
     
    1717
    1818Requires at least:      3.5
    19 Tested up to:           6.1
     19Tested up to:           6.2
    2020Requires PHP:           7.0
    2121
     
    3535    const I18N = "wp-original-media-path";
    3636    const SLUG = "wpomp";
    37     const VERSION = "2.4.1";
     37    const VERSION = "2.4.2";
    3838
    3939    private static $singleton = null;
     
    122122        $value = esc_html( $value );
    123123
    124         $value = strtolower( $value );
    125         $value = remove_accents( $value );
    126         $value = preg_replace( '/[^a-z0-9-_:?@=#\.\/]/', '', $value );
    127         $value = rtrim( $value, '/\\' );
    128         $value = trim( $value, '/\\' );
     124        if ( get_option( 'wpomp_mode' ) != true ) {
     125            $value = strtolower( $value );
     126            $value = remove_accents( $value );
     127            $value = preg_replace( '/[^a-z0-9-_:\.\/]/', '', $value );
     128            $value = rtrim( $value, '/\\' );
     129            $value = trim( $value, '/\\' );
     130        }
    129131
    130132        return $value;
Note: See TracChangeset for help on using the changeset viewer.