Make WordPress Core


Ignore:
Timestamp:
09/26/2022 10:41:11 PM (21 months ago)
Author:
davidbaumwald
Message:

Shortcodes: Revert recent apply_shortcodes and do_shortcode changes.

[54248] reversed the wrapping of do_shortcode and apply_shortcodes and updated all direct internal calls of do_shortcode to apply_shortcodes after [47004]. After further consideration, the long history of do_shortcodes should be favored over any subjective semantic improvements. This change reverts the remaining changes from #55883 not already reverted in [54278].

Follow-up to [47004], [54248], and [54278].

Props azaozz, jorbin.
See #55883.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r54248 r54319  
    37893789        }
    37903790
    3791         $html = apply_shortcodes( $parsed );
     3791        $html = do_shortcode( $parsed );
    37923792
    37933793        global $wp_scripts;
     
    38623862    }
    38633863
    3864     $parsed = apply_shortcodes( $shortcode );
     3864    $parsed = do_shortcode( $shortcode );
    38653865
    38663866    if ( empty( $parsed ) ) {
Note: See TracChangeset for help on using the changeset viewer.