diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php
index ef8b6d5..6b136e7 100644
a
|
b
|
class WP_Comment_Query { |
1173 | 1173 | return 'DESC'; |
1174 | 1174 | } |
1175 | 1175 | } |
| 1176 | |
| 1177 | /** |
| 1178 | * Retrieve query variable. |
| 1179 | * |
| 1180 | * @since 4.8.0 |
| 1181 | * |
| 1182 | * @access public |
| 1183 | * |
| 1184 | * @param string $query_var Query variable key. |
| 1185 | * @param mixed $default Optional. Value to return if the query variable is not set. Default empty. |
| 1186 | * @return mixed Contents of the query variable. |
| 1187 | */ |
| 1188 | public function get( $query_var, $default = '' ) { |
| 1189 | if ( isset( $this->query_vars[ $query_var ] ) ) { |
| 1190 | return $this->query_vars[ $query_var ]; |
| 1191 | } |
| 1192 | |
| 1193 | return $default; |
| 1194 | } |
| 1195 | |
| 1196 | /** |
| 1197 | * Set query variable. |
| 1198 | * |
| 1199 | * @since 4.8.0 |
| 1200 | * @access public |
| 1201 | * |
| 1202 | * @param string $query_var Query variable key. |
| 1203 | * @param mixed $value Query variable value. |
| 1204 | */ |
| 1205 | public function set($query_var, $value) { |
| 1206 | $this->query_vars[$query_var] = $value; |
| 1207 | } |
1176 | 1208 | } |