Make WordPress Core


Ignore:
Timestamp:
02/27/2024 09:03:54 PM (3 months ago)
Author:
joemcgill
Message:

Docs: Improve docblock for WP_Block_Patterns_Registry::register.

This documents the new filePath property supported by WP_Block_Patterns_Registry::register and also updates the property name to camel case formatting to be consistent with other block pattern properties.

Props thekt12, spacedmonkey, joemcgill.
See #59532.

File:
1 edited

Legend:

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

    r57683 r57731  
    392392            }
    393393
    394             $pattern_data['file_path'] = $file_path;
     394            $pattern_data['filePath'] = $file_path;
    395395
    396396            // Translate the pattern metadata.
Note: See TracChangeset for help on using the changeset viewer.