Make WordPress Core

Ticket #45451: patch.diff

File patch.diff, 650 bytes (added by kkarpieszuk, 6 years ago)

proposed patch

  • src/wp-includes/class-wp-block-type.php

    diff --git src/wp-includes/class-wp-block-type.php src/wp-includes/class-wp-block-type.php
    index 6ffda95b4e..74da353fa1 100644
    class WP_Block_Type { 
    165165                        }
    166166                }
    167167
     168                /**
     169                 * Filters the prepared block attributes before rendering the current block.
     170                 *
     171                 * @since 5.0.1
     172                 *
     173                 * @param array         $attributes Block attributes.
     174                 * @param WP_Block_Type $block_type Block object which attributes are filtered.
     175                 */
     176                $attributes = apply_filters( 'block_prepared_attributes', $attributes, $this );
     177
    168178                return $attributes;
    169179        }
    170180