• Resolved janevolve

    (@janevolve)


    For time to time, after the plugin gets updated, we need to manually “patch” the plugin cause it keeps breaking due function “get_current_screen” getting called in “admin_menu” hook which trigger before “admin_init“.

    get_current_screen” only gets available after “admin_init” has fired. ref

    admin_menu” fires before “admin_init“. ref

    get_current_screen” is called inside TO_Terms_Walker class, start_el method.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Maya

    (@tdgu)

    Hi,
    Thanks for your feedback.
    I’am not sure how the get_current_screen() is triggering the error for you, in the TO_Terms_Walker class, as this is called after admin_init has triggered. That interface is invoked through add_submenu_page() WordPress method, which triggers the argument after the admin_init action has been executed.
    Maybe there is a specific step you took to replicate the error? Is this always occours for you ? Maybe a different code interefers with the get_current_screen() method

    Thanks

    Thread Starter janevolve

    (@janevolve)

    Im closing this now, since this seems to be a poor implementation on our end when trying to extend plugin functionality to custom frontend.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.