Skip to content

Commit

Permalink
Elsa Preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
circuscode committed Jun 22, 2024
1 parent 66e0e7f commit fcc11f1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions unmus_maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

?>
3 changes: 2 additions & 1 deletion unmus_pinseldisko.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
3 changes: 2 additions & 1 deletion unmus_raketenstaub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit fcc11f1

Please sign in to comment.