Make WordPress Core

Changeset 50524 for branches/5.7


Ignore:
Timestamp:
03/11/2021 09:48:43 PM (3 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.
Merges [50523] to the 5.7 branch.
Fixes #52743.

Location:
branches/5.7
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/5.7

  • branches/5.7/src/wp-admin/about.php

    r50519 r50524  
    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>
  • branches/5.7/src/wp-admin/credits.php

    r50418 r50524  
    2323    <div class="about__header">
    2424        <div class="about__header-image">
    25             <img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
     25            <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
    2626        </div>
    2727
  • branches/5.7/src/wp-admin/freedoms.php

    r50418 r50524  
    2626    <div class="about__header">
    2727        <div class="about__header-image">
    28             <img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
     28            <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
    2929        </div>
    3030
  • branches/5.7/src/wp-admin/privacy.php

    r50418 r50524  
    2020    <div class="about__header">
    2121        <div class="about__header-image">
    22             <img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
     22            <img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
    2323        </div>
    2424
Note: See TracChangeset for help on using the changeset viewer.