Make WordPress Core

Ticket #58144: aboutescapingmissing.patch

File aboutescapingmissing.patch, 5.8 KB (added by utsav72640, 3 years ago)

Escaping function missing in wp-admin/about.php file.

  • src/wp-admin/about.php

    diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php
    index f43583cd60..7866adfe79 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    6969                <div class="about__section has-2-columns">
    7070                        <div class="column">
    7171                                <div class="about__image">
    72                                         <img src="https://s.w.org/images/core/6.2/about-site-editor.png" alt="" />
     72                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-site-editor.png' ); ?>" alt="" />
    7373                                </div>
    7474                        </div>
    7575                        <div class="column is-vertically-aligned-center">
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    8585                        </div>
    8686                        <div class="column">
    8787                                <div class="about__image">
    88                                         <img src="https://s.w.org/images/core/6.2/about-navigation.png" alt="" />
     88                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-navigation.png' ); ?>" alt="" />
    8989                                </div>
    9090                        </div>
    9191                </div>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    9393                <div class="about__section has-2-columns">
    9494                        <div class="column">
    9595                                <div class="about__image">
    96                                         <img src="https://s.w.org/images/core/6.2/about-block-inserter.png" alt="" />
     96                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-block-inserter.png' ); ?>" alt="" />
    9797                                </div>
    9898                        </div>
    9999                        <div class="column is-vertically-aligned-center">
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    109109                        </div>
    110110                        <div class="column">
    111111                                <div class="about__image">
    112                                         <img src="https://s.w.org/images/core/6.2/about-split-controls-fixed.png" alt="" />
     112                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-split-controls-fixed.png' ); ?>" alt="" />
    113113                                </div>
    114114                        </div>
    115115                </div>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    117117                <div class="about__section has-2-columns">
    118118                        <div class="column">
    119119                                <div class="about__image">
    120                                         <img src="https://s.w.org/images/core/6.2/about-headers.png" alt="" />
     120                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-headers.png' ); ?>" alt="" />
    121121                                </div>
    122122                                <h3><?php _e( 'Build faster with headers and footers for block themes' ); ?></h3>
    123123                                <p><?php _e( 'Discover a new collection of header and footer patterns to choose from. Use them with any block theme as a quick, high-quality starting point for your site&#8217;s templates.' ); ?></p>
    124124                        </div>
    125125                        <div class="column">
    126126                                <div class="about__image">
    127                                         <img src="https://s.w.org/images/core/6.2/about-openverse.png" alt="" />
     127                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-openverse.png' ); ?>" alt="" />
    128128                                </div>
    129129                                <h3><?php _e( 'Explore Openverse media right from the Editor' ); ?></h3>
    130130                                <p><?php _e( 'Openverse&#8217;s library catalogs over 600 million free, openly licensed stock images and audio—and now it&#8217;s directly integrated into the Editor.' ); ?></p>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    134134                <div class="about__section has-2-columns">
    135135                        <div class="column">
    136136                                <div class="about__image">
    137                                         <img src="https://s.w.org/images/core/6.2/about-distraction-free.png" alt="" />
     137                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-distraction-free.png' ); ?>" alt="" />
    138138                                </div>
    139139                                <h3><?php _e( 'Focus on writing with Distraction Free mode' ); ?></h3>
    140140                                <p><?php _e( 'For those times you want to be alone with your ideas. You can now hide all your panels and controls, leaving you free to bring your content to life.' ); ?></p>
    141141                        </div>
    142142                        <div class="column">
    143143                                <div class="about__image">
    144                                         <img src="https://s.w.org/images/core/6.2/about-out-of-beta.png" alt="" />
     144                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-out-of-beta.png' ); ?>" alt="" />
    145145                                </div>
    146146                                <h3><?php _e( 'Experience the Site Editor, now out of beta' ); ?></h3>
    147147                                <p><?php _e( 'Stable and ready for you to dive in and explore: 6.2 is your personal invitation to discover what the next generation of WordPress—and Block themes—can do.' ); ?></p>
    require_once ABSPATH . 'wp-admin/admin-header.php'; 
    151151                <div class="about__section has-3-columns">
    152152                        <div class="column">
    153153                                <div class="about__image">
    154                                         <img src="https://s.w.org/images/core/6.2/about-style-book.png" alt="" />
     154                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-style-book.png' ); ?>" alt="" />
    155155                                </div>
    156156                                <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Style Book' ); ?></h3>
    157157                                <p><?php _e( 'Use the new Style Book to get a complete overview of how every block in your site&#8217;s library looks. All in one place, all at a glance.' ); ?></p>
    158158                        </div>
    159159                        <div class="column">
    160160                                <div class="about__image">
    161                                         <img src="https://s.w.org/images/core/6.2/about-copy-paste.png" alt="" />
     161                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-copy-paste.png' ); ?>" alt="" />
    162162                                </div>
    163163                                <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Copy and paste styles' ); ?></h3>
    164164                                <p><?php _e( 'Perfect the design on one type of block, then copy and paste those styles to other blocks to get just the look you want.' ); ?></p>
    165165                        </div>
    166166                        <div class="column">
    167167                                <div class="about__image">
    168                                         <img src="https://s.w.org/images/core/6.2/about-custom-css.png" alt="" />
     168                                        <img src="<?php echo esc_url( 'https://s.w.org/images/core/6.2/about-custom-css.png' ); ?>" alt="" />
    169169                                </div>
    170170                                <h3 class="is-smaller-heading" style="margin-bottom:calc(var(--gap) / 4);"><?php _e( 'Custom CSS' ); ?></h3>
    171171                                <p><?php _e( 'Power up your site any way you wish. Add CSS to your site, or your blocks, for another level of control over your site&#8217;s look and feel.' ); ?></p>