Mô tả
WordPress HTML editor (tinyMCE) treats schema.org attributes like itemscope/itemtype/itemprop as invalid HTML attributes and strips them when you save the post or page content. This plugin alters this behavior and prevent the WordPress HTML editor from removing the schema.org/microdata markup.
Credits
@azaozz suggested the solution. See the issue discussion here: https://core.trac.wordpress.org/ticket/27931
Cài đặt
Just install the plugin as usually and activate it. Once activated, it will keep your markup from being removed by the HTML editor. No setup required.
Đánh giá
Người đóng góp & Lập trình viên
“Protect schema.org markup in HTML editor” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Protect schema.org markup in HTML editor” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
0.6
- The new feature is the compatibility schema.org attributes for the wp_kses_post function. This is useful when page content from additional fields with HTML editor is filtered using wp_kses_post function by third-party plugins.
0.5
- Added support for the “content” attribute for the “time” tag
- Fixed error “Notice: Undefined index: extended_valid_elements”
0.4
Fixed src attribute being removed from img tag.
0.3
Fixed schema.org attributes being removed from article and p tags.
0.2
Fixed schema.org attributes being removed from img tags.
0.1
Initial version