PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | includes/class-updraft-abstract-logger.php +6 -6 3.6.0 → 4.7.0 View file →
@@ -127,10 +127,10 @@
127 127 /**
128 128 * Return option $name value
129 129 *
130 130 * @param string $name Name of the option.
131 - * @param string $default Add default value.
132 - * @return array An array of options.
131 + * @param mixed $default Add default value.
132 + * @return mixed The value of the option.
133 133 */
134 134 public function get_option($name, $default = '') {
135 135 if (!array_key_exists($name, $this->options)) return $default;
136 136 return $this->options[$name];
@@ -138,10 +138,10 @@
138 138
139 139 /**
140 140 * Set option $name value.
141 141 *
142 - * @param string $name The name of the option.
143 - * @param string $value The value of the option.
142 + * @param mixed $name The name of the option.
143 + * @param mixed $value The value of the option.
144 144 */
145 145 public function set_option($name, $value = '') {
146 146 if (is_array($name)) {
147 147 $this->options = array_merge($this->options, $name);
@@ -163,12 +163,12 @@
163 163 * @param string $message
164 164 * @param array $context
165 165 * @return string
166 166 */
167 - protected function interpolate($message, array $context = array()) {
167 + protected function interpolate($message, $context = array()) {
168 168 $replace = array();
169 169 foreach ($context as $key => $val) {
170 - // Check that the value can be casted to string.
170 + // Check that the value can be cast to string.
171 171 if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) {
172 172 $replace['{' . $key . '}'] = $val;
173 173 }
174 174 }