Completed
Push — fix/reduce-db-queries ( c6c8dc...00fabf )
by
unknown
242:08 queued 232:26
created
class.jetpack-options.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	 * This does _not_ adjust the prefix in any way (does not prefix jetpack_%)
126 126
 	 *
127 127
 	 * @param string $name Option name
128
-	 * @param mixed $default (optional)
128
+	 * @param string $default (optional)
129 129
 	 */
130 130
 	public static function get_option_and_ensure_autoload( $name, $default ) {
131 131
 		$value = get_option( $name );
@@ -138,6 +138,9 @@  discard block
 block discarded – undo
138 138
 		return $value;
139 139
 	}
140 140
 
141
+	/**
142
+	 * @param string $name
143
+	 */
141 144
 	private static function update_grouped_option( $group, $name, $value ) {
142 145
 		$options = get_option( self::$grouped_options[ $group ] );
143 146
 		if ( ! is_array( $options ) ) {
@@ -236,6 +239,9 @@  discard block
 block discarded – undo
236 239
 		return $result;
237 240
 	}
238 241
 
242
+	/**
243
+	 * @param string $name
244
+	 */
239 245
 	private static function get_grouped_option( $group, $name, $default ) {
240 246
 		$options = get_option( self::$grouped_options[ $group ] );
241 247
 		if ( is_array( $options ) && isset( $options[ $name ] ) ) {
Please login to merge, or discard this patch.