Make WordPress Core

Ticket #60603: 60603.patch

File 60603.patch, 1.0 KB (added by shailu25, 15 months ago)

Patch Added

  • src/wp-includes/shortcodes.php

    diff --git a/src/wp-includes/shortcodes.php b/src/wp-includes/shortcodes.php
    index bc7ade1a2f..75e489f0c8 100644
    a b function get_shortcode_regex( $tagnames = null ) { 
    362362                .         '\\[\\/\\2\\]'             // Closing shortcode tag.
    363363                .     ')?'
    364364                . ')'
    365                 . '(\\]?)';                          // 6: Optional second closing brocket for escaping shortcodes: [[tag]].
     365                . '(\\]?)';                          // 6: Optional second closing bracket for escaping shortcodes: [[tag]].
    366366        // phpcs:enable
    367367}
    368368
    function get_shortcode_regex( $tagnames = null ) { 
    385385 *     @type string $3 Shortcode arguments list.
    386386 *     @type string $4 Optional self closing slash.
    387387 *     @type string $5 Content of a shortcode when it wraps some content.
    388  *     @type string $6 Optional second closing brocket for escaping shortcodes.
     388 *     @type string $6 Optional second closing bracket for escaping shortcodes.
    389389 * }
    390390 * @return string Shortcode output.
    391391 */