PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.0.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.0.2
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/Utils/Helper.php +2 -22 3.0.62.0.2 View file →
@@ -151,23 +151,8 @@
151 151
152 152 return $_favourites;
153 153 }
154 154
155 - public function normalizeReviews( $favourites, $_favourites = [], $undo = false ){
156 - array_map( function( $item ) use ( &$_favourites) {
157 - if( ! is_null( $item ) ) {
158 - $item = (array) $item;
159 - if ( !isset( $_favourites[ $item['type'] ] ) ){
160 - $_favourites[ $item['type'] ] = [];
161 - }
162 - $_favourites[ $item['type'] ][$item['type_id']] = $item['rating'];
163 - }
164 - return $_favourites;
165 - }, $favourites );
166 -
167 - return $_favourites;
168 - }
169 -
170 155 /**
171 156 * Trigger Error
172 157 *
173 158 * @param object $triggered_by
@@ -187,18 +172,13 @@
187 172 * @param mixed $log
188 173 * @return void
189 174 */
190 175 public static function log( $log ){
191 - if ( defined('WP_DEBUG_LOG') && WP_DEBUG_LOG === true ) {
176 + if ( WP_DEBUG_LOG === true ) {
192 177 if ( is_array( $log ) || is_object( $log ) ) {
193 178 error_log( print_r( $log, true ) );
194 179 } else {
195 - error_log( $log ?: '' );
180 + error_log( $log );
196 181 }
197 182 }
198 183 }
199 -
200 - public static function should_flush(){
201 - return (!defined('TEMPLATELY_IGNORE_FLUSH_ALL') || !TEMPLATELY_IGNORE_FLUSH_ALL) && strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') === false;
202 - }
203 -
204 184 }