Make WordPress Core


Ignore:
Timestamp:
03/11/2021 09:36:55 PM (4 years ago)
Author:
ryelle
Message:

Help/About: Use absolute URLs for inline images on About pages.

This ensures the images are loaded correctly from both single site and network About pages.

Props TobiasBg, audrasjb.
Fixes #52743.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r50518 r50523  
    2424        <div class="about__header">
    2525            <div class="about__header-image">
    26                 <img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
     26                <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
    2727            </div>
    2828
     
    180180            <div class="column about__image">
    181181                <picture>
    182                     <source media="(max-width: 600px)" srcset="images/about-color-palette-vert.svg" />
    183                     <img alt="" src="images/about-color-palette.svg" />
     182                    <source media="(max-width: 600px)" srcset="<?php echo admin_url( 'images/about-color-palette-vert.svg' ); ?>" />
     183                    <img alt="" src="<?php echo admin_url( 'images/about-color-palette.svg' ); ?>" />
    184184                </picture>
    185185            </div>
Note: See TracChangeset for help on using the changeset viewer.