Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always enqueue the DFV script by default if in the admin #5114

Merged
merged 2 commits into from Aug 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions classes/PodsAdmin.php
Expand Up @@ -174,6 +174,18 @@ public function admin_head() {
}//end if
}//end if

/**
* Filter to disable default loading of the DFV script. By default, Pods
* will always enqueue the DFV script if is_admin()
*
* @param bool Whether or not to enqueue by default
*
* @since 2.7.10
*/
if ( apply_filters( 'pods_default_enqueue_dfv', true ) ) {
wp_enqueue_script( 'pods-dfv' );
}

// New Styles Enqueue
wp_enqueue_style( 'pods-styles' );
}
Expand Down