Make WordPress Core


Ignore:
Timestamp:
12/01/2020 07:07:43 PM (3 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Sync the latest changes for 5.6 RC2.

This will be the final sync from GitHub before placing that repository into read-only mode. All further changes should now flow entirely through Trac.

For a full list of changes since [49633], see https://github.com/WordPress/twentytwentyone/compare/1d5a895...53acd9b.

Props poena, luminuu, kjellr, ryelle, allancole, melchoyce, felipeelia, aljullu, kebbet, chaton666, Clorith, mkaz, ingereck, paaljoachim.
See #51526.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/functions.php

    r49578 r49726  
    273273                array(
    274274                    'name'     => esc_html__( 'Purple to yellow', 'twentytwentyone' ),
    275                     'gradient' => 'linear-gradient(160deg, ' . $purple . ', ' . $yellow . ')',
     275                    'gradient' => 'linear-gradient(160deg, ' . $purple . ' 0%, ' . $yellow . ' 100%)',
    276276                    'slug'     => 'purple-to-yellow',
    277277                ),
    278278                array(
    279279                    'name'     => esc_html__( 'Yellow to purple', 'twentytwentyone' ),
    280                     'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $purple . ')',
     280                    'gradient' => 'linear-gradient(160deg, ' . $yellow . ' 0%, ' . $purple . ' 100%)',
    281281                    'slug'     => 'yellow-to-purple',
    282282                ),
    283283                array(
    284284                    'name'     => esc_html__( 'Green to yellow', 'twentytwentyone' ),
    285                     'gradient' => 'linear-gradient(160deg, ' . $green . ', ' . $yellow . ')',
     285                    'gradient' => 'linear-gradient(160deg, ' . $green . ' 0%, ' . $yellow . ' 100%)',
    286286                    'slug'     => 'green-to-yellow',
    287287                ),
    288288                array(
    289289                    'name'     => esc_html__( 'Yellow to green', 'twentytwentyone' ),
    290                     'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $green . ')',
     290                    'gradient' => 'linear-gradient(160deg, ' . $yellow . ' 0%, ' . $green . ' 100%)',
    291291                    'slug'     => 'yellow-to-green',
    292292                ),
    293293                array(
    294294                    'name'     => esc_html__( 'Red to yellow', 'twentytwentyone' ),
    295                     'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $yellow . ')',
     295                    'gradient' => 'linear-gradient(160deg, ' . $red . ' 0%, ' . $yellow . ' 100%)',
    296296                    'slug'     => 'red-to-yellow',
    297297                ),
    298298                array(
    299299                    'name'     => esc_html__( 'Yellow to red', 'twentytwentyone' ),
    300                     'gradient' => 'linear-gradient(160deg, ' . $yellow . ', ' . $red . ')',
     300                    'gradient' => 'linear-gradient(160deg, ' . $yellow . ' 0%, ' . $red . ' 100%)',
    301301                    'slug'     => 'yellow-to-red',
    302302                ),
    303303                array(
    304304                    'name'     => esc_html__( 'Purple to red', 'twentytwentyone' ),
    305                     'gradient' => 'linear-gradient(160deg, ' . $purple . ', ' . $red . ')',
     305                    'gradient' => 'linear-gradient(160deg, ' . $purple . ' 0%, ' . $red . ' 100%)',
    306306                    'slug'     => 'purple-to-red',
    307307                ),
    308308                array(
    309309                    'name'     => esc_html__( 'Red to purple', 'twentytwentyone' ),
    310                     'gradient' => 'linear-gradient(160deg, ' . $red . ', ' . $purple . ')',
     310                    'gradient' => 'linear-gradient(160deg, ' . $red . ' 0%, ' . $purple . ' 100%)',
    311311                    'slug'     => 'red-to-purple',
    312312                ),
     
    334334
    335335        // Add support for experimental cover block spacing.
    336         add_theme_support( 'experimental-custom-spacing' );
     336        add_theme_support( 'custom-spacing' );
    337337
    338338        // Add support for custom units.
Note: See TracChangeset for help on using the changeset viewer.