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

Fix V4 #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions image-select-v4.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function __construct()
* @date 23/01/13
*/

function render_field( $field )
function create_field( $field )
{
// vars
$i = 0;
Expand Down Expand Up @@ -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',
));
Expand Down Expand Up @@ -345,4 +345,4 @@ function update_field( $field, $post_id )

new acf_field_image_select();

?>
?>