Home › Forums › General Issues › Admin errors since 5.5.13 PRO update › Reply To: Admin errors since 5.5.13 PRO update
(reposting my comment from above as I’m unable to mark it ‘public’):
I’m seeing this too. A reduced version of the code that causes it for me (pasted at the top of twentyseventeen’s functions.php):
function my_setup() {
if(function_exists('get_field')) {
$ga = get_field('google_analytics_id', 'option'); // text field
}
}
add_action('after_setup_theme','my_setup');
gives:
Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /wp-includes/functions.php on line 4138
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.