Skip to content

v0.2.2 - Critical Fix: Videos Menu

Choose a tag to compare

@kbrookes kbrookes released this 25 Nov 03:32
· 20 commits to main since this release

Critical Bug Fix

This is a critical update that fixes the Videos menu disappearing when ACF Pro is installed.

Fixed

  • Videos menu not appearing: Fixed nova_video post type not registering when ACF Pro is active
  • Taxonomies not registering: Fixed video categories, tags, and types not being created
  • Init hook timing issue: Changed NVM_Post_Type and NVM_Taxonomies to call registration methods directly instead of hooking into init

Technical Details

The problem occurred because:

  1. The main plugin's init() method runs at priority 15 (to ensure ACF loads first)
  2. When it instantiated NVM_Post_Type and NVM_Taxonomies, those classes tried to add their own init hooks
  3. Since the init hook was already executing, those new hooks never fired
  4. This prevented the post type and taxonomies from registering

The fix changes the constructors to call register_post_type() and register_taxonomies() directly instead of hooking into init.

Upgrade Instructions

If you installed v0.2.0 or v0.2.1 and don't see the Videos menu:

  1. Update to v0.2.2
  2. The Videos menu will appear immediately
  3. Go to Settings → Permalinks and click Save to flush rewrite rules