Skip to content

Commit

Permalink
Replace spaces with tabs (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Sep 10, 2024
1 parent deedfc9 commit bc2b46d
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function render_custom_ui() : void {
$block_attributes['isOnboarding'] = true;
}

$json_attrs = json_encode( $block_attributes );
$json_attrs = json_encode( $block_attributes );

$preload_paths = [
'/wp/v2/users/' . $user_id . '?context=edit',
Expand Down Expand Up @@ -205,22 +205,21 @@ function maybe_dequeue_stylesheet() {
* Add custom CSS for print styles.
*/
function maybe_add_custom_print_css() {

// Check if the current URL matches the specific condition
if ( page_has_2fa_component() ) {
?>
<style>
@media print {
#item-header,
#headline,
footer,
.button-nav {
display: none !important;
}
}
</style>
<?php
}
if ( ! page_has_2fa_component() ) {
return;
}
?>
<style>
@media print {
#item-header,
#headline,
footer,
.button-nav {
display: none !important;
}
}
</style>
<?php
}

/**
Expand Down

0 comments on commit bc2b46d

Please sign in to comment.