PluginProbe
Booking Calendar / 11.8.2
Booking Calendar v11.8.2
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | core/wpbc_functions.php +113 -27 10.1111.8.2 View file →
@@ -23,15 +23,15 @@
23 23 * @return void
24 24 */
25 25 function wpbc_get_svg_logo( $svg_color = '#000', $svg_color_alt = '#fff', $opacity = '0.1' ) {
26 26
27 - $svg_icon_integarted = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="150 150 850 850">'
28 - . '<path style="fill:' . $svg_color . '" d="M224.3 117.81c0-7.62 6.18-13.8 13.8-13.8h104.13c7.62 0 13.8 6.18 13.8 13.8v239.06c-58.48 32.03-105.14 82.96-131.74 144.58V117.81z"/>'
29 - . '<path style="fill:' . $svg_color . ';" d="M224.3 620.3c0-152.27 123.43-275.7 275.7-275.7 69.48 0 132.95 25.7 181.43 68.11l-93.55 93.55c-24.31-18.76-54.79-29.92-87.88-29.92-79.51 0-143.96 64.45-143.96 143.96S420.49 764.26 500 764.26c33.09 0 63.57-11.16 87.88-29.92l93.55 93.55C632.95 870.3 569.48 896 500 896c-152.27 0-275.7-123.44-275.7-275.7z"/>'
30 - . '<path style="fill:' . $svg_color_alt . '" fill-opacity="' . $opacity . '" d="m681.43 827.89-93.55-93.55c34.11-26.33 56.08-67.62 56.08-114.04s-21.97-87.71-56.08-114.04l93.55-93.55c57.78 50.54 94.27 124.8 94.27 207.59s-36.49 157.05-94.27 207.59z"/>'
31 - . '</svg>';
32 -
33 -
27 +// $svg_icon_integarted = '<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="150 150 850 850">'
28 +// . '<path style="fill:' . $svg_color . '" d="M224.3 117.81c0-7.62 6.18-13.8 13.8-13.8h104.13c7.62 0 13.8 6.18 13.8 13.8v239.06c-58.48 32.03-105.14 82.96-131.74 144.58V117.81z"/>'
29 +// . '<path style="fill:' . $svg_color . ';" d="M224.3 620.3c0-152.27 123.43-275.7 275.7-275.7 69.48 0 132.95 25.7 181.43 68.11l-93.55 93.55c-24.31-18.76-54.79-29.92-87.88-29.92-79.51 0-143.96 64.45-143.96 143.96S420.49 764.26 500 764.26c33.09 0 63.57-11.16 87.88-29.92l93.55 93.55C632.95 870.3 569.48 896 500 896c-152.27 0-275.7-123.44-275.7-275.7z"/>'
30 +// . '<path style="fill:' . $svg_color_alt . '" fill-opacity="' . $opacity . '" d="m681.43 827.89-93.55-93.55c34.11-26.33 56.08-67.62 56.08-114.04s-21.97-87.71-56.08-114.04l93.55-93.55c57.78 50.54 94.27 124.8 94.27 207.59s-36.49 157.05-94.27 207.59z"/>'
31 +// . '</svg>';
32 +//
33 +//
34 34 // $svg_icon_integarted = '<svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" version="1.1" viewBox="0 0 600 600">
35 35 // <path id="O_Letter" d="M298.22 197.55c-92.32 0-167.15 77.82-167.15 173.81s74.84 173.82 167.15 173.82 167.15-77.82 167.15-173.82-74.84-173.81-167.15-173.81Zm0 264.53c-50.1 0-90.71-40.61-90.71-90.71s40.61-90.71 90.71-90.71 90.71 40.61 90.71 90.71-40.61 90.71-90.71 90.71Z" style="fill:' . $svg_color_alt . ';" fill-opacity="' . $opacity . '" />
36 36 // <path id="C_Letter" d="M363.75 434.1c-14.85 15.51-35.16 25.76-57.84 27.66-54.87 4.6-101.64-41.14-98.23-96.1 2.94-47.44 42.35-85.01 90.54-85.01 24.84 0 47.34 9.98 63.72 26.16 5.86 5.78 15.29 5.73 21.11-.09l35.14-35.14c5.69-5.69 5.9-14.87.43-20.77-30.41-32.83-73.1-53.26-120.4-53.26-92.32 0-167.15 77.82-167.15 173.81s74.84 173.82 167.15 173.82c48.49 0 92.15-21.47 122.68-55.76 5.29-5.94 5.02-14.97-.6-20.59l-35.05-35.05c-5.98-5.98-15.67-5.79-21.51.32Z" style="fill:' . $svg_color . ';"/>
37 37 // <path d="M130.69 357.28v2.59c0 .27.06.53.17.76a123.1 123.1 0 0 1-.17-3.35Zm4.51-50.82c12.34-39.07 38.32-70.02 77.79-97.04.92-.63 1.48-1.67 1.48-2.79V59.95c0-4.28-3.68-7.76-8.22-7.76h-3.76c-18.56 0-73.17 40.3-71.79 60.62l-.17 192.91c0 2.74 3.86 3.34 4.68.73Z" style="fill:' . $svg_color . ';"/>
@@ -48,8 +48,9 @@
48 48 // <path d="M340.53 412.91c-14.85 15.51-35.16 25.76-57.84 27.66-54.87 4.6-101.64-41.14-98.23-96.1 2.94-47.44 42.35-85.01 90.54-85.01 24.84 0 47.34 9.98 63.72 26.16 5.86 5.78 15.29 5.73 21.11-.09l35.14-35.14c5.69-5.69 5.9-14.87.43-20.77-30.41-32.83-73.1-53.26-120.4-53.26-92.32 0-167.15 77.82-167.15 173.81S182.69 523.99 275 523.99c48.49 0 92.15-21.47 122.68-55.76 5.29-5.94 5.02-14.97-.6-20.59l-35.05-35.05c-5.98-5.98-15.67-5.79-21.51.32Z" style="fill:#193db2"/>
49 49 // <path d="M112.53 280.27c12.34-39.07 38.32-70.02 77.79-97.04.92-.63 1.48-1.67 1.48-2.79V33.76c0-4.28-3.68-7.76-8.22-7.76h-3.76c-18.56 0-73.17 40.3-71.79 60.62l-.17 192.91c0 2.74 3.86 3.34 4.68.73Z" style="fill:#451fff"/>
50 50 // </svg>';
51 51
52 + // FixIn: 10.11.3.3.
52 53 $svg_icon_integarted = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 550 550">'
53 54 . '<path d="M275 162.36c-92.32 0-167.15 77.82-167.15 173.81S182.69 509.99 275 509.99s167.15-77.82 167.15-173.82S367.31 162.36 275 162.36Zm0 264.53c-50.1 0-90.71-40.61-90.71-90.71s40.61-90.71 90.71-90.71 90.71 40.61 90.71 90.71-40.61 90.71-90.71 90.71Z" style="fill:' . $svg_color_alt . ';" fill-opacity="' . $opacity . '" />'
54 55 . '<path d="M340.53 398.91c-14.85 15.51-35.16 25.76-57.84 27.66-54.87 4.6-101.64-41.14-98.23-96.1 2.94-47.44 42.35-85.01 90.54-85.01 24.84 0 47.34 9.98 63.72 26.16 5.86 5.78 15.29 5.73 21.11-.09l35.14-35.14c5.69-5.69 5.9-14.87.43-20.77-30.41-32.83-73.1-53.26-120.4-53.26-92.32 0-167.15 77.82-167.15 173.81S182.69 509.99 275 509.99c48.49 0 92.15-21.47 122.68-55.76 5.29-5.94 5.02-14.97-.6-20.59l-35.05-35.05c-5.98-5.98-15.67-5.79-21.51.32Z" style="fill:' . $svg_color . ';"/>'
55 56 . '<path d="M112.53 261.27c12.34-39.07 38.32-70.02 77.79-97.04.92-.63 1.48-1.67 1.48-2.79V14.76c0-4.28-3.68-7.76-8.22-7.76h-3.76c-18.56 0-73.17 40.3-71.79 60.62l-.17 192.91c0 2.74 3.86 3.34 4.68.73Z" style="fill:' . $svg_color . ';"/>'
@@ -76,9 +77,40 @@
76 77
77 78 return $svg_icon_integarted;
78 79 }
79 80
81 + /**
82 + * Get Logo as HTML element.
83 + *
84 + * @param array $params - logo parameters.
85 + *
86 + * @return string
87 + */
88 + function wpbc_get_svg_logo_for_html( $params = array() ) {
80 89
90 + // FixIn: 10.12.1.6.
91 + $defaults = array(
92 + 'svg_color' => '#ccc',
93 + 'svg_color_alt' => '#aaa',
94 + 'opacity' => '0.4',
95 + 'style_default' => 'background-repeat: no-repeat; background-position: center; display: inline-block; vertical-align: top;',
96 + 'style_adjust' => 'background-size: 18px auto; width: 20px; height: 20px; margin-top: 6px;', // This parameters, the adjust size of the logo and position.
97 + 'css_class' => '',
98 + );
99 +
100 + $params = wp_parse_args( $params, $defaults );
101 +
102 + $svg_logo_for_background = wpbc_get_svg_logo_for_background( $params['svg_color'], $params['svg_color_alt'], $params['opacity'] );
103 +
104 + $svg_icon_integarted = '<i';
105 + $svg_icon_integarted .= ' class="wpbc_svg_logo ' . esc_attr( $params['css_class'] ) . '"';
106 + $svg_icon_integarted .= ' style="' . esc_attr( $params['style_default'] ) . esc_attr( $params['style_adjust'] );
107 + $svg_icon_integarted .= 'background-image: url(\'' . esc_attr( $svg_logo_for_background ) . '\') !important;"';
108 + $svg_icon_integarted .= '></i>';
109 +
110 + return $svg_icon_integarted;
111 + }
112 +
81 113 // <editor-fold defaultstate="collapsed" desc=" == Get html preview of shortcode for Edit pages == " >
82 114
83 115 /**
84 116 * Get html preview of shortcode for Edit pages in Elementor and at Block editors
@@ -333,8 +365,41 @@
333 365 $calendar_skins_options_real[] = array( 'optgroup' => true, 'close' => true );
334 366
335 367 return $calendar_skins_options_real;
336 368 }
369 +
370 +
371 + function wpbc_get_calendar_skin_options_with_legacy_sections(){
372 +
373 + // FixIn: 10.3.0.5.
374 + // Calendar Skin /////////////////////////////////////////////////////
375 + $cal_arr = wpbc_get_calendar_skin_options( WPBC_PLUGIN_URL );
376 +
377 + $upload_dir = wp_upload_dir(); // Check if this skin exist in the Custom User folder at the http://example.com/wp-content/uploads/wpbc_skins/
378 + $custom_user_skin_folder = $upload_dir['basedir'];
379 + $custom_user_skin_url = $upload_dir['baseurl'];
380 +
381 + $transformed_cal_arr = array();
382 + foreach ( $cal_arr as $calendar_skin_url => $calendar_name ) {
383 + if ( false !== strpos( $calendar_skin_url, WPBC_PLUGIN_URL ) ) {
384 +
385 + $relative_cal_skin_path = str_replace( WPBC_PLUGIN_URL, '', $calendar_skin_url );
386 +
387 + if ( file_exists( $custom_user_skin_folder . $relative_cal_skin_path ) ) {
388 + // Custom Skin
389 + $transformed_cal_arr[ $custom_user_skin_url . $relative_cal_skin_path ] = $calendar_name;
390 + } else {
391 + // Plugin Usual Skins
392 + $transformed_cal_arr[ WPBC_PLUGIN_URL . $relative_cal_skin_path ] = $calendar_name;
393 + }
394 + } else {
395 + // OptGroups
396 + $transformed_cal_arr[ $calendar_skin_url ] = $calendar_name;
397 + }
398 + }
399 +
400 + return $transformed_cal_arr;
401 + }
337 402 // </editor-fold>
338 403
339 404
340 405 // <editor-fold defaultstate="collapsed" desc=" == Files functions == " >
@@ -479,9 +544,22 @@
479 544
480 545 function wpbc_can_i_load_on__resources_page() {
481 546
482 547 if (
483 - ( isset( $_REQUEST['page'] ) ) && ( $_REQUEST['page'] === 'wpbc-resources' ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
548 + ( isset( $_REQUEST['page'] ) )
549 + && (
550 + ( $_REQUEST['page'] === 'wpbc-resources' ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
551 + || (
552 + ( $_REQUEST['page'] === 'wpbc-booking-resources' ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
553 + && function_exists( 'wpbc_is_11_6_features_enabled' )
554 + && wpbc_is_11_6_features_enabled()
555 + )
556 + || (
557 + ( $_REQUEST['page'] === 'wpbc-catalog-booking-resources' ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
558 + && function_exists( 'wpbc_is_11_6_features_enabled' )
559 + && wpbc_is_11_6_features_enabled()
560 + )
561 + )
484 562 ) {
485 563 return true;
486 564 }
487 565
@@ -502,8 +580,9 @@
502 580 wpbc_can_i_load_on__resources_page()
503 581 && ( ! wpbc_can_i_load_on__searchable_resources_page() )
504 582 )
505 583 || wpbc_is_setup_wizard_page()
584 + || wpbc_is_builder_booking_form_page()
506 585 // || wpbc_is_bookings_page() // FixIn: 10.6.6.2.
507 586 ){
508 587 return true;
509 588 } else {
@@ -517,9 +596,15 @@
517 596 * @return bool
518 597 */
519 598 function wpbc_can_i_load_on_this_page__modal_search_options() {
520 599
521 - if ( wpbc_can_i_load_on__searchable_resources_page() ){
600 + if (
601 + wpbc_can_i_load_on__searchable_resources_page()
602 + || (
603 + function_exists( 'wpbc_catalog_searchable_resources_is_page' )
604 + && wpbc_catalog_searchable_resources_is_page()
605 + )
606 + ) {
522 607 return true;
523 608 } else {
524 609 return false;
525 610 }
@@ -732,9 +817,9 @@
732 817 $sql_req = "SELECT bk.booking_id FROM {$wpdb->prefix}booking as bk WHERE bk.is_new = 1 {$trash_bookings} ";
733 818
734 819 $sql_req = apply_bk_filter( 'get_sql_for_checking_new_bookings', $sql_req );
735 820 $sql_req = apply_bk_filter( 'get_sql_for_checking_new_bookings_multiuser', $sql_req );
736 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
821 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
737 822 $bookings = $wpdb->get_results( $sql_req );
738 823 $bookings_count = count( $bookings );
739 824
740 825 update_bk_option( 'booking_cache__new_bookings__number', $bookings_count );
@@ -760,18 +845,18 @@
760 845
761 846 $id_of_new_bookings = implode( ',', $id_of_new_bookings );
762 847 $id_of_new_bookings = wpbc_clean_like_string_for_db( $id_of_new_bookings );
763 848
764 -
849 + // FixIn: 10.12.1.5.
765 850 if ( 'all' === $id_of_new_bookings ) {
766 - $update_sql = "UPDATE {$wpdb->prefix}booking AS bk SET bk.is_new = {$is_new} WHERE bk.is_new != {$is_new} "; // FixIn: 8.2.1.18.
851 + $update_sql = "UPDATE {$wpdb->prefix}booking SET is_new = {$is_new} WHERE is_new != {$is_new} "; // FixIn: 8.2.1.18.
767 852
768 853 $update_sql = apply_bk_filter( 'update_sql_for_checking_new_bookings', $update_sql, 0, $user_id );
769 854 } else {
770 - $update_sql = "UPDATE {$wpdb->prefix}booking AS bk SET bk.is_new = {$is_new} WHERE bk.booking_id IN ( {$id_of_new_bookings} ) ";
855 + $update_sql = "UPDATE {$wpdb->prefix}booking SET is_new = {$is_new} WHERE booking_id IN ( {$id_of_new_bookings} ) ";
771 856 }
772 857
773 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
858 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
774 859 if ( false === $wpdb->query( $update_sql ) ) {
775 860 debuge_error( 'Error during updating status of bookings at DB', __FILE__, __LINE__ );
776 861 die();
777 862 }
@@ -1254,9 +1339,9 @@
1254 1339
1255 1340 global $wpdb;
1256 1341
1257 1342 $sql = $wpdb->prepare( "SELECT DISTINCT approved FROM {$wpdb->prefix}bookingdates WHERE booking_id = %d ORDER BY booking_date", $booking_id );
1258 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
1343 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
1259 1344 $dates_result = $wpdb->get_results( $sql );
1260 1345
1261 1346 foreach ( $dates_result as $my_date ) {
1262 1347
@@ -1283,9 +1368,9 @@
1283 1368 global $wpdb;
1284 1369
1285 1370 $update_sql = "UPDATE {$wpdb->prefix}bookingdates SET approved = '1' WHERE booking_id IN ({$booking_id});";
1286 1371
1287 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
1372 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
1288 1373 if ( false === $wpdb->query( $update_sql ) ) {
1289 1374 return false;
1290 1375 }
1291 1376
@@ -1291,10 +1376,10 @@
1291 1376
1292 1377 // In case if the booking was in Trash, then restore it.
1293 1378 // FixIn: 10.8.1.1.
1294 1379
1295 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared
1296 - if ( false === $wpdb->query( "UPDATE {$wpdb->prefix}booking AS bk SET bk.trash = 0 WHERE booking_id IN ({$booking_id})" ) ) {
1380 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
1381 + if ( false === $wpdb->query( "UPDATE {$wpdb->prefix}booking SET trash = 0 WHERE booking_id IN ({$booking_id})" ) ) {
1297 1382 return false;
1298 1383 }
1299 1384
1300 1385 return true;
@@ -1362,9 +1447,9 @@
1362 1447 }
1363 1448 }
1364 1449
1365 1450 $update_sql = "UPDATE {$wpdb->prefix}bookingdates SET approved = '0' WHERE booking_id IN ({$booking_id});";
1366 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
1451 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
1367 1452 if ( false === $wpdb->query( $update_sql ) ) {
1368 1453
1369 1454 wpbc_redirect( site_url() );
1370 1455 }
@@ -1393,10 +1478,11 @@
1393 1478 }
1394 1479 }
1395 1480 // Send decline emails.
1396 1481 wpbc_send_email_trash( $booking_id, 1, $email_reason );
1397 - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared
1398 - if ( false === $wpdb->query( "UPDATE {$wpdb->prefix}booking AS bk SET bk.trash = 1 WHERE booking_id IN ({$booking_id})" ) ) {
1482 + // FixIn: 10.12.1.5.
1483 + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.PreparedSQL.InterpolatedNotPrepared, PluginCheck.Security.DirectDB.UnescapedDBParameter
1484 + if ( false === $wpdb->query( "UPDATE {$wpdb->prefix}booking SET trash = 1 WHERE booking_id IN ({$booking_id})" ) ) {
1399 1485
1400 1486 wpbc_redirect( site_url() );
1401 1487 }
1402 1488 }
@@ -1614,18 +1700,18 @@
1614 1700 * @return array
1615 1701 *
1616 1702 * Example:
1617 1703 *
1618 - * $php_performance = php_performance_START( 'emails_sending' , $php_performance );
1704 + * $php_performance = wpbc_php_performance_START( 'emails_sending' , $php_performance );
1619 1705 *
1620 1706 * ... some code here ...
1621 1707 *
1622 - * $php_performance = php_performance_END( 'emails_sending' , $php_performance );
1708 + * $php_performance = wpbc_php_performance_END( 'emails_sending' , $php_performance );
1623 1709 *
1624 1710 * echo 'Time of execution: ' . $php_performancep['emails_sending']
1625 1711 *
1626 1712 */
1627 - function php_performance_START( $name, $php_performance ) {
1713 + function wpbc_php_performance_START( $name, $php_performance ) {
1628 1714
1629 1715 if ( empty( $php_performance ) ) {
1630 1716 $php_performance = array();
1631 1717 }
@@ -1644,18 +1730,18 @@
1644 1730 * @return array
1645 1731 *
1646 1732 * Example:
1647 1733 *
1648 - * $php_performance = php_performance_START( 'emails_sending' , $php_performance );
1734 + * $php_performance = wpbc_php_performance_START( 'emails_sending' , $php_performance );
1649 1735 *
1650 1736 * ... some code here ...
1651 1737 *
1652 - * $php_performance = php_performance_END( 'emails_sending' , $php_performance );
1738 + * $php_performance = wpbc_php_performance_END( 'emails_sending' , $php_performance );
1653 1739 *
1654 1740 * echo 'Time of execution: ' . $php_performancep['emails_sending']
1655 1741 *
1656 1742 */
1657 - function php_performance_END( $name, $php_performance ) {
1743 + function wpbc_php_performance_END( $name, $php_performance ) {
1658 1744
1659 1745 if ( empty( $php_performance ) ) {
1660 1746 $php_performance = array();
1661 1747 }