Make WordPress Core

Changeset 55955

Timestamp:
06/21/2023 04:21:04 AM (14 months ago)
Author:
isabel_brison
Message:

Editor: add Post Content attributes to block editor settings.

Adds a new block editor setting containing the Post Content block attributes, if they exist.

Props audrasjb, spacedmonkey, jeremyfelt, mukesh27, flixos90, andrewserong.
Fixes #58534.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-editor.php

    r55438 r55955  
    360360        'scripts' => $scripts,
    361361    );
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
     373
     374
     375
     376
     377
     378
     379
     380
     381
     382
     383
     384
     385
     386
     387
     388
     389
     390
     391
     392
     393
     394
     395
     396
     397
     398
     399
     400
     401
     402
     403
     404
     405
     406
     407
     408
     409
     410
     411
     412
     413
     414
     415
     416
     417
     418
     419
     420
     421
     422
     423
     424
     425
     426
     427
     428
     429
     430
     431
     432
     433
     434
     435
     436
     437
     438
     439
     440
     441
     442
     443
     444
     445
     446
     447
    362448}
    363449
     
    529615        ),
    530616    );
     617
     618
     619
     620
     621
     622
    531623
    532624    /**
  • trunk/tests/phpunit/tests/blocks/editor.php

    r55822 r55955  
    2828        $wp_rest_server = new Spy_REST_Server();
    2929        do_action( 'rest_api_init', $wp_rest_server );
     30
     31
     32
    3033    }
    3134
     
    3437        global $wp_rest_server;
    3538        $wp_rest_server = null;
     39
     40
    3641        parent::tear_down();
    3742    }
     
    398403
    399404    /**
     405
     406
     407
     408
     409
     410
     411
     412
     413
     414
     415
     416
     417
     418
     419
     420
     421
     422
     423
     424
     425
     426
     427
     428
     429
     430
     431
     432
     433
     434
     435
     436
     437
     438
     439
     440
     441
     442
     443
     444
     445
     446
     447
     448
     449
     450
     451
     452
     453
     454
     455
     456
     457
    400458     * @ticket 53458
    401459     */
     
    457515        // settings.spacing.customPadding
    458516        $this->assertTrue( $settings['enableCustomSpacing'] );
     517
     518
     519
     520
     521
     522
     523
     524
     525
    459526
    460527        switch_theme( WP_DEFAULT_THEME );
Note: See TracChangeset for help on using the changeset viewer.