Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions src/wp-admin/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$title = _x( 'About', 'page title' );

list( $display_version ) = explode( '-', wp_get_wp_version() );
$display_major_version = '7.1';
$display_major_version = '7.2';

$release_notes_url = sprintf(
/* translators: %s: WordPress version number. */
Expand Down Expand Up @@ -69,66 +69,66 @@
);
?>
</h2>
<p class="is-subheading"><?php _e( 'WordPress 7.1 makes styling and collaborating easier. Style how all blocks look across screen sizes and how the Button block responds to hover, focus, and active states, all without writing custom CSS. A streamlined media editor brings cropping, rotation, and metadata editing together in one workflow. Notes now support rich text and @mentions, and the admin bar travels with you into every editor, so the tools you rely on stay with you wherever you&#8217;re working.' ); ?></p>
<p class="is-subheading"><?php _e( 'WordPress 7.2 gives your words a fresh place to start. Ipsum, the new default theme, is a minimal blank canvas for blogging that&#8217;s ready to make your own. Text shadows and form styling in Global Styles add new ways to shape how your site looks, all without writing custom CSS. A new /random/ address invites readers to rediscover your archive, Notes now support emoji reactions, and refreshed icons in the admin bring more visual consistency across WordPress.' ); ?></p>
</div>
</div>

<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center is-left-padding-zero">
<h3><?php _e( 'Apply responsive styles' ); ?></h3>
<h3><?php _e( 'Introducing Ipsum, the next default theme' ); ?></h3>
<p>
<strong><?php _e( 'Style content your way, on every screen.' ); ?></strong><br />
<?php _e( 'WordPress 7.1 takes a major step toward built-in responsive design. Set how a block looks at different screen sizes directly in the editor, for both Global Styles and individual blocks, all without writing custom CSS.' ); ?>
<strong><?php _e( 'A blank canvas, until real words arrive.' ); ?></strong><br />
<?php _e( 'WordPress 7.2 introduces Ipsum, a minimal default theme built around blogging so your writing is the main focus. It starts simple on purpose, with various patterns to match how you want your content to shine and style variations that change the whole look in a click.' ); ?>
</p>
</div>
<div class="column is-vertically-aligned-center is-right-padding-zero">
<div class="about__image">
<img src="https://s.w.org/images/core/7.1/about-feature-01.webp?ver=20260814" alt="" height="900" width="900" />
<img src="https://s.w.org/images/core/7.2/about-feature-01.webp?ver=20261123" alt="" height="900" width="900" />
</div>
</div>
</div>

<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center is-left-padding-zero">
<div class="about__image">
<img loading="lazy" src="https://s.w.org/images/core/7.1/about-feature-02.webp?ver=20260814" alt="" height="900" width="900" />
<img loading="lazy" src="https://s.w.org/images/core/7.2/about-feature-02.webp?ver=20261123" alt="" height="900" width="900" />
</div>
</div>
<div class="column is-vertically-aligned-center is-right-padding-zero">
<h3><?php _e( 'Admin bar, now in every editor' ); ?></h3>
<h3><?php _e( 'Discover posts differently' ); ?></h3>
<p>
<strong><?php _e( 'Consistent navigation, from dashboard to editor.' ); ?></strong><br />
<?php _e( 'The admin bar now stays with you across all editors, so you always know where you are. The admin bar also gets a small visual refresh.' ); ?>
<strong><?php _e( 'One link, a different post every time.' ); ?></strong><br />
<?php _e( 'WordPress 7.2 adds a /random/ address to every site. Visit it and you land on a randomly chosen post, giving readers a playful way to explore your archive and rediscover writing that deserves a second look.' ); ?>
</p>
</div>
</div>

<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center is-left-padding-zero">
<h3><?php _e( 'A new way to crop' ); ?></h3>
<h3><?php _e( 'React on notes' ); ?></h3>
<p>
<strong><?php _e( 'One dedicated workflow for editing your images.' ); ?></strong><br />
<?php _e( 'A new media editor modal replaces the old inline cropping tool, bringing freeform and aspect-ratio cropping, flip, precise rotation, and metadata editing together in a single streamlined workflow. The familiar Crop button still gets you there, now opening a dedicated space to crop, rotate, and adjust images before publishing.' ); ?>
<strong><?php _e( 'Say it with an emoji.' ); ?></strong><br />
<?php _e( 'Emoji reactions are now available in Notes. Acknowledge feedback, agree with a note, or celebrate a finished draft without writing a reply. Hover a reaction to see who left it, or click it to add your own.' ); ?>
</p>
</div>
<div class="column is-vertically-aligned-center is-right-padding-zero">
<div class="about__image">
<img loading="lazy" src="https://s.w.org/images/core/7.1/about-feature-03.webp?ver=20260814" alt="" height="900" width="900" />
<img loading="lazy" src="https://s.w.org/images/core/7.2/about-feature-03.webp?ver=20261123" alt="" height="900" width="900" />
</div>
</div>
</div>

<div class="about__section has-2-columns">
<div class="column is-vertically-aligned-center is-left-padding-zero">
<div class="about__image">
<img loading="lazy" src="https://s.w.org/images/core/7.1/about-feature-04.webp?ver=20260814" alt="" height="900" width="900" />
<img loading="lazy" src="https://s.w.org/images/core/7.2/about-feature-04.webp?ver=20261123" alt="" height="900" width="900" />
</div>
</div>
<div class="column is-vertically-aligned-center is-right-padding-zero">
<h3><?php _e( 'Inline notes with mentions and rich text' ); ?></h3>
<h3><?php _e( 'Modern icons in admin' ); ?></h3>
<p>
<strong><?php _e( 'More ways to leave feedback.' ); ?></strong><br />
<?php _e( 'Notes now support rich text and @mentions. Add bold, italic, code, and links so feedback reads clearly. Type &#8220;@&#8221; to pull up a list of collaborators to tag the right person directly, with built-in email notifications. Leave a note on a specific text selection instead of an entire block. Start more than one conversation on the same block. Collapse long notes to keep the margin tidy.' ); ?>
<strong><?php _e( 'One icon set, everywhere.' ); ?></strong><br />
<?php _e( 'WordPress 7.2 replaces the legacy Dashicons in the admin bar and sidebar with updated icons from the WordPress icon library. The dashboard now matches the icons you see in the editor, offering a more consistent, performant, and accessible experience.' ); ?>
</p>
</div>
</div>
Expand All @@ -143,8 +143,8 @@
<path fill="#1e1e1e" fill-rule="evenodd" d="M4.91 27.75C4.91 17.395 13.455 9 24 9s19.091 8.395 19.091 18.75c0 3.909-1.22 7.542-3.305 10.548l-.488.702H8.702l-.488-.702A18.438 18.438 0 0 1 4.91 27.75ZM24 12.214c-8.736 0-15.818 6.956-15.818 15.536 0 2.943.832 5.692 2.277 8.036h27.082a15.25 15.25 0 0 0 2.277-8.036c0-8.58-7.082-15.536-15.818-15.536Z" clip-rule="evenodd"/>
</svg>
</div>
<h3><?php _e( 'Improved media handling' ); ?></h3>
<p><?php _e( 'Image compression, resizing, and thumbnail generation now happen in the browser, via a WebAssembly build of libvips, so large uploads won&#8217;t hit PHP memory limits or time out on shared hosts. This also frees up server CPU and memory, while producing smaller files for visitors. Media handling includes built-in support for AVIF, HEIC and HDR gain maps.' ); ?></p>
<h3><?php _e( 'Performance' ); ?></h3>
<p><?php _e( 'The admin feels faster in WordPress 7.2. Scripts and stylesheets now load individually instead of in large combined files, so browsers cache them better, and WordPress prefetches the screen you&#8217;re likely to open next. Image resizing, compression, and conversion in the browser now extend to the Media Library, easing the load on your server during uploads.' ); ?></p>
</div>
<div class="column is-right-padding-zero">
<div class="about__image">
Expand All @@ -153,7 +153,7 @@
</svg>
</div>
<h3><?php _e( 'Accessibility' ); ?></h3>
<p><?php _e( 'WordPress 7.1 continues to polish accessibility across WordPress Core and Gutenberg, advancing the goals to meet accessibility standards. In this release, high impact changes include the new accessible tooltips API, improved predictability for screen readers, and improved labeling in many places in the admin. The editor adds extensive improvements to navigation and interaction.' ); ?></p>
<p><?php _e( 'In this release, high impact changes include clearer keyboard focus in Windows High Contrast mode, improved keyboard navigation in the admin toolbar, and an option to turn off metabox rearranging to prevent accidental changes on touch devices. Ipsum ships with clear focus indicators, descriptive screen reader links, and transitions that respect reduced-motion preferences.' ); ?></p>
</div>
</div>

Expand Down Expand Up @@ -183,7 +183,7 @@

<div class="about__section has-3-columns">
<div class="column about__image is-vertically-aligned-top is-left-padding-zero">
<img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=7.1' ) ); ?>" alt="<?php echo esc_attr( $version_text ); ?>" height="280" width="280" />
<img src="<?php echo esc_url( admin_url( 'images/about-release-badge.svg?ver=7.2' ) ); ?>" alt="<?php echo esc_attr( $version_text ); ?>" height="280" width="280" />
</div>
<div class="column is-vertically-aligned-center is-right-padding-zero" style="grid-column-end:span 2">
<h3>
Expand Down
40 changes: 27 additions & 13 deletions src/wp-admin/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@
*/

.about__container {
/* Section backgrounds */
--background: #3858e9;
--subtle-background: #f4f4f4;
/*
* Section backgrounds
*
* Section header backgrounds are set to the dominant color of the
* image to avoid display issues if the image fails to load.
*/
--background: #eeece5;
--subtle-background: #f3f2ee;

/* Main text color */
--text: #1e1e1e;
Expand Down Expand Up @@ -617,7 +622,7 @@
padding-right: 26rem; /* Space for the background image. */
min-height: clamp(10rem, 25vw, 18.75rem);
border-radius: var(--border-radius);
background-image: url(../images/about-header-default.svg?ver=7.1);
background-image: url(../images/about-header-default.svg?ver=7.2);
background-repeat: no-repeat;
background-position: right center;
background-size: cover;
Expand All @@ -627,39 +632,42 @@
}

.credits-php .about__header {
background-image: url(../images/about-header-credits.svg?ver=7.1);
background-image: url(../images/about-header-credits.svg?ver=7.2);
--background: #3858e9;
}

.freedoms-php .about__header {
background-image: url(../images/about-header-freedoms.svg?ver=7.1);
background-image: url(../images/about-header-freedoms.svg?ver=7.2);
--background: #757575;
}

.privacy-php .about__header {
background-image: url(../images/about-header-privacy.svg?ver=7.1);
background-image: url(../images/about-header-privacy.svg?ver=7.2);
--background: #323232;
}

.contribute-php .about__header {
background-image: url(../images/about-header-get-involved.svg?ver=7.1);
background-image: url(../images/about-header-get-involved.svg?ver=7.2);
}

[dir="rtl"] .about__header {
background-image: url(../images/about-header-default-rtl.svg?ver=7.1);
background-image: url(../images/about-header-default-rtl.svg?ver=7.2);
}

[dir="rtl"] .credits-php .about__header {
background-image: url(../images/about-header-credits-rtl.svg?ver=7.1);
background-image: url(../images/about-header-credits-rtl.svg?ver=7.2);
}

[dir="rtl"] .freedoms-php .about__header {
background-image: url(../images/about-header-freedoms-rtl.svg?ver=7.1);
background-image: url(../images/about-header-freedoms-rtl.svg?ver=7.2);
}

[dir="rtl"] .privacy-php .about__header {
background-image: url(../images/about-header-privacy-rtl.svg?ver=7.1);
background-image: url(../images/about-header-privacy-rtl.svg?ver=7.2);
}

[dir="rtl"] .contribute-php .about__header {
background-image: url(../images/about-header-get-involved-rtl.svg?ver=7.1);
background-image: url(../images/about-header-get-involved-rtl.svg?ver=7.2);
}

.about__header-image {
Expand Down Expand Up @@ -691,6 +699,12 @@
font-size: clamp(2rem, 20vw - 9rem, 4rem);
}

.about-php .about__header-title h1,
.contribute-php .about__header-title h1,
.contribute-php .about__header-text {
color: var(--text);
}

.about__header-text {
box-sizing: border-box;
max-width: 26em;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-credits-rtl.svg

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header SVGs in this PR are much larger than in the past releases. Each one contains roughly 1,700 to 5,300 <use> elements, mostly glyphs that make up the background pattern, so they stay large even after optimization.

Release Format Per file Total
6.3 5 SVG files 1.7–3.2 KB ~12.7 KB
6.4 6 SVG files 0.7–1.3 KB ~6.9 KB
6.5–6.8 No header SVGs - -
6.9 Inlined in CSS as data URIs - about.css grew by ~14 KB
7.0 10 WebP files 11–44 KB ~263 KB
7.1 10 SVG files 0.9–3.1 KB ~15.7 KB
7.2 (this PR) 10 SVG files 77–212 KB ~1.17 MB

Should we convert these SVGs to WebP images, as we did for 7.0?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t-hamano I've create a code bin to test the effects of converting to webp.

While it would reduce the raw size of the images, I think it would increase the amount of data transferred as webp images don't react to gzip very well.

Image 7.1 SVG size (raw) 7.1 SVG size (gzipped) 7.2 SVG size (raw) 7.2 SVG size (gzipped) 7.2 WebP size
about-header-default 2,993 B 991 B 91,028 B 10,801 B 48,232 B
about-header-default-rtl 3,100 B 1,018 B 91,028 B 10,801 B 48,232 B
about-header-credits 1,650 B 631 B 116,365 B 15,399 B 37,190 B
about-header-credits-rtl 1,637 B 611 B 116,352 B 15,402 B 37,504 B
about-header-freedoms 1,236 B 520 B 212,055 B 33,975 B 82,166 B
about-header-freedoms-rtl 1,197 B 530 B 212,055 B 33,975 B 82,166 B
about-header-get-involved 1,018 B 427 B 91,842 B 13,967 B 30,608 B
about-header-get-involved-rtl 1,021 B 433 B 77,028 B 14,940 B 28,252 B
about-header-privacy 899 B 401 B 87,156 B 15,483 B 34,302 B
about-header-privacy-rtl 914 B 395 B 86,825 B 15,465 B 34,318 B
Total 15,665 B 5,957 B 1,181,734 B 180,208 B 462,970 B

@marko-srb Are you able to look in to alternatives for reducing the size of the SVGss? Maybe reducing the number of unique glyphs so they can be re used?

I don't think that's a blocker for the initial commit though. It's more important to get the strings in for the translation teams.

I'm relocating now and will update the feature images once I've done so.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am on this. Will have it solved shortly.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be svg. Here are 378kb total (all 10) images. These need to be SVG, as webp cannot contain glyph quality and reduce size. I needed to adjust few designs so I could reduce size.

Is this now acceptable?

CC: @peterwilsoncc , @t-hamano .

In case this doesn't pass the desired size, please remove the artwork and callout just plain background colors that are dedicated to each cover/tab. While keeping the DEFAULT as is - svg designed.

About page 7.2 - optimized - Nov 23.zip

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-credits.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-default-rtl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-freedoms-rtl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-freedoms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-get-involved-rtl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-get-involved.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-privacy-rtl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/wp-admin/images/about-header-privacy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/wp-admin/images/about-release-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading