Make WordPress Core

Ticket #43346: 43346.2.patch

File 43346.2.patch, 710 bytes (added by joelcj91, 7 years ago)

Fix code indent (correction)

  • src/wp-includes/shortcodes.php

     
    458458 * @return string Content with placeholders removed.
    459459 */
    460460function unescape_invalid_shortcodes( $content ) {
    461                 // Clean up entire string, avoids re-parsing HTML.
    462                 $trans   = array(
    463                         '[' => '[',
    464                         ']' => ']',
    465                 );
    466                 $content = strtr( $content, $trans );
     461        // Clean up entire string, avoids re-parsing HTML.
     462        $trans = array(
     463                '[' => '[',
     464                ']' => ']',
     465        );
    467466
    468                 return $content;
     467        $content = strtr( $content, $trans );
     468
     469        return $content;
    469470}
    470471
    471472/**