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.


Built from https://develop.svn.wordpress.org/branches/5.7@50524


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryelle 2021-03-11 21:50:08 +00:00
parent f3a89c4ee8
commit e78b4f2b69
5 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-title">
@ -179,8 +179,8 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__section has-subtle-background-color">
<div class="column about__image">
<picture>
<source media="(max-width: 600px)" srcset="images/about-color-palette-vert.svg" />
<img alt="" src="images/about-color-palette.svg" />
<source media="(max-width: 600px)" srcset="<?php echo admin_url( 'images/about-color-palette-vert.svg' ); ?>" />
<img alt="" src="<?php echo admin_url( 'images/about-color-palette.svg' ); ?>" />
</picture>
</div>
</div>

View File

@ -22,7 +22,7 @@ $credits = wp_credits();
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-container">

View File

@ -25,7 +25,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-container">

View File

@ -19,7 +19,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<div class="about__header">
<div class="about__header-image">
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
<img alt="<?php _e( 'Code is Poetry' ); ?>" src="<?php echo admin_url( 'images/about-badge.svg' ); ?>" />
</div>
<div class="about__header-container">

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7.1-alpha-50519';
$wp_version = '5.7.1-alpha-50524';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.