Skip to content

Commit

Permalink
Merge pull request #51 from circuscode/develop
Browse files Browse the repository at this point in the history
Elsa Activation
  • Loading branch information
circuscode authored Jun 30, 2024
2 parents 520f5c1 + 0bfb25c commit a40424f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ 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
* Removed: Adding Current Menu Item

### 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_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function unmus_menu_current_item_class( $classes, $item ) {
return $classes;

}
add_filter( 'nav_menu_css_class', 'unmus_menu_current_item_class', 10, 2 );
// This is not working anymore with Block Themes :-(
// add_filter( 'nav_menu_css_class', 'unmus_menu_current_item_class', 10, 2 );

?>
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 a40424f

Please sign in to comment.