Attachment image appends after description saving
-
Hi.
I have a custom page for image attachments in my theme. When I go to any page with image attachment, edit attachment description (the same as post content) and save the description there is attachment image appears before the attachment description.
I have solved this bug and want you to solve it in your plugin.When page loads it there is script includes – wp-include/template-loader.php. On line 29 it removes ‘prepend_attachment’ filter which add attachment image before the description.
But when your plugin send AJAX request to plugin – template-loader.php script doesn’t include.
In my case I just added the same remove_filter to my theme setup action.What do you think about this?
- The topic ‘Attachment image appends after description saving’ is closed to new replies.