Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
Describe the bug
We use a theme that depends on CMB2 to add metaboxes to the post edit screen. After updating Rank Math to 1.0.50 the "Add new" button of the repeatable fields and groups stopped working.
The issue is caused by the analytics module of Rank Math which dequeues "cmb2-scripts" file on every page of WordPress dashboard.
The line that causes the issue is inside the constructor method of "RankMath\Analytics\Analytics" class:
$this->action( 'admin_footer', 'dequeue_cmb2' );
I think, a check has to be made inside the "dequeue_cmb2" method to correctly dequeue "cmb2-scripts" on the intended screen only.
Describe the bug We use a theme that depends on CMB2 to add metaboxes to the post edit screen. After updating Rank Math to 1.0.50 the "Add new" button of the repeatable fields and groups stopped working.
The issue is caused by the analytics module of Rank Math which dequeues "cmb2-scripts" file on every page of WordPress dashboard.
The line that causes the issue is inside the constructor method of "RankMath\Analytics\Analytics" class:
$this->action( 'admin_footer', 'dequeue_cmb2' );
I think, a check has to be made inside the "dequeue_cmb2" method to correctly dequeue "cmb2-scripts" on the intended screen only.