Changeset 3221729
- Timestamp:
- 01/13/2025 05:27:22 PM (13 months ago)
- Location:
- people-lists/trunk
- Files:
-
- 2 edited
-
js/people-lists.js (modified) (2 diffs)
-
people-lists.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
people-lists/trunk/js/people-lists.js
r3220439 r3221729 9 9 var data = { 10 10 action : 'people_settings_save', 11 field_info : field_info 11 field_info : field_info, 12 nonce: people_lists_admin.nonce 12 13 }; 13 14 … … 54 55 list : groupList, 55 56 form: people_list_form, 57 nonce: people_lists_admin.nonce 56 58 }; 57 59 if($('#list-title').val() != '') -
people-lists/trunk/people-lists.php
r3220440 r3221729 143 143 */ 144 144 function people_list_saving_settings() { 145 check_ajax_referer( 'people-lists', 'nonce' ); 146 145 147 if ( ! current_user_can( 'manage_options' ) ) { 146 148 return; … … 175 177 */ 176 178 function people_list_saving_list() { 179 check_ajax_referer( 'people-lists', 'nonce' ); 180 177 181 if ( ! current_user_can( 'manage_options' ) ) { 178 182 return; … … 350 354 function people_list_options_init_script() { 351 355 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 ); 352 364 } 353 365
Note: See TracChangeset
for help on using the changeset viewer.