Support

Account

Home Forums Backend Issues (wp-admin) ReferenceError: wp is not defined in input.min.js Reply To: ReferenceError: wp is not defined in input.min.js

  • I know this is old but since is still unsolved, and i had the same issue with input.js
    the solution i came up with was force brute radical but it seems to work… i just commented out the part that adds up that file in acf.php

    // register acf scripts
    $scripts = array();
    $scripts[] = array(
    	'handle'	=> 'acf-field-group',
    	'src'		=> $this->settings['dir'] . "js/field-group{$min}.js",
    	'deps'		=> array('jquery')
    );
    // $scripts[] = array(
    // 	'handle'	=> 'acf-input',
    // 	'src'		=> $this->settings['dir'] . "js/input.js",
    // 	'deps'		=> array('jquery', 'jquery-ui-core', 'jquery-ui-datepicker')
    // );