Skip to content

Commit

Permalink
Add new site setting to hide the Action Bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jan 16, 2025
1 parent 5795878 commit 16d37c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Add new site setting to hide the Action Bar
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ function ( $newsletter_category ) {
'jetpack_waf_share_debug_data' => (bool) get_option( 'jetpack_waf_share_debug_data' ),
'jetpack_waf_automatic_rules_last_updated_timestamp' => (int) get_option( 'jetpack_waf_automatic_rules_last_updated_timestamp' ),
'is_fully_managed_agency_site' => (bool) get_option( 'is_fully_managed_agency_site' ),
'wpcom_hide_action_bar' => (bool) get_option( 'wpcom_hide_action_bar' ),
);

if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
Expand Down Expand Up @@ -1189,6 +1190,11 @@ function ( $category_id ) {
}
break;

case 'wpcom_hide_action_bar':
update_option( $key, (int) (bool) $value );
$updated[ $key ] = (int) (bool) $value;
break;

default:
// allow future versions of this endpoint to support additional settings keys.
if ( has_filter( 'site_settings_endpoint_update_' . $key ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
'highlander_comment_form_prompt' => '(string) The prompt for the comment form',
'jetpack_comment_form_color_scheme' => '(string) The color scheme for the comment form',
'is_fully_managed_agency_site' => '(bool) Whether the site is a fully managed agency site',
'wpcom_hide_action_bar' => '(bool) Whether to hide the Action bar',
),

'response_format' => array(
Expand Down

0 comments on commit 16d37c8

Please sign in to comment.