Plugin Directory

Changeset 3221732


Ignore:
Timestamp:
01/13/2025 05:28:05 PM (13 months ago)
Author:
ctltwp
Message:

release to 2.0

Location:
people-lists/tags/2.0.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • people-lists/tags/2.0.0/js/people-lists.js

    r3220443 r3221732  
    99    var data = {
    1010        action : 'people_settings_save',
    11         field_info : field_info
     11        field_info : field_info,
     12        nonce: people_lists_admin.nonce
    1213    };
    1314   
     
    5455            list : groupList,
    5556            form: people_list_form,
     57            nonce: people_lists_admin.nonce
    5658        };
    5759        if($('#list-title').val() != '')
  • people-lists/tags/2.0.0/people-lists.php

    r3220443 r3221732  
    143143 */
    144144function people_list_saving_settings() {
     145    check_ajax_referer( 'people-lists', 'nonce' );
     146
    145147    if ( ! current_user_can( 'manage_options' ) ) {
    146148        return;
     
    175177 */
    176178function people_list_saving_list() {
     179    check_ajax_referer( 'people-lists', 'nonce' );
     180
    177181    if ( ! current_user_can( 'manage_options' ) ) {
    178182        return;
     
    350354function people_list_options_init_script() {
    351355    wp_enqueue_script( 'people-lists', plugins_url( '/people-lists/js/people-lists.js' ), array( 'jquery', 'jquery-ui-tabs', 'jquery-ui-sortable' ) );
     356
     357    wp_localize_script(
     358        'people-lists',
     359        'people_lists_admin',
     360        array(
     361            'nonce' => wp_create_nonce( 'people-lists' ),
     362        )
     363    );
    352364}
    353365
Note: See TracChangeset for help on using the changeset viewer.