I've recently encountered a problem with the 'add_submenu_page' function in the plugin. It seems to be missing the required $parent_slug parameter. This issue has been causing compatibility problems with WordPress 6.2 and PHP 8.2.
Specifically, the function is currently being called with null for the $parent_slug. This results in the plugin not appearing correctly in the admin dashboard menu.
To address this issue, I've submitted a pull request with a proposed fix. The pull request updates the $parent_slug parameter from null to 'options-general.php'. This places the "ACF Image Aspect Ratio Crop" submenu under the "Settings" menu in the WordPress admin dashboard, and it loads the plugin's settings page when clicked.
I've linked the pull request here for your reference.
Please let me know your thoughts and if any further changes are needed.
Hello,
I've recently encountered a problem with the 'add_submenu_page' function in the plugin. It seems to be missing the required
$parent_slug
parameter. This issue has been causing compatibility problems with WordPress 6.2 and PHP 8.2.Specifically, the function is currently being called with
null
for the$parent_slug
. This results in the plugin not appearing correctly in the admin dashboard menu.To address this issue, I've submitted a pull request with a proposed fix. The pull request updates the
$parent_slug
parameter fromnull
to'options-general.php'
. This places the "ACF Image Aspect Ratio Crop" submenu under the "Settings" menu in the WordPress admin dashboard, and it loads the plugin's settings page when clicked.I've linked the pull request here for your reference.
Please let me know your thoughts and if any further changes are needed.
Best regards, Yanis