5.16.0 #33

Merged
Tetrakern merged 51 commits from next_update into main 2024-05-10 00:14:48 +08:00
2 changed files with 8 additions and 9 deletions
Showing only changes of commit b89a89fa54 - Show all commits

View File

@ -610,7 +610,6 @@ define( 'FICTIONEER_OPTIONS', array(
'name' => 'fictioneer_hide_password_form_with_patreon',
'group' => 'fictioneer-settings-connections-group',
'sanitize_callback' => 'fictioneer_sanitize_checkbox',
'label' => __( 'Hide password form on Patreon-gated posts', 'fictioneer' ),
'default' => 0
)
),

View File

@ -172,7 +172,7 @@ function fictioneer_settings_checkbox_added( $option, $value ) {
// Relay
fictioneer_log_checkbox_update(
FICTIONEER_OPTIONS['booleans'][ $option ]['label'],
FICTIONEER_OPTIONS['booleans'][ $option ]['label'] ?? FICTIONEER_OPTIONS['booleans'][ $option ]['name'],
null,
$value
);
@ -197,7 +197,7 @@ function fictioneer_settings_checkbox_updated( $option, $old_value, $value ) {
// Relay
fictioneer_log_checkbox_update(
FICTIONEER_OPTIONS['booleans'][ $option ]['label'],
FICTIONEER_OPTIONS['booleans'][ $option ]['label'] ?? FICTIONEER_OPTIONS['booleans'][ $option ]['name'],
$old_value,
$value
);
@ -270,7 +270,7 @@ function fictioneer_settings_page_assignment_added( $option, $value ) {
// Relay
fictioneer_log_page_assignment_update(
FICTIONEER_OPTIONS['integers'][ $option ]['label'],
FICTIONEER_OPTIONS['integers'][ $option ]['label'] ?? FICTIONEER_OPTIONS['integers'][ $option ]['name'],
null,
$value
);
@ -295,7 +295,7 @@ function fictioneer_settings_page_assignment_updated( $option, $old_value, $valu
// Relay
fictioneer_log_page_assignment_update(
FICTIONEER_OPTIONS['integers'][ $option ]['label'],
FICTIONEER_OPTIONS['integers'][ $option ]['label'] ?? FICTIONEER_OPTIONS['integers'][ $option ]['name'],
$old_value,
$value
);
@ -364,7 +364,7 @@ function fictioneer_settings_phrase_added( $option, $value ) {
// Relay
fictioneer_log_phrase_update(
FICTIONEER_OPTIONS['strings'][ $option ]['label'],
FICTIONEER_OPTIONS['strings'][ $option ]['label'] ?? FICTIONEER_OPTIONS['strings'][ $option ]['name'],
null,
$value
);
@ -389,7 +389,7 @@ function fictioneer_settings_phrase_updated( $option, $old_value, $value ) {
// Replay
fictioneer_log_phrase_update(
FICTIONEER_OPTIONS['strings'][ $option ]['label'],
FICTIONEER_OPTIONS['strings'][ $option ]['label'] ?? FICTIONEER_OPTIONS['strings'][ $option ]['name'],
$old_value,
$value
);
@ -465,7 +465,7 @@ function fictioneer_settings_connection_added( $option, $value ) {
// Relay
fictioneer_log_connection_update(
FICTIONEER_OPTIONS['strings'][ $option ]['label'],
FICTIONEER_OPTIONS['strings'][ $option ]['label'] ?? FICTIONEER_OPTIONS['strings'][ $option ]['name'],
null,
$value
);
@ -490,7 +490,7 @@ function fictioneer_settings_connection_updated( $option, $old_value, $value ) {
// Relay
fictioneer_log_connection_update(
FICTIONEER_OPTIONS['strings'][ $option ]['label'],
FICTIONEER_OPTIONS['strings'][ $option ]['label'] ?? FICTIONEER_OPTIONS['strings'][ $option ]['name'],
$old_value,
$value
);