Make WordPress Core


Ignore:
Timestamp:
01/29/2024 09:04:18 PM (3 years ago)
Author:
youknowriad
Message:

Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.

This patch, somewhat small brings a lot to WordPress.
This includes features like:

  • DataViews.
  • Customization tools like box shadow, background size and repeat.
  • UI improvements in the site editor.
  • Preferences sharing between the post and site editors.
  • Unified panels and editors between post and site editors.
  • Improved template mode in the post editor.
  • Iterations to multiple interactive blocks.
  • Preparing the blocks and UI for pattern overrides.
  • and a lot more.

Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/post-navigation-link.php

    r56945 r57377  
    100100        }
    101101
    102         // The dynamic portion of the function name, `$navigation_type`,
    103         // refers to the type of adjacency, 'next' or 'previous'.
     102        $in_same_term = isset( $attributes['inSameTerm'] ) ? $attributes['inSameTerm'] : false;
     103        $taxonomy     = isset( $attributes['taxonomy'] ) && $in_same_term ? $attributes['taxonomy'] : '';
     104
     105        /**
     106         * The dynamic portion of the function name, `$navigation_type`,
     107         * Refers to the type of adjacency, 'next' or 'previous'.
     108         *
     109         * @See https://developer.wordpress.org/reference/functions/get_previous_post_link/
     110         * @See https://developer.wordpress.org/reference/functions/get_next_post_link/
     111         */
    104112        $get_link_function = "get_{$navigation_type}_post_link";
    105         $content           = $get_link_function( $format, $link );
     113
     114        if ( $in_same_term ) {
     115                $content = $get_link_function( $format, $link, $in_same_term, '', $taxonomy );
     116        } else {
     117                $content = $get_link_function( $format, $link );
     118        }
     119
    106120        return sprintf(
    107121                '<div %1$s>%2$s</div>',
Note: See TracChangeset for help on using the changeset viewer.