Plugin Directory

Changeset 3280593


Ignore:
Timestamp:
04/24/2025 06:43:31 AM (11 months ago)
Author:
xssdevelopment
Message:

Fix missing parenthesis

Location:
password-protect-pdf
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • password-protect-pdf/tags/trunk/includes/setting.php

    r3250041 r3280593  
    6868if (!function_exists('cross_service_solutions_register_settings')){
    6969    function cross_service_solutions_register_settings() {
    70         register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_api_key', 'cross_service_solutions_verify_api_key');
    71         register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_show_provider', 'cross_service_solutions_sanitize_show_provider');
     70        register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_api_key', array(
     71            'type'              => 'string',
     72            'sanitize_callback' => 'cross_service_solutions_verify_api_key',
     73        ));
     74
     75        register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_show_provider', array(
     76            'type'              => 'string',
     77            'sanitize_callback' => 'cross_service_solutions_sanitize_show_provider',
     78        ));
    7279    }
    7380    add_action('admin_init', 'cross_service_solutions_register_settings');
  • password-protect-pdf/trunk/includes/setting.php

    r3250041 r3280593  
    6868if (!function_exists('cross_service_solutions_register_settings')){
    6969    function cross_service_solutions_register_settings() {
    70         register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_api_key', 'cross_service_solutions_verify_api_key');
    71         register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_show_provider', 'cross_service_solutions_sanitize_show_provider');
     70        register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_api_key', array(
     71            'type'              => 'string',
     72            'sanitize_callback' => 'cross_service_solutions_verify_api_key',
     73        ));
     74
     75        register_setting('cross_service_solutions_plugin_settings', 'cross_service_solutions_show_provider', array(
     76            'type'              => 'string',
     77            'sanitize_callback' => 'cross_service_solutions_sanitize_show_provider',
     78        ));
    7279    }
    7380    add_action('admin_init', 'cross_service_solutions_register_settings');
Note: See TracChangeset for help on using the changeset viewer.