Skip to content

Commit

Permalink
Remove register_block_type_args filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Arntz committed Jun 20, 2017
1 parent a84b787 commit 8e379bf
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions lib/class-wp-block-type.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,9 @@ public function __construct( $block_type, $args = array() ) {
* @param array|string $args Array or string of arguments for registering a block type.
*/
public function set_props( $args ) {
$args = wp_parse_args( $args );

/**
* Filters the arguments for registering a block type.
*
* @since 0.2.0
*
* @param array $args Array of arguments for registering a block type.
* @param string $block_type Block type key.
*/
$args = apply_filters( 'register_block_type_args', $args, $this->name );

$defaults = array(
$args = wp_parse_args( $args, array(
'render' => null,
);

$args = array_merge( $defaults, $args );
) );

$args['name'] = $this->name;

Expand Down

0 comments on commit 8e379bf

Please sign in to comment.