Server IP : 85.214.239.14 / Your IP : 3.23.103.203 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/task/3/cwd/var/www/wordpress/wp-content/themes/Divi/includes/builder/ |
Upload File : |
<?php /** * Utility functions for checking conditions. * * To be included in this file a function must: * * * Return a bool value * * Have a name that asks a yes or no question (where the first word after * the et_ prefix is a word like: is, can, has, should, was, had, must, or will) * * @package Divi * @subpackage Builder * @since 4.0.7 */ // phpcs:disable Squiz.PHP.CommentedOutCode -- We may add `et_builder_()` in future. /* Function Template if ( ! function_exists( '' ) ): function et_builder_() { } endif; */ // phpcs:enable // Note: Functions in this file are sorted alphabetically. if ( ! function_exists( 'et_builder_is_loading_data' ) ) : /** * Determine whether builder is loading full data or not. * * @param string $type Is it a bb or vb. * * @return bool */ function et_builder_is_loading_data( $type = 'vb' ) { // phpcs:disable WordPress.Security.NonceVerification -- This function does not change any stats, hence CSRF ok. if ( 'bb' === $type ) { return 'et_pb_get_backbone_templates' === et_()->array_get( $_POST, 'action' ); } $data_actions = array( 'et_fb_retrieve_builder_data', 'et_fb_update_builder_assets', ); return isset( $_POST['action'] ) && in_array( $_POST['action'], $data_actions, true ); // phpcs:enable } endif; if ( ! function_exists( 'et_builder_should_load_all_data' ) ) : /** * Determine whether to load full builder data. * * @return bool */ function et_builder_should_load_all_data() { $needs_cached_definitions = et_core_is_fb_enabled() && ! et_fb_dynamic_asset_exists( 'definitions' ); return $needs_cached_definitions || ( ET_Builder_ELement::is_saving_cache() || et_builder_is_loading_data() ); } endif; // Note: Functions in this file are sorted alphabetically.