- Timestamp:
- 02/16/2024 12:53:16 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-bindings-source.php
r57562 r57641 47 47 48 48 /** 49 * The context added to the blocks needed by the source. 50 * 51 * @since 6.5.0 52 * @var array|null 53 */ 54 public $uses_context = null; 55 56 /** 49 57 * Constructor. 50 58 * … … 58 66 */ 59 67 public function __construct( string $name, array $source_properties ) { 60 $this->name = $name; 61 $this->label = $source_properties['label']; 62 $this->get_value_callback = $source_properties['get_value_callback']; 68 $this->name = $name; 69 foreach ( $source_properties as $property_name => $property_value ) { 70 $this->$property_name = $property_value; 71 } 63 72 } 64 73
Note: See TracChangeset
for help on using the changeset viewer.