Skip to content

Commit

Permalink
Replace filter for sanitizatin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mukulsingh27 committed Nov 28, 2023
1 parent eaa83a9 commit b5f1d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/classes/plugin-configs/class-plugin-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function admin_notices() {

$option = get_option( MENTION_LINKS_ENABLED_CPTS_SETTING_NAME );

if ( empty( $option ) && 'true' === filter_input( INPUT_GET, 'settings-updated', FILTER_SANITIZE_STRING ) ) {
if ( empty( $option ) && 'true' === filter_input( INPUT_GET, 'settings-updated', FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ) {
add_settings_error( MENTION_LINKS_ENABLED_CPTS_SETTING_NAME, 'blank_settings_updated', __( 'If no options for Custom Post Types support is selected, Posts and Pages will be used for Mention Links.', 'mention-links' ), 'notice' );
}
}
Expand Down

0 comments on commit b5f1d1f

Please sign in to comment.