Automattic / Automattic/jetpack

do_shortcode: switch to using apply_shortcodes instead

Open
#14,674 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Extra Sidebar Widgets [Feature] Forms [Feature] Shortcodes / Embeds [Pri] Low [Status] Blocked / Hold [Type] Good First Bug [Type] Janitorial Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

**This is something we'll need to implement whenever WordPress 5.4 is the minimum supported version in Jetpack.**

> Themes/Plugins authors and WordPress developers are invited to start using `apply_shortcodes()` instead of `do_shortcode()`.
-- https://make.wordpress.org/core/2020/02/13/wordpress-5-4-introduces-apply-shortcodes-as-an-alias-for-do-shortcode/

Contributor guide

Open the contributing guide

Research direction

Start by checking Jetpack's minimum supported WordPress version and searching the repository for PHP uses of do_shortcode. Confirm which uses are in scope for the WordPress 5.4 requirement, then verify that applicable calls use apply_shortcodes and that the relevant test suite passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.