Home  >  Article  >  CMS Tutorial  >  WordPress5.6 'Insert from URL' image BUG problem solved

WordPress5.6 'Insert from URL' image BUG problem solved

藏色散人
藏色散人forward
2020-12-16 16:13:203620browse

The following column WordPress Tutorial will introduce to you how to solve the "Insert from URL" image bug in WordPress 5.6. I hope it will be helpful to friends in need!

WordPress5.6 'Insert from URL' image BUG problem solved

The only gratifying thing about WordPress 5.6 is that the Chinese version was released at the same time, because the developers have been working hard to optimize the enhanced block editor, and I have been using the classic editor I don't feel any change.

However, I quickly discovered a bug. When using the classic editor to add a picture and insert it from the URL, the "Align" and "Link to" options below were displayed incorrectly and ran into the textarea of ​​the picture description, which could not be used normally. , as shown in the figure:

WordPress5.6 Insert from URL image BUG problem solved

Solution:

Open the media-template.php file in the wordpress\wp-includes directory and change 1023 OK:

<textarea id="embed-image-settings-caption" data-setting="caption" />

was changed to:

<textarea id="embed-image-settings-caption" data-setting="caption" />

Just added a closing tag at the end, which should be less writing, but the same thing happened after looking at the previous version of WP. Close this label.

WordPress5.6 Insert from URL image BUG problem solved

#WordPress program developers should have paid little attention to classic editor issues, and it is estimated that there will be more problems in the future.

The above is the detailed content of WordPress5.6 'Insert from URL' image BUG problem solved. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:zmingcx.com. If there is any infringement, please contact admin@php.cn delete