jonathanlb/signed-s3-links

Update shortcodes to render with Divi Builder

開放

#9 建立於 2023年3月9日

 (1 則留言) (0 個反應) (0 位負責人)PHP (0 個分叉)auto 404
bugenhancementhelp wanted

倉庫指標

星標
 (0 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

When a WordPress post contains more than 12-18 ss3 shortcodes, Divi Builder will not display previews for many ss3 shortcode invocations, instead showing a spinner and logging a 504. Editing the DIVI module content seems to trigger rendering and removes the spinner, suggesting to me that Divi Builder running at my host is overwhelmed with requests.

The post renders cleanly to the client, however.

I ran across the 504s performing mass replacement (site names redacted):

time wp search-replace '\[et_pb_audio audio="https://XXX/wp-content/uploads/([a-zA-Z0-9_\-]*.mp3)" title="([^"]*)" artist_name="([^"]*)".*?(?=\[/et_pb_audio\])\[/et_pb_audio\]' \
'[et_pb_code][ss3_audio XXX/\1 style="width: 100%;" region=us-east-2 class="wp-audio-shortcode" title="\2 by \3"][/et_pb_code]' \
wp_XXX_posts --include-columns=post_content --regex 

Is there some way to update the shortcodes to be more friendly with Divi Builder preview?

貢獻者指南