Skip to content

Commit fcc11f1

Browse files
committed
Elsa Preparation
1 parent 66e0e7f commit fcc11f1

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ This project is licensed under the GPL3 License.
198198
Release pending.
199199

200200
* Added: Mastodon Verification
201+
* Added: Block Editor Support Custom Post Type Pinseldisko
202+
* Added: Block Editor Support Custom Post Type Raketenstaub
203+
* Changed: Maintenance Mode Internal Processing
201204

202205
### 0.7
203206

unmus_maintenance.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@ function unmus_maintenace_mode() {
2626

2727
if($doing_maintenance) {
2828
// Do not activate maintenance mode for Admins and User logged in
29-
if (! (is_admin() OR is_user_logged_in() ) ) {
29+
if (! (is_admin() OR is_user_logged_in() ) ) {
3030
// Activate maintenance mode if maintenance page exists
3131
if ( file_exists( WP_CONTENT_DIR . '/maintenance.php' ) ) {
3232
require_once( WP_CONTENT_DIR . '/maintenance.php' );
3333
die();
34-
}
34+
}
35+
3536
}
3637
}
3738

3839
}
39-
add_action('get_header', 'unmus_maintenace_mode');
40+
add_action('wp', 'unmus_maintenace_mode');
4041

4142
?>

unmus_pinseldisko.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function unmus_pinseldisko_custom_post_type() {
6464
'can_export' => true,
6565
'menu_position' => 5,
6666
'capability_type' => 'post',
67-
'rewrite' => array('slug' => 'pinseldisko')
67+
'rewrite' => array('slug' => 'pinseldisko'),
68+
'show_in_rest' => true
6869
);
6970

7071
register_post_type( 'pinseldisko', $args );

unmus_raketenstaub.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function unmus_raketenstaub_custom_post_type() {
6363
'can_export' => true,
6464
'menu_position' => 5,
6565
'capability_type' => 'post',
66-
'rewrite' => array('slug' => 'raketenstaub')
66+
'rewrite' => array('slug' => 'raketenstaub'),
67+
'show_in_rest' => true
6768
);
6869

6970
register_post_type( 'raketenstaub', $args );

0 commit comments

Comments
 (0)