Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Prevents a fatal error when trying to edit a nav too early.#42

Merged
imath merged 1 commit intotrunkfrom
fix/15916281
Sep 8, 2022
Merged

Prevents a fatal error when trying to edit a nav too early.#42
imath merged 1 commit intotrunkfrom
fix/15916281

Conversation

@imath
Copy link
Copy Markdown
Contributor

@imath imath commented Sep 8, 2022

Description

When trying to edit a nav too early, the BP\Rewrites\Core_Nav_Compat can be used instead of BP_Core_Nav. In this case a fatal error occurs as the BP Rewrites compat class do not provide a BP\Rewrites\Core_Nav_Compat::edit_nav() method

See: https://wordpress.org/support/topic/getting-more-errors/

How has this been tested?

Working on a fix for the bug shared by @teeboy4real

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code is tested.
  • My code is back compatible with PHP 5.6.
  • My code follows the WordPress code style.
  • My code has proper inline documentation.

@imath imath merged commit 5f04652 into trunk Sep 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant