Make WordPress Core


Ignore:
Timestamp:
05/11/2021 04:26:28 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Editor: Some documentation and test improvements for loading separate assets for core blocks:

  • Move should_load_separate_core_block_assets() to a more appropriate place.
  • Update DocBlocks and inline comments per the documentation standards.
  • Document the $wp_styles global in wp_maybe_inline_styles().
  • List the expected result first in unit test assertions.
  • Remove a duplicate unit test.
  • Add missing @covers tags.

Follow-up to [50836], [50837].

See #50328, #52620, #53180.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/register.php

    r50836 r50838  
    260260    /**
    261261     * @ticket 50263
     262     * @ticket 50328
    262263     */
    263264    function test_success_register_block_style_handle() {
     
    308309     *
    309310     * @ticket 50263
     311     * @ticket 50328
    310312     */
    311313    function test_block_registers_with_metadata_fixture() {
Note: See TracChangeset for help on using the changeset viewer.