خطأ في "تحديث موضوع Discourse" لـ WP Discourse

Yes, I suspect that is what’s happening. Up until a WP Discourse version 1.7.9, none of the shortcodes in your posts would have been displayed when the full post content was published from WordPress to Discourse. The change that allowed shortcodes to be parsed before a post is published was made to deal with the new markup that is added to the raw WordPress post by the Block Editor. I may need to look at changing that.

I think that for your case it would be best to publish excerpts of your posts and use the Discourse ‘Show Full Post’ button to display the full post. It is possible to get most content from WordPress to display in expanded posts by adding selectors to the embed_whitelist_selector Site Setting. Early next week I’ll publish a topic about how to set that up.

Is there any way to disable certain shortcodes from being parsed into the discourse topic?

Just a quick followup

I tried to update a post to display full post with removing any shortcodes based on the code snippet from here:

Even then I get the good old error:

A 422 response code was returned from Discourse.
Unprocessable Entity

@سيمون

هل لديك أي فكرة عن كيفية تصحيح هذا؟

من الصعب معرفة ما هي المشكلة دون القدرة على رؤية محتوى المنشور الفعلي الذي يتم تمريره إلى Discourse. هل يمكنك نشر منشورات لا تحتوي على الاختصار القصير؟

مرحبًا

يمكنني تأكيد أن الأمر يعمل بدون اختصار الكود. عند استخدام اختصار الكود في المحتوى، أستطيع نشر منشور أولي على discourse، لكن لا يمكنني تحديثه.

لقد قمت بإعداد بيئة تجريبية وتمكنت من إعادة إنتاج المشكلة.

إذا كنت مهتمًا، يمكنني منحك الوصول عبر الرسائل الخاصة.