Files
2024_WORDPRESS_PLUGIN_fbpatch/php/patches/urls.php
2024-07-17 15:30:32 +02:00

31 lines
901 B
PHP

<?php
namespace FBPATCH;
/**
* it means someone outside wp is accessing the file, in this case kill it.
*/
if (!defined('ABSPATH')) {
die('You can not access this file!');
}
/**
* in `wp-content/plugins/divi-form-builder/includes/DiviFormBuilder.php`
* also :
* - Undefined variable: min_length in /var/www/html/wp-content/plugins/divi-form-builder/includes/modules/FormField/FormField.php on line 5933
* - Undefined variable: use_icon in /var/www/html/wp-content/plugins/divi-form-builder/includes/modules/FormField/FormField.php on line 5984
*/
function add_my_jquery_patch() {
$handle = 'jquery_validator_url_patch';
$url = Fbpatch::root_url() . 'js/urls.js';
$dependencies = array('de_fb_validate');
$version = null;
$defer = true;
wp_enqueue_script( $handle, $url, $dependencies, $version, $defer);
}
add_action('wp_enqueue_scripts', __NAMESPACE__.'\add_my_jquery_patch');
?>