Make WordPress Core


Ignore:
Timestamp:
02/09/2026 07:47:58 PM (6 months ago)
Author:
ellatrix
Message:

Gutenberg ref update.

Updates unit tests to account for:

Updates the REST API posts controller's excerpt filter to account for "Post Excerpt Block: Fix length limits for both Editor and Front and fix ellipsis consistency" (https://github.com/WordPress/gutenberg/pull/74140/changes#r2783014013).

Developed in https://github.com/WordPress/wordpress-develop/pull/10865.

Props ellatrix, scruffian, desrosj.

See #64595.

---

I've included a log of the Gutenberg changes with the following command:

git log --reverse --format="- %s" 7bf80ea84eb8b62eceb1bb3fe82e42163673ca79..59a08c5496008ca88f4b6b86f38838c3612d88c8 | sed 's|#\([0-9][0-9]*\)|https://github.com/WordPress/gutenberg/pull/\1|g; /github\.com\/WordPress\/gutenberg\/pull/!d' | pbcopy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-bindings/render.php

    r60798 r61605  
    9191HTML
    9292                                ,
    93                                 '<p>test source value</p>',
     93                                '<p class="wp-block-paragraph">test source value</p>',
    9494                        ),
    9595                        'button block'    => array(
     
    180180                                        return "The attribute name is '$attribute_name' and its binding has argument 'key' with value '$value'.";
    181181                                },
    182                                 "<p>The attribute name is 'content' and its binding has argument 'key' with value 'test'.</p>",
     182                                "<p class=\"wp-block-paragraph\">The attribute name is 'content' and its binding has argument 'key' with value 'test'.</p>",
    183183                        ),
    184184                        'unsafe HTML should be sanitized' => array(
     
    186186                                        return '<script>alert("Unsafe HTML")</script>';
    187187                                },
    188                                 '<p>alert("Unsafe HTML")</p>',
     188                                '<p class="wp-block-paragraph">alert("Unsafe HTML")</p>',
    189189                        ),
    190190                        'symbols and numbers should be rendered correctly' => array(
     
    192192                                        return '$12.50';
    193193                                },
    194                                 '<p>$12.50</p>',
     194                                '<p class="wp-block-paragraph">$12.50</p>',
    195195                        ),
    196196                );
     
    419419
    420420                $this->assertSame(
    421                         '<p>Filtered value: test_arg. Block instance: core/paragraph. Attribute name: content.</p>',
     421                        '<p class="wp-block-paragraph">Filtered value: test_arg. Block instance: core/paragraph. Attribute name: content.</p>',
    422422                        trim( $result ),
    423423                        'The block content should show the filtered value.'
Note: See TracChangeset for help on using the changeset viewer.