@@ -66,13 +66,13 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * @param int $post_id |
|
| 71 | - */ |
|
| 69 | + /** |
|
| 70 | + * @param int $post_id |
|
| 71 | + */ |
|
| 72 | 72 | public function save_post( $post_id ) { |
| 73 | 73 | |
| 74 | 74 | $sidebar_id = filter_input( INPUT_POST, 'custom-sidebar-select', FILTER_VALIDATE_INT ); |
| 75 | - $custom_sidebar = filter_input( INPUT_POST, 'custom-sidebar', FILTER_VALIDATE_BOOLEAN ); |
|
| 75 | + $custom_sidebar = filter_input( INPUT_POST, 'custom-sidebar', FILTER_VALIDATE_BOOLEAN ); |
|
| 76 | 76 | |
| 77 | 77 | if ( isset( $custom_sidebar ) ) { |
| 78 | 78 | $sidebar_id = Custom_Sidebars::get_sidebar_id( $post_id ); |
@@ -83,10 +83,10 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - /** |
|
| 87 | - * @param int|null $post_id |
|
| 88 | - * @return bool |
|
| 89 | - */ |
|
| 86 | + /** |
|
| 87 | + * @param int|null $post_id |
|
| 88 | + * @return bool |
|
| 89 | + */ |
|
| 90 | 90 | public static function has_custom_sidebar( $post_id = null ) { |
| 91 | 91 | |
| 92 | 92 | $value = false; |