@@ -127,11 +127,11 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * Adds an admin notice reminding the user if their license key has not been saved |
|
| 131 | - * |
|
| 132 | - * @since 0.9.7 |
|
| 133 | - * @todo make dismissible |
|
| 134 | - */ |
|
| 130 | + * Adds an admin notice reminding the user if their license key has not been saved |
|
| 131 | + * |
|
| 132 | + * @since 0.9.7 |
|
| 133 | + * @todo make dismissible |
|
| 134 | + */ |
|
| 135 | 135 | public function license_nag(){ |
| 136 | 136 | |
| 137 | 137 | $screen = get_current_screen(); |
@@ -152,26 +152,26 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | if ( empty( $license ) ) { |
| 154 | 154 | |
| 155 | - printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_empty, $license_link, $dismiss_link ); |
|
| 155 | + printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_empty, $license_link, $dismiss_link ); |
|
| 156 | 156 | |
| 157 | - } else if ( 'invalid' == $status ){ // license key entered wrong or something |
|
| 157 | + } else if ( 'invalid' == $status ){ // license key entered wrong or something |
|
| 158 | 158 | |
| 159 | 159 | printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_invalid, $license_link , $dismiss_link ); |
| 160 | 160 | |
| 161 | - } else if ( empty( $status ) ){ // license key saved but not activated |
|
| 161 | + } else if ( empty( $status ) ){ // license key saved but not activated |
|
| 162 | 162 | |
| 163 | 163 | printf('<div class="lasso-notice error" style="position:relative;"><p>%s %s</p>%s</div>', $message_inactive, $license_link, $dismiss_link ); |
| 164 | 164 | |
| 165 | - } |
|
| 165 | + } |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * Process hiding the dimiss |
|
| 172 | - * |
|
| 173 | - * @since 0.9.7 |
|
| 174 | - */ |
|
| 171 | + * Process hiding the dimiss |
|
| 172 | + * |
|
| 173 | + * @since 0.9.7 |
|
| 174 | + */ |
|
| 175 | 175 | public function dismiss_nag() { |
| 176 | 176 | |
| 177 | 177 | if ( isset( $_GET['lasso-notice'] ) && 'dismiss' == $_GET['lasso-notice'] && current_user_can('manage_options') ) { |
@@ -115,8 +115,8 @@ |
||
| 115 | 115 | // replace namespace separators with directory separators |
| 116 | 116 | // in the relative class name, append with .php |
| 117 | 117 | $file = $base_dir |
| 118 | - . str_replace('\\', '/', $relative_class) |
|
| 119 | - . '.php'; |
|
| 118 | + . str_replace('\\', '/', $relative_class) |
|
| 119 | + . '.php'; |
|
| 120 | 120 | |
| 121 | 121 | // if the mapped file exists, require it |
| 122 | 122 | if ($this->requireFile($file)) { |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | * @since 0.9.3 |
| 119 | 119 | * |
| 120 | 120 | * @param int $postid The current postid |
| 121 | - * @param string|bool $value The term slug, or a comma separated list of slugs. Or false to remove all terms set for post. |
|
| 121 | + * @param string|bool $value The term slug, or a comma separated list of slugs. Or false to remove all terms set for post. |
|
| 122 | 122 | * @param string $taxonomy The name of the taxonomy to which the term belongs. |
| 123 | 123 | * |
| 124 | 124 | * @return bool True if update was successful, false if not. |
@@ -50,7 +50,6 @@ |
||
| 50 | 50 | * @param string $action The AJAX action we are processing. |
| 51 | 51 | * @param string|object $callback_class The class to use for the callback. Either the name of the class or an instance of that class. |
| 52 | 52 | * @param string $method The name of the callback method. |
| 53 | - |
|
| 54 | 53 | */ |
| 55 | 54 | public function __construct( $action, $callback_class) { |
| 56 | 55 | if ( ! is_object( $callback_class ) ) { |
@@ -81,7 +81,6 @@ |
||
| 81 | 81 | * |
| 82 | 82 | * @param string $action The AJAX action we are processing. |
| 83 | 83 | * @param string|object $callback The class to use for the callback. Either the name of the class or an instance of that class. |
| 84 | - |
|
| 85 | 84 | * |
| 86 | 85 | * @return \lasso\internal_api\auth |
| 87 | 86 | */ |
@@ -1322,13 +1322,13 @@ |
||
| 1322 | 1322 | $key = preg_replace( '`[^A-Za-z0-9_-]`', '', $key ); |
| 1323 | 1323 | |
| 1324 | 1324 | /** |
| 1325 | - * Filter a sanitized key string. |
|
| 1326 | - * |
|
| 1327 | - * @since 3.0.0 |
|
| 1328 | - * |
|
| 1329 | - * @param string $key Sanitized key. |
|
| 1330 | - * @param string $raw_key The key prior to sanitization. |
|
| 1331 | - */ |
|
| 1325 | + * Filter a sanitized key string. |
|
| 1326 | + * |
|
| 1327 | + * @since 3.0.0 |
|
| 1328 | + * |
|
| 1329 | + * @param string $key Sanitized key. |
|
| 1330 | + * @param string $raw_key The key prior to sanitization. |
|
| 1331 | + */ |
|
| 1332 | 1332 | return apply_filters( 'tgmpa_sanitize_key', $key, $raw_key ); |
| 1333 | 1333 | } |
| 1334 | 1334 | |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | 'public' => true, |
| 246 | 246 | ), 'objects' ); |
| 247 | 247 | $post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) ); |
| 248 | - unset( $post_types[ 'attachment' ] ); |
|
| 248 | + unset( $post_types[ 'attachment' ] ); |
|
| 249 | 249 | |
| 250 | 250 | /** |
| 251 | 251 | * Set which post types are allowed |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | 'public' => true, |
| 270 | 270 | ), 'names' ); |
| 271 | 271 | //$post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) ); |
| 272 | - unset( $post_types[ 'attachment' ] ); |
|
| 272 | + unset( $post_types[ 'attachment' ] ); |
|
| 273 | 273 | |
| 274 | 274 | /** |
| 275 | 275 | * Set which post types are allowed |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | */ |
| 372 | 372 | if ( !function_exists( 'lasso_user_can' ) ): |
| 373 | 373 | function lasso_user_can( $action = '', $postid = 0 ) { |
| 374 | - $result = false; |
|
| 374 | + $result = false; |
|
| 375 | 375 | if ( empty( $action ) ) |
| 376 | 376 | $action = 'edit_posts'; |
| 377 | 377 | |
@@ -11,16 +11,16 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | public function __construct() { |
| 13 | 13 | |
| 14 | - $disable_tour = lasso_editor_get_option('disable_tour', 'lasso_editor'); |
|
| 14 | + $disable_tour = lasso_editor_get_option('disable_tour', 'lasso_editor'); |
|
| 15 | 15 | if (!$disable_tour) { |
| 16 | - add_action( 'wp_footer', array( $this, 'draw_tour' ) ); |
|
| 16 | + add_action( 'wp_footer', array( $this, 'draw_tour' ) ); |
|
| 17 | 17 | } |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * Draw the modal used to house the walk through |
|
| 22 | - * @since 0.6 |
|
| 23 | - */ |
|
| 21 | + * Draw the modal used to house the walk through |
|
| 22 | + * @since 0.6 |
|
| 23 | + */ |
|
| 24 | 24 | public function draw_tour() { |
| 25 | 25 | |
| 26 | 26 | $tour_hidden = get_user_meta( get_current_user_ID(), 'lasso_hide_tour', true ); |
@@ -80,9 +80,9 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * Draw the inner slides for the welcome walkthrough |
|
| 84 | - * @since 0.6 |
|
| 85 | - */ |
|
| 83 | + * Draw the inner slides for the welcome walkthrough |
|
| 84 | + * @since 0.6 |
|
| 85 | + */ |
|
| 86 | 86 | public function tour_slides() { ?> |
| 87 | 87 | |
| 88 | 88 | <div id="lasso--loading" class="lasso--loading"><div class="lasso--loader"></div></div> |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | // only run on posts and pages if user is logged in |
| 13 | 13 | if ( is_user_logged_in() && lasso_user_can('edit_posts') ) { |
| 14 | - if ( !class_exists( 'WP_REST_Controller' ) ) { |
|
| 15 | - // using rest api v1 |
|
| 14 | + if ( !class_exists( 'WP_REST_Controller' ) ) { |
|
| 15 | + // using rest api v1 |
|
| 16 | 16 | ?> |
| 17 | 17 | <script type="text/html" id="lasso-tmpl--post"> |
| 18 | 18 | <li> |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | <?php |
| 32 | 32 | } else { |
| 33 | 33 | // using rest api v2 |
| 34 | - ?> |
|
| 34 | + ?> |
|
| 35 | 35 | <script type="text/html" id="lasso-tmpl--post"> |
| 36 | 36 | <li> |
| 37 | 37 | <a href="<%= post.link %>" class="lasso--post-list__item <?php echo $can_delete_class;?> <%= post.status %>" data-postid="<%= post.id %>" > |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | </li> |
| 48 | 48 | </script> |
| 49 | 49 | <?php |
| 50 | - } |
|
| 50 | + } |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | } |