PluginProbe
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar / 2.1.21
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar v2.1.21
2.1.21 2.1.20 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 trunk 1.1 2.0 2.0.1 2.0.10.2 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.2 2.0.20 2.0.21 2.0.22 All 55 releases
← All changes | core/wpbm.php +8 -63 2.0.22.1.21 View file →
@@ -5,9 +5,9 @@
5 5 * @subpackage Core
6 6 * @category Items
7 7 *
8 8 * @author wpdevelop
9 - * @link http://oplugins.com/
9 + * @link https://oplugins.com/
10 10 * @email info@oplugins.com
11 11 *
12 12 * @modified 2014.07.29
13 13 */
@@ -234,9 +234,9 @@
234 234
235 235 // Cloning instances of the class is forbidden
236 236 public function __clone() {
237 237
238 - _doing_it_wrong( __FUNCTION__, __( 'Action is not allowed!' ), '1.0' );
238 + _doing_it_wrong( __FUNCTION__, esc_html__( 'Action is not allowed!', 'booking-manager' ), '1.0' );
239 239 }
240 240
241 241
242 242 // Unserializing instances of the class is forbidden
@@ -241,9 +241,9 @@
241 241
242 242 // Unserializing instances of the class is forbidden
243 243 public function __wakeup() {
244 244
245 - _doing_it_wrong( __FUNCTION__, __( 'Action is not allowed!' ), '1.0' );
245 + _doing_it_wrong( __FUNCTION__, esc_html__( 'Action is not allowed!', 'booking-manager' ), '1.0' );
246 246 }
247 247
248 248
249 249 // Initialization
@@ -272,10 +272,10 @@
272 272
273 273 function wpbm_show_activation_error() {
274 274
275 275 $message_type = 'error';
276 - $title = __( 'Error' , 'booking-manager') . '!';
277 - $message = __( 'Please deactivate previous old version of' , 'booking-manager') . ' ' . 'booking-manager';
276 + $title = esc_html__( 'Error' , 'booking-manager') . '!';
277 + $message = esc_html__( 'Please deactivate previous old version of' , 'booking-manager') . ' ' . 'booking-manager';
278 278
279 279 $wpbm_version_num = get_option( 'wpbm_version_num');
280 280 if ( ! empty( $wpbm_version_num ) )
281 281 $message .= ' <strong>' . $wpbm_version_num . '</strong>';
@@ -285,9 +285,9 @@
285 285
286 286 if ( $is_delete_if_deactive == 'On' ) {
287 287
288 288 $message .= '<br/><br/> <strong>Warning!</strong> ' . 'All plugin data will be deleted when plugin had deactivated.' . ' '
289 - . sprintf( 'If you want to save your plugin data, please uncheck the %s"Delete plugin data"%s at the', '<strong>', '</strong>') . ' ' . __( 'Settings' , 'booking-manager') . '.';
289 + . sprintf( 'If you want to save your plugin data, please uncheck the %s"Delete plugin data"%s at the', '<strong>', '</strong>') . ' ' . esc_html__( 'Settings' , 'booking-manager') . '.';
290 290 }
291 291
292 292 $message_content = '';
293 293
@@ -292,9 +292,9 @@
292 292 $message_content = '';
293 293
294 294 $message_content .= '<div class="clear"></div>';
295 295
296 - $message_content .= '<div class="updated wpbm-settings-notice notice-' . $message_type . ' ' . $message_type . '" style="text-align:left;padding:10px;">';
296 + $message_content .= '<div class="updated wpbm-settings-notice notice-' . esc_attr( $message_type ) . ' ' . esc_attr( $message_type ) . '" style="text-align:left;padding:10px;">';
297 297
298 298 if ( ! empty( $title ) )
299 299 $message_content .= '<strong>' . esc_js( $title ) . '</strong> ';
300 300
@@ -303,9 +303,9 @@
303 303 $message_content .= '</div>';
304 304
305 305 $message_content .= '<div class="clear"></div>';
306 306
307 - echo $message_content;
307 + echo $message_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
308 308 }
309 309
310 310 add_action('admin_notices', 'wpbm_show_activation_error');
311 311
@@ -327,59 +327,4 @@
327 327
328 328 // Start
329 329 WPBM();
330 330
331 -
332 -
333 -//if ( ! defined( 'SAVEQUERIES') ) define('SAVEQUERIES', true);
334 -
335 - //add_action( 'admin_footer', 'wpbm_show_debug_info', 130 );
336 -function wpbm_show_debug_info() {
337 -
338 - $request_uri = $_SERVER['REQUEST_URI']; // FixIn:5.4.1
339 - if ( strpos( $request_uri, 'page=wpbm') === false ) {
340 - return;
341 - }
342 - echo '<div style="width:800px;margin:10px auto;"><style type="text/css"> a:link{background: inherit !important; } pre { white-space: pre-wrap; }</style>';
343 -
344 -phpinfo(); echo '</div>'; return;
345 -
346 - ?><div style="width:auto;margin:0 0 0 215px;font-size:11px; "><?php
347 -
348 -// SYSTEM INFO SHOWING ////////////////////////////////////////////////////////
349 -
350 - //Note firstly need to define this in functions.php file: define('SAVEQUERIES', true);
351 - global $wpdb;
352 - echo '<div class="clear"></div>START SYSTEM<pre>';
353 - $qq_kk = 0;
354 - $total_time = 0;
355 - $total_num = 0;
356 - foreach ( $wpdb->queries as $qq_k => $qq ) {
357 - if (
358 - ( strpos( $qq[0], 'booking-manager') !== false )
359 -
360 - ) {
361 - if ( $qq[1] > 0.002 ) { echo '<div style="color:#A77;font-weight:bold;">'; }
362 - debuge($qq_kk++, $qq);
363 - $total_time += $qq[1];
364 - $total_num++;
365 - if ( $qq[1] > 0.002 ) { echo '</div>'; }
366 - }
367 - }
368 -
369 - echo '<div><pre class="prettyprint linenums" style="font-size:18px;">[' . $total_num . '/' . $total_time . '] WPBM Requests TOTAL TIME</pre></div>';
370 -
371 - echo '<div class="clear"></div>';
372 -
373 - echo '<div><pre class="prettyprint linenums" style="font-size:18px;">' . get_num_queries(). '/' . timer_stop(0, 3) . 'qps</pre></div>';
374 -
375 - echo '<div class="clear"></div>';
376 -
377 - echo "</pre>";
378 - ?><br/><br/><br/><br/><br/><br/><?php
379 - echo '<div class="clear"></div>';
380 -
381 -////////////////////////////////////////////////////////////////////////////////
382 - ?></div><?php
383 -
384 - echo '</div>';
385 -}