Make WordPress Core


Ignore:
Timestamp:
02/06/2023 07:38:08 PM (4 years ago)
Author:
flixos90
Message:

Editor: Support the block_types and viewport_width props for remote patterns fetched from Pattern Directory.

Props ntsekouras, ironprogrammer, hellofromtonya, flixos90.
Fixes #57611.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/blocks/pattern-directory/search-button.json

    r53665 r55234  
    1111                        "wpop_description": "A large hero section with a bright gradient background, a big heading and a filled button.",
    1212                        "wpop_keywords": "",
    13                         "wpop_viewport_width": 1000
     13                        "wpop_viewport_width": 1000,
     14                        "wpop_block_types": []
    1415                },
    1516                "category_slugs": [ "header" ],
    … …  
    2829                        "wpop_description": "Three small columns of text, each with an outlined button with rounded corners at the bottom.",
    2930                        "wpop_keywords": "",
    30                         "wpop_viewport_width": 1000
     31                        "wpop_viewport_width": 1000,
     32                        "wpop_block_types": []
    3133                },
    3234                "category_slugs": [ "columns" ],
    … …  
    4547                        "wpop_description": "Three filled buttons with rounded corners, side by side.",
    4648                        "wpop_keywords": "",
    47                         "wpop_viewport_width": 600
     49                        "wpop_viewport_width": 600,
     50                        "wpop_block_types": []
    4851                },
    4952                "category_slugs": [ "buttons" ],
    … …  
    6265                        "wpop_description": "Two buttons, one filled and one outlined, side by side.",
    6366                        "wpop_keywords": "",
    64                         "wpop_viewport_width": 500
     67                        "wpop_viewport_width": 500,
     68                        "wpop_block_types": []
    6569                },
    6670                "category_slugs": [ "buttons" ],
Note: See TracChangeset for help on using the changeset viewer.