If i go to the site editor, create a new synced pattern, on open it immediately gives the same error, without having done the first save.
So the question is:
Why if the post type is not tribe_*, and, there is no tribe* block, is it running any code in the editor? This seems to be an enqueuing issue.
The system does a PUT to https://MYDOMAIN/wp-json/wp/v2/blocks/7561892?_locale=user
with the body as below when I do a save (this is from the network tools).
{id: 7561892, rank_math_seo_score: 8,…}
content
:
"<!-- wp:buttons {\"metadata\":{\"name\":\"save-to-pdf\"},\"className\":\"ticss-3803a7bf\",\"hasCustomCSS\":true,\"customCSS\":\".ticss-3803a7bf {\\n position: absolute;\\n top: 2%;\\n right: 2%;\\n}\\n@media print {\\n .ticss-3803a7bf {\\n display: none !important;\\n }\\n}\"} -->\n<div class=\"wp-block-buttons ticss-3803a7bf\"><!-- wp:button {\"className\":\"generate-pdf ticss-37330599 is-style-outline\",\"style\":{\"spacing\":{\"padding\":{\"left\":\"0\",\"right\":\"0\",\"top\":\"0\",\"bottom\":\"0\"}}},\"hasCustomCSS\":true,\"customCSS\":\".ticss-37330599 {\\n /*\\n width: 64px;\\n height: 64px;\\n */\\n}\\n.ticss-37330599 img {\\n width: 24px;\\n height: 24px;\\n opacity: 0.8;\\n border: 0px;\\n}\\n\\n.ticss-37330599 img:hover {\\n width: 24px;\\n height: 24px;\\n opacity: 1.0;\\n}\"} -->\n<div class=\"wp-block-button generate-pdf ticss-37330599 is-style-outline\"><a class=\"wp-block-button__link wp-element-button\" style=\"padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\"><img class=\"wp-image-7741796\" src=\"/www/eedbac7d-pdf_icon.svg\" alt=\"PDF_icon\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->"
id
:
7561892
meta
:
{_price: "", _stock: "", _tribe_ticket_header: "", _tribe_default_ticket_provider: "",…}
rank_math_seo_score
:
8
Looking at this in json format, the PUT is:
_locale
user
{"id":7561892,"rank_math_seo_score":8,"meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_EventAllDay":false,"_EventTimezone":"","_EventStartDate":"","_EventEndDate":"","_EventStartDateUTC":"","_EventEndDateUTC":"","_EventShowMap":false,"_EventShowMapLink":false,"_EventURL":"","_EventCost":"","_EventCostDescription":"","_EventCurrencySymbol":"","_EventCurrencyCode":"","_EventCurrencyPosition":"","_EventDateTimeSeparator":"","_EventTimeRangeSeparator":"","_EventOrganizerID":[],"_EventVenueID":[],"_OrganizerEmail":"","_OrganizerPhone":"","_OrganizerWebsite":"","_VenueAddress":"","_VenueCity":"","_VenueCountry":"","_VenueProvince":"","_VenueState":"","_VenueZip":"","_VenuePhone":"","_VenueURL":"","_VenueStateProvince":"","_VenueLat":"","_VenueLng":"","_VenueShowMap":false,"_VenueShowMapLink":false,"ep_exclude_from_search":false,"footnotes":"","refreshMe":"refreshUI"},"content":"<!-- wp:buttons {\"metadata\":{\"name\":\"save-to-pdf\"},\"className\":\"ticss-3803a7bf\",\"hasCustomCSS\":true,\"customCSS\":\".ticss-3803a7bf {\\n position: absolute;\\n top: 2%;\\n right: 2%;\\n}\\n@media print {\\n .ticss-3803a7bf {\\n display: none !important;\\n }\\n}\"} -->\n<div class=\"wp-block-buttons ticss-3803a7bf\"><!-- wp:button {\"className\":\"generate-pdf ticss-37330599 is-style-outline\",\"style\":{\"spacing\":{\"padding\":{\"left\":\"0\",\"right\":\"0\",\"top\":\"0\",\"bottom\":\"0\"}}},\"hasCustomCSS\":true,\"customCSS\":\".ticss-37330599 {\\n /*\\n width: 64px;\\n height: 64px;\\n */\\n}\\n.ticss-37330599 img {\\n width: 24px;\\n height: 24px;\\n opacity: 0.8;\\n border: 0px;\\n}\\n\\n.ticss-37330599 img:hover {\\n width: 24px;\\n height: 24px;\\n opacity: 1.0;\\n}\"} -->\n<div class=\"wp-block-button generate-pdf ticss-37330599 is-style-outline\"><a class=\"wp-block-button__link wp-element-button\" style=\"padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\"><img class=\"wp-image-7741796\" src=\"/www/eedbac7d-pdf_icon.svg\" alt=\"PDF_icon\"></a></div>\n<!-- /wp:button --></div>\n<!-- /wp:buttons -->"}
-
This reply was modified 9 months, 3 weeks ago by
donbowman.
-
This reply was modified 9 months, 3 weeks ago by
donbowman.