@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | wp_enqueue_style('lasso-style', LASSO_URL.'/public/assets/css/lasso.css', LASSO_VERSION, true); |
24 | 24 | |
25 | - // No longer using autocomplete |
|
25 | + // No longer using autocomplete |
|
26 | 26 | //wp_enqueue_script('jquery-ui-autocomplete'); |
27 | 27 | wp_enqueue_script('jquery-ui-draggable'); |
28 | 28 | wp_enqueue_script('jquery-ui-sortable'); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $postid = get_the_ID(); |
83 | 83 | |
84 | 84 | $post_date = get_the_time('U', $postid); |
85 | - $delta = time() - $post_date; |
|
85 | + $delta = time() - $post_date; |
|
86 | 86 | |
87 | 87 | $strings = array( |
88 | 88 | 'save' => __('Save','lasso'), |
@@ -128,11 +128,11 @@ discard block |
||
128 | 128 | $gallery_nonce = wp_create_nonce( $gallery_nonce_action ); |
129 | 129 | |
130 | 130 | |
131 | - if ($allow_change_date) { |
|
132 | - $permalink = get_site_url().'/?p='.$postid; |
|
133 | - } else { |
|
134 | - $permalink = get_permalink($postid); |
|
135 | - } |
|
131 | + if ($allow_change_date) { |
|
132 | + $permalink = get_site_url().'/?p='.$postid; |
|
133 | + } else { |
|
134 | + $permalink = get_permalink($postid); |
|
135 | + } |
|
136 | 136 | |
137 | 137 | // rest api |
138 | 138 | $rest_nonce = ''; |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | |
230 | 230 | |
231 | 231 | if (!$using_restapiv2) { |
232 | - // enqueue REST API V1 |
|
232 | + // enqueue REST API V1 |
|
233 | 233 | wp_enqueue_script( 'wp-api-js', LASSO_URL.'/public/assets/js/source/util--wp-api.js', array( 'jquery', 'underscore', 'backbone' ), LASSO_VERSION, true ); |
234 | 234 | $settings = array( 'root' => home_url( $home_url ), 'nonce' => wp_create_nonce( 'wp_json' ) ); |
235 | 235 | wp_localize_script( 'wp-api-js', 'WP_API_Settings', $settings ); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | if ($show_color) { |
246 | 246 | wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api','iris'), LASSO_VERSION, true); |
247 | 247 | } else { |
248 | - wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true); |
|
248 | + wp_enqueue_script('lasso', LASSO_URL. "/public/assets/js/lasso{$postfix}.js", array('jquery', 'wp-api'), LASSO_VERSION, true); |
|
249 | 249 | } |
250 | 250 | wp_localize_script('lasso', 'lasso_editor', apply_filters('lasso_localized_objects', $objects ) ); |
251 | 251 |