@@ -315,10 +315,10 @@ |
||
315 | 315 | * which is callable. If so, it registers the callback, and if not, |
316 | 316 | * converts the maybe-modified $val to a boolean for return. |
317 | 317 | * |
318 | - * The registered handlers will have a parameter name which matches the filter, except: |
|
319 | - * - The 'cmb2_api' prefix will be removed |
|
320 | - * - A '_cb' suffix will be added (to stay inline with other '*_cb' parameters). |
|
321 | - * |
|
318 | + * The registered handlers will have a parameter name which matches the filter, except: |
|
319 | + * - The 'cmb2_api' prefix will be removed |
|
320 | + * - A '_cb' suffix will be added (to stay inline with other '*_cb' parameters). |
|
321 | + * |
|
322 | 322 | * @since 2.2.3 |
323 | 323 | * |
324 | 324 | * @param string $hook_name The hook name. |
@@ -954,11 +954,11 @@ |
||
954 | 954 | } |
955 | 955 | |
956 | 956 | if ( $pagenow === 'admin-ajax.php' && isset($_POST['action']) ) { |
957 | - switch ( $_POST['action'] ) { |
|
957 | + switch ( $_POST['action'] ) { |
|
958 | 958 | case 'add-tag': |
959 | - $type = 'term'; |
|
960 | - break; |
|
961 | - } |
|
959 | + $type = 'term'; |
|
960 | + break; |
|
961 | + } |
|
962 | 962 | } |
963 | 963 | |
964 | 964 | return $type; |