@@ -553,6 +553,8 @@ discard block |
||
553 | 553 | * - native PHP |
554 | 554 | * |
555 | 555 | * This is so we can use the same code to render a client-side and server-side template. |
556 | + * @param string $name |
|
557 | + * @param boolean $is_template |
|
556 | 558 | */ |
557 | 559 | private function render_widget_attr( $name, $value, $is_template ) { |
558 | 560 | echo $is_template ? "<%= $name %>" : esc_attr( $value ); |
@@ -560,6 +562,8 @@ discard block |
||
560 | 562 | |
561 | 563 | /** |
562 | 564 | * See above ^^ |
565 | + * @param string $name |
|
566 | + * @param boolean $is_template |
|
563 | 567 | */ |
564 | 568 | private function render_widget_option_selected( $name, $value, $compare, $is_template ) { |
565 | 569 | $compare_json = wp_json_encode( $compare ); |
@@ -76,7 +76,6 @@ discard block |
||
76 | 76 | * @since 5.8.0 |
77 | 77 | * |
78 | 78 | * @param string|array $key Query key or keys to remove. |
79 | - * @param bool|string $query Optional. A URL to act upon. Defaults to the current search URL. |
|
80 | 79 | * |
81 | 80 | * @return string New URL query string (unescaped). |
82 | 81 | */ |
@@ -178,6 +177,9 @@ discard block |
||
178 | 177 | return $filters; |
179 | 178 | } |
180 | 179 | |
180 | + /** |
|
181 | + * @param string $type |
|
182 | + */ |
|
181 | 183 | static function get_date_filter_type_name( $type, $is_updated = false ) { |
182 | 184 | switch ( $type ) { |
183 | 185 | case 'year': |