Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nacc-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class NACC {
private const DEFAULT_THEME = 'NACC-Instance';
private const DEFAULT_LANGUAGE = 'en';
private const DEFAULT_LAYOUT = 'linear';
private const DEFAULT_SHOW_SPECIAL = 'true';
private const DEFAULT_SHOW_SPECIAL = false;

private $plugin_dir;
/**
Expand Down Expand Up @@ -140,7 +140,7 @@ private static function render_keytags( array $args ): void {
wp_json_encode( esc_attr( $args['theme'] ) ),
wp_json_encode( esc_attr( $args['language'] ) ),
wp_json_encode( esc_attr( $args['layout'] ) ),
wp_json_encode( esc_attr( $args['special'] ) ),
wp_json_encode( (bool) $args['special'] ),
wp_json_encode( esc_attr( $args['siteURI'] ) )
)
);
Expand Down Expand Up @@ -316,6 +316,7 @@ public static function register_settings(): void {
'nacc_special',
[
'type' => 'boolean',
'default' => self::DEFAULT_SHOW_SPECIAL,
'sanitize_callback' => 'wp_validate_boolean',
]
);
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ That text will be replaced with this cleantime calculator.

= 6.0.2 =

* Fixed the "Show Special Keytags" default so that specialty (over 2 years) tags stay hidden until the setting is explicitly enabled, matching the unchecked checkbox and "Default is false." label.
* Added a "How to Use" help section to the Settings → NACC admin page documenting the `[nacc]` shortcode, its attributes, and what each setting does.

= 6.0.1 =
Expand Down