Multiple images implementation
-
Hi,
You plugin works great but it has some coding errors. It was almost ready to handle multiple images.
I only modified
widget-image-field/widget-image-field.php
.On line 53, modified :
Before :
$this->widget_field = $this->get_widget_field( $widget, $this->image_id );
After :
$this->widget_field = $this->get_widget_field( $this->image_id );
On line 126, added :
if (isset($this->widget->image_field)) { $field_name = $this->widget->image_field; }
And on line 132, modified :
Before :
$field .= "<input type='hidden' style='display:none;' id='" . $this->widget->get_field_id( $this->widget->image_field ) . "' name='" . $this->widget->get_field_name( $this->widget->image_field ) . "' value='" . $this->image_id . "' />";
After :
$field .= "<input type='hidden' style='display:none;' id='" . $this->widget->get_field_id( $field_name ) . "' name='" . $this->widget->get_field_name( $field_name ) . "' value='" . $this->image_id . "' />";
Can you review my changes and update the plugin ?
Thanks !
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multiple images implementation’ is closed to new replies.