wp/wp-content/plugins/option-tree/includes/ot-functions-admin.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
child 11 bf1778c34b9a
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
   841     wp_enqueue_script( 'ot-admin-js', OT_URL . 'assets/js/ot-admin.js', array( 'jquery', 'jquery-ui-tabs', 'jquery-ui-sortable', 'jquery-ui-slider', 'wp-color-picker', 'ace-editor', 'jquery-ui-datepicker', 'jquery-ui-timepicker' ), OT_VERSION );
   841     wp_enqueue_script( 'ot-admin-js', OT_URL . 'assets/js/ot-admin.js', array( 'jquery', 'jquery-ui-tabs', 'jquery-ui-sortable', 'jquery-ui-slider', 'wp-color-picker', 'ace-editor', 'jquery-ui-datepicker', 'jquery-ui-timepicker' ), OT_VERSION );
   842 
   842 
   843     /* create localized JS array */
   843     /* create localized JS array */
   844     $localized_array = array( 
   844     $localized_array = array( 
   845       'ajax'                  => admin_url( 'admin-ajax.php' ),
   845       'ajax'                  => admin_url( 'admin-ajax.php' ),
       
   846       'nonce'                 => wp_create_nonce( 'option_tree' ),
   846       'upload_text'           => apply_filters( 'ot_upload_text', __( 'Send to OptionTree', 'option-tree' ) ),
   847       'upload_text'           => apply_filters( 'ot_upload_text', __( 'Send to OptionTree', 'option-tree' ) ),
   847       'remove_media_text'     => __( 'Remove Media', 'option-tree' ),
   848       'remove_media_text'     => __( 'Remove Media', 'option-tree' ),
   848       'reset_agree'           => __( 'Are you sure you want to reset back to the defaults?', 'option-tree' ),
   849       'reset_agree'           => __( 'Are you sure you want to reset back to the defaults?', 'option-tree' ),
   849       'remove_no'             => __( 'You can\'t remove this! But you can edit the values.', 'option-tree' ),
   850       'remove_no'             => __( 'You can\'t remove this! But you can edit the values.', 'option-tree' ),
   850       'remove_agree'          => __( 'Are you sure you want to remove this?', 'option-tree' ),
   851       'remove_agree'          => __( 'Are you sure you want to remove this?', 'option-tree' ),