Skip to content

Commit 653eaf2

Browse files
Fix empty settings page
1 parent 263ff54 commit 653eaf2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

classes/WeDevs/class-settings-api.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* File renaming on upload - Settings API.
44
*
5-
* @version 2.5.9
5+
* @version 2.6.2
66
* @since 2.0.0
77
* @author WPFactory
88
*/
@@ -43,14 +43,13 @@ public function __construct() {
4343
/**
4444
* admin_enqueue_scripts.
4545
*
46-
* @version 2.5.9
46+
* @version 2.6.2
4747
* @since 2.5.9
4848
*
4949
* @return void
5050
*/
5151
public function admin_enqueue_scripts() {
52-
$current_screen = get_current_screen();
53-
if ( $current_screen && $current_screen->id === 'settings_page_file-renaming-on-upload' ) {
52+
if ( isset( $_GET['page'] ) && $_GET['page'] === 'file-renaming-on-upload' ) {
5453
parent::admin_enqueue_scripts(); // TODO: Change the autogenerated stub
5554
}
5655
}

file-renaming-on-upload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: File Renaming on upload
44
Plugin URI: https://wordpress.org/plugins/file-renaming-on-upload/
55
Description: Fixes file uploads with accents and special characters by renaming them. It also improves your SEO.
6-
Version: 2.6.1
6+
Version: 2.6.2
77
Text Domain: file-renaming-on-upload
88
Domain Path: /languages
99
Author: WPFactory

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: rename, seo, media, renaming, characters
44
Requires at least: 4.0.0
55
Tested up to: 6.7
66
Requires PHP: 5.3
7-
Stable tag: 2.6.1
7+
Stable tag: 2.6.2
88
License: GNU General Public License v3.0
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -254,6 +254,9 @@ Head over to the [File Renaming on Upload plugin GitHub Repository](https://gith
254254

255255
== Changelog ==
256256

257+
= 2.6.2 - 2025/01/27 =
258+
* Fix - Fixed empty settings page.
259+
257260
= 2.6.1 - 2025/01/24 =
258261
* Dev - Improved post id detection.
259262
* Dev - Add Cross-selling library.

0 commit comments

Comments
 (0)