diff --git a/image-select-v4.php b/image-select-v4.php index 13e1ab3..a1b0e61 100755 --- a/image-select-v4.php +++ b/image-select-v4.php @@ -50,7 +50,7 @@ function __construct() * @date 23/01/13 */ - function render_field( $field ) + function create_field( $field ) { // vars $i = 0; @@ -258,13 +258,13 @@ function create_options( $field ) function input_admin_enqueue_scripts() { // scripts - wp_register_script('acf-input-image-select', plugin_dir_path(__FILE__) . '/js/image-select.js', array('acf-input'), $this->settings['version']); + wp_register_script('acf-input-image-select', plugins_url( 'js/image-select.js', __FILE__), array('acf-input'), $this->settings['version']); wp_enqueue_script(array( 'acf-input-image-select', )); // styles - wp_register_style('acf-input-image-select', plugin_dir_path(__FILE__) . '/css/image-select.css', array('acf-input'), $this->settings['version']); + wp_register_style('acf-input-image-select', plugins_url( 'css/image-select.css', __FILE__), array('acf-input'), $this->settings['version']); wp_enqueue_style(array( 'acf-input-image-select', )); @@ -345,4 +345,4 @@ function update_field( $field, $post_id ) new acf_field_image_select(); -?> \ No newline at end of file +?>