From 1ecac7a30c2d4a38b9f6918f9d0a9bf4cf6b5096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melanie=20M=C3=BCller?= Date: Tue, 12 Mar 2024 12:55:09 +0100 Subject: [PATCH] bugfix/ add_submenu_page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Solved: Notice: Die Funktion add_submenu_page wurde fehlerhaft aufgerufen. Der siebte Parameter, der an add_submenu_page() übergeben wird, sollte ein numerischer Wert sein, der die Menüposition angibt. Weitere Informationen: Debugging in WordPress (engl.). (Diese Meldung wurde in Version 5.3.0 hinzugefügt.) in /var/www/html/wp-includes/functions.php on line 6031 --- info.json | 2 +- plugin.php | 2 +- src/pluginmenu.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/info.json b/info.json index 11c0256..15f404e 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "melaniemueller.design-localfonts/plugin.php": { - "version": "v0.0.1.8", + "version": "v0.0.1.9", "package": "https://melaniemueller.design/development/melaniemueller.design-localfonts/melaniemueller.design-localfonts.zip", "updateURL": "https://melaniemueller.design/development/melaniemueller.design-localfonts/info.json", "requires": "6.3.2", diff --git a/plugin.php b/plugin.php index 51c19c2..9542360 100644 --- a/plugin.php +++ b/plugin.php @@ -12,7 +12,7 @@ * Requires PHP: 5.6 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt * Update URI: https://melaniemueller.design/development/melaniemueller.design-localfonts/info.json - * Version: v0.0.1.8 + * Version: v0.0.1.9 */ /*add localfonts folder to wp-content*/ diff --git a/src/pluginmenu.php b/src/pluginmenu.php index 749f09f..2bea5e5 100644 --- a/src/pluginmenu.php +++ b/src/pluginmenu.php @@ -9,7 +9,7 @@ function add_plugin_menu() 'manage_options', // Capability required to access the menu 'localfonts-slug', // Menu slug 'my_custom_localfonts_page', // Callback function to display the menu content - 'menu-icon-my-plugin' // This should match the CSS ID you defined earlier + 2 // This will position the submenu item at position 20 ); } add_action('admin_menu', 'add_plugin_menu');