← All changes
|
includes/page-form-builder/publish/tpl-modal__publish.php
+4
-4
11.2
→
11.9
View file →
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * BFB Admin Templates: "Publish" modal. |
| 4 | 4 | * |
| @@ -203,9 +203,9 @@ | ||
| 203 | 203 | |
| 204 | 204 | $default_resource_id = self::get_default_resource_id(); |
| 205 | 205 | $default_form_name = self::get_default_form_name(); |
| 206 | 206 | $default_shortcode_raw = self::get_default_shortcode_raw( $default_resource_id, $default_form_name ); |
| 207 | - $is_demo = ( function_exists( 'wpbc_is_this_demo' ) && wpbc_is_this_demo() ); | |
| 207 | + $is_demo = wpbc_is_booking_form_publishing_restricted(); | |
| 208 | 208 | |
| 209 | 209 | wp_enqueue_script( |
| 210 | 210 | self::SCRIPT_HANDLE, |
| 211 | 211 | self::get_script_url(), |
| @@ -217,9 +217,9 @@ | ||
| 217 | 217 | wp_localize_script( |
| 218 | 218 | self::SCRIPT_HANDLE, |
| 219 | 219 | 'wpbc_bfb_publish_vars', |
| 220 | 220 | array( |
| 221 | - 'ajax_url' => admin_url( 'admin-ajax.php' ), | |
| 221 | + 'ajax_url' => admin_url( 'admin-ajax.php', 'relative' ), | |
| 222 | 222 | 'action' => self::get_ajax_action_name(), |
| 223 | 223 | 'nonce' => wp_create_nonce( self::get_ajax_nonce_action_name() ), |
| 224 | 224 | 'modal_selector' => '#' . self::MODAL_DOM_ID, |
| 225 | 225 | 'default_resource_id' => $default_resource_id, |
| @@ -262,9 +262,9 @@ | ||
| 262 | 262 | if ( ! self::is_builder_page( $page_name ) ) { |
| 263 | 263 | return; |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | - $is_demo = ( function_exists( 'wpbc_is_this_demo' ) && wpbc_is_this_demo() ); | |
| 266 | + $is_demo = wpbc_is_booking_form_publishing_restricted(); | |
| 267 | 267 | ?> |
| 268 | 268 | <span class="wpdevelop"> |
| 269 | 269 | <div id="<?php echo esc_attr( self::MODAL_DOM_ID ); ?>" class="modal wpbc_popup_modal" tabindex="-1" role="dialog" aria-hidden="true"> |
| 270 | 270 | <style type="text/css"> |
| @@ -451,5 +451,5 @@ | ||
| 451 | 451 | <?php |
| 452 | 452 | } |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | -WPBC_BFB_Tpl__Publish::init(); | |
| 455 | +WPBC_BFB_Tpl__Publish::init(); | |