mirror of
https://ghproxy.net/https://github.com/elementor/activity-log.git
synced 2025-10-04 03:06:11 +08:00
Fixes for old WP version
This commit is contained in:
parent
e9b8498799
commit
c83c71f455
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class AAL_Hook_Menu extends AAL_Hook_Base {
|
|||
|
||||
public function hooks_menu_created_or_updated( $nav_menu_selected_id ) {
|
||||
if ( $menu_object = wp_get_nav_menu_object( $nav_menu_selected_id ) ) {
|
||||
if ( 'wp_create_nav_menu' === current_action() )
|
||||
if ( 'wp_create_nav_menu' === current_filter() )
|
||||
$action = 'created';
|
||||
else
|
||||
$action = 'updated';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue