WordPress.org

Forums

Facebook Open Graph, Google+ and Twitter Card Tags
[resolved] [BUG] Image assets no longer inserting (6 posts)

  1. flynsarmy
    Member
    Posted 1 year ago #

    After your update this morning, images no longer insert when clicking 'Insert Image' in the 'Add Media' modal. I've narrowed the cause of this down to the script at the bottom of your wonderm00n_open_graph_add_posts_options_box function:

    echo '<script type="text/javascript">
    	jQuery(document).ready(function() {
    		jQuery(\'#webdados_fb_open_graph_specific_image_button\').click(function(){
    			tb_show(\''.__('Upload/Choose Open Graph Image', 'wd-fb-og').'\',"media-upload.php?type=image&TB_iframe=true&post_id='.$post->ID.'", false);
    		});
    		window.send_to_editor = function(html) {
    			imgurl=jQuery("<div>" + html + "</div>").find(\'img\').attr(\'src\');
    			jQuery("#webdados_fb_open_graph_specific_image").val(imgurl);
    			tb_remove();
    		}
    	});
    	</script>';

    Steps to replicate:

    • Go to Posts - Add New
    • Click 'Add Media'
    • On the 'Upload Files' tab, upload an image
    • Click 'Insert into Post'

    No image will appear in the editor.
    http://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/

  2. wonderm00n
    Member
    Plugin Author

    Posted 1 year ago #

    Version 1.0.1 fixes this. Can you please confirm it sou I can set this ticket as "resolved"?

    Thank you VERY MUCH for the report.

  3. gcluley
    Member
    Posted 1 year ago #

    Thanks for fixing this. I thought I was going mad...

  4. wonderm00n
    Member
    Plugin Author

    Posted 1 year ago #

    Shame on me :-)

    gcluley:
    Do you confirm it's fixed and you can now insert images into the editor, the featured image field and my plugin's new field?

  5. flynsarmy
    Member
    Posted 1 year ago #

    Fix confirmed. All good now.

  6. wonderm00n
    Member
    Plugin Author

    Posted 1 year ago #

    Resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Open Graph, Google+ and Twitter Card Tags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.