@@ -102,10 +102,17 @@ |
||
102 | 102 | return \apply_filters( 'jetpack_redirects_get_url', $url, $source, $args, $is_url ); |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param string $name |
|
107 | + * @param integer $value |
|
108 | + */ |
|
105 | 109 | public static function store( $name, $value ) { |
106 | 110 | update_option( $name, $value ); |
107 | 111 | } |
108 | 112 | |
113 | + /** |
|
114 | + * @param string $name |
|
115 | + */ |
|
109 | 116 | public static function get( $name ) { |
110 | 117 | return get_option( $name ); |
111 | 118 | } |
@@ -64,10 +64,6 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @global string $wp_version The WordPress version string. |
66 | 66 | * |
67 | - * @param string $dbuser MySQL database user |
|
68 | - * @param string $dbpassword MySQL database password |
|
69 | - * @param string $dbname MySQL database name |
|
70 | - * @param string $dbhost MySQL database host |
|
71 | 67 | */ |
72 | 68 | public function __construct() { |
73 | 69 | return; |
@@ -310,7 +306,7 @@ discard block |
||
310 | 306 | * @param string $db_cap The feature to check for. Accepts 'collation', |
311 | 307 | * 'group_concat', 'subqueries', 'set_charset', |
312 | 308 | * 'utf8mb4', or 'utf8mb4_520'. |
313 | - * @return int|false Whether the database feature is supported, false otherwise. |
|
309 | + * @return boolean Whether the database feature is supported, false otherwise. |
|
314 | 310 | */ |
315 | 311 | public function has_cap( $db_cap ) { |
316 | 312 | return true; |
@@ -322,7 +318,7 @@ discard block |
||
322 | 318 | * |
323 | 319 | * @since 2.7.0 |
324 | 320 | * |
325 | - * @return null|string Null on failure, version number on success. |
|
321 | + * @return integer Null on failure, version number on success. |
|
326 | 322 | */ |
327 | 323 | public function db_version() { |
328 | 324 | return 10; |