Skip to content

Commit 89741c0

Browse files
committed
Consolidate custom post type and meta registrations into Post_Types class
- Created new Post_Types class to manage all custom post type and meta registrations - Moved post type registrations from Activitypub::register_post_types() to dedicated methods - Consolidated post meta registration with each post type for better organization - Removed duplicate post meta registrations from Blocks class - Updated tests to use new Post_Types class methods - Maintained user meta registrations in original Activitypub class location - All 895 tests pass, ensuring backward compatibility
1 parent 35b5390 commit 89741c0

File tree

5 files changed

+441
-400
lines changed

5 files changed

+441
-400
lines changed

activitypub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ function plugin_init() {
8080
\add_action( 'init', array( __NAMESPACE__ . '\Migration', 'init' ), 1 );
8181
\add_action( 'init', array( __NAMESPACE__ . '\Move', 'init' ) );
8282
\add_action( 'init', array( __NAMESPACE__ . '\Options', 'init' ) );
83+
\add_action( 'init', array( __NAMESPACE__ . '\Post_Types', 'init' ) );
8384
\add_action( 'init', array( __NAMESPACE__ . '\Scheduler', 'init' ) );
8485
\add_action( 'init', array( __NAMESPACE__ . '\Search', 'init' ) );
8586
\add_action( 'init', array( __NAMESPACE__ . '\Signature', 'init' ) );

0 commit comments

Comments
 (0)