mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-12 21:35:44 +03:00
Follow mockup for successful form submission
This commit is contained in:
parent
3133f0896a
commit
de07108905
4 changed files with 28 additions and 16 deletions
|
@ -270,7 +270,7 @@ function enqueue_assets() {
|
|||
|
||||
if ( CPT_ID === get_post_type() ) {
|
||||
$ver = filemtime( FiveForTheFuture\PATH . '/assets/js/frontend.js' );
|
||||
wp_enqueue_script( '5ftf-frontend', plugins_url( 'assets/js/frontend.js', __DIR__ ), [ 'jquery', 'wp-util', 'wicg-inert' ], $ver, true );
|
||||
wp_enqueue_script( '5ftf-frontend', plugins_url( 'assets/js/frontend.js', __DIR__ ), [ 'jquery', 'wp-a11y', 'wp-util', 'wicg-inert' ], $ver, true );
|
||||
|
||||
$script_data = [
|
||||
'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ), // The global ajaxurl is not set on the frontend.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue