diff --git a/readme.md b/readme.md index 8341efb..27c5896 100644 --- a/readme.md +++ b/readme.md @@ -198,6 +198,9 @@ This project is licensed under the GPL3 License. Release pending. * Added: Mastodon Verification +* Added: Block Editor Support Custom Post Type Pinseldisko +* Added: Block Editor Support Custom Post Type Raketenstaub +* Changed: Maintenance Mode Internal Processing ### 0.7 diff --git a/unmus_maintenance.php b/unmus_maintenance.php index 6b70538..3ac5f8b 100644 --- a/unmus_maintenance.php +++ b/unmus_maintenance.php @@ -26,16 +26,17 @@ function unmus_maintenace_mode() { if($doing_maintenance) { // Do not activate maintenance mode for Admins and User logged in - if (! (is_admin() OR is_user_logged_in() ) ) { + if (! (is_admin() OR is_user_logged_in() ) ) { // Activate maintenance mode if maintenance page exists if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) { require_once( WP_CONTENT_DIR . '/maintenance.php' ); die(); - } + } + } } } -add_action('get_header', 'unmus_maintenace_mode'); +add_action('wp', 'unmus_maintenace_mode'); ?> \ No newline at end of file diff --git a/unmus_pinseldisko.php b/unmus_pinseldisko.php index e18f667..1d4bc35 100644 --- a/unmus_pinseldisko.php +++ b/unmus_pinseldisko.php @@ -64,7 +64,8 @@ function unmus_pinseldisko_custom_post_type() { 'can_export' => true, 'menu_position' => 5, 'capability_type' => 'post', - 'rewrite' => array('slug' => 'pinseldisko') + 'rewrite' => array('slug' => 'pinseldisko'), + 'show_in_rest' => true ); register_post_type( 'pinseldisko', $args ); diff --git a/unmus_raketenstaub.php b/unmus_raketenstaub.php index 6db2874..6d76369 100644 --- a/unmus_raketenstaub.php +++ b/unmus_raketenstaub.php @@ -63,7 +63,8 @@ function unmus_raketenstaub_custom_post_type() { 'can_export' => true, 'menu_position' => 5, 'capability_type' => 'post', - 'rewrite' => array('slug' => 'raketenstaub') + 'rewrite' => array('slug' => 'raketenstaub'), + 'show_in_rest' => true ); register_post_type( 'raketenstaub', $args );