@@ -6,8 +6,8 @@ discard block |
||
| 6 | 6 | * If we're on multsite we'll grab the site option which is stored in the main blogs site option tables, otherwise |
| 7 | 7 | * we'll grab the option which is stored on the single blogs option tables |
| 8 | 8 | * |
| 9 | - * @param unknown $option string name of the option |
|
| 10 | - * @param unknown $section string name of the section |
|
| 9 | + * @param string $option string name of the option |
|
| 10 | + * @param string $section string name of the section |
|
| 11 | 11 | * @param unknown $default string/int default option value |
| 12 | 12 | * @return the option value |
| 13 | 13 | * @since 1.0 |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * Return an array of categories for autocomplete |
| 215 | 215 | * |
| 216 | 216 | * @since 0.9.3 |
| 217 | - * @return array all categoiries |
|
| 217 | + * @return null|string all categoiries |
|
| 218 | 218 | */ |
| 219 | 219 | function lasso_get_objects( $taxonomy = 'category' ) { |
| 220 | 220 | |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | * Used internally as a callback to build a tab or content area for modal addons |
| 300 | 300 | * |
| 301 | 301 | * @param $tab object |
| 302 | -* @param $type string tab or content |
|
| 302 | +* @param string $type string tab or content |
|
| 303 | 303 | * @uses lasso_modal_addons() |
| 304 | 304 | * @since 0.9.4 |
| 305 | 305 | */ |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | 'public' => true, |
| 244 | 244 | ), 'objects' ); |
| 245 | 245 | $post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) ); |
| 246 | - unset( $post_types[ 'attachment' ] ); |
|
| 246 | + unset( $post_types[ 'attachment' ] ); |
|
| 247 | 247 | |
| 248 | 248 | /** |
| 249 | 249 | * Set which post types are allowed |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | 'public' => true, |
| 272 | 272 | ), 'names' ); |
| 273 | 273 | //$post_types = array_combine( array_keys( $post_types ), wp_list_pluck( $post_types, 'label' ) ); |
| 274 | - unset( $post_types[ 'attachment' ] ); |
|
| 274 | + unset( $post_types[ 'attachment' ] ); |
|
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | 277 | * Set which post types are allowed |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | */ |
| 375 | 375 | if ( !function_exists( 'lasso_user_can' ) ): |
| 376 | 376 | function lasso_user_can( $action = '', $postid = 0 ) { |
| 377 | - $result = false; |
|
| 377 | + $result = false; |
|
| 378 | 378 | if ( empty( $action ) ) |
| 379 | 379 | $action = 'edit_posts'; |
| 380 | 380 | |
@@ -389,17 +389,17 @@ discard block |
||
| 389 | 389 | $allowed_post_types = array_diff($allowed_post_types,array('page')); |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | - if (!empty($allowed_post_types) && !empty($postid)) { |
|
| 392 | + if (!empty($allowed_post_types) && !empty($postid)) { |
|
| 393 | 393 | $type = get_post_type( $postid ); |
| 394 | - $allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types ); |
|
| 394 | + $allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types ); |
|
| 395 | 395 | |
| 396 | - if ( in_array( $type, $allowed_post_types ) ) { |
|
| 396 | + if ( in_array( $type, $allowed_post_types ) ) { |
|
| 397 | 397 | $result = true; |
| 398 | - } |
|
| 399 | - } else { |
|
| 400 | - //we are not checking against a post, return true |
|
| 398 | + } |
|
| 399 | + } else { |
|
| 400 | + //we are not checking against a post, return true |
|
| 401 | 401 | $result = true; |
| 402 | - } |
|
| 402 | + } |
|
| 403 | 403 | } else { |
| 404 | 404 | $result = false; |
| 405 | 405 | } |