wp-includes/blocks/paragraph.php:24Append the wp-block-paragraph class before rendering the stored core/paragraph block contents.
$block_contentstringstringfunction block_core_paragraph_add_class( $block_content ) { if ( ! $block_content ) { return $block_content; } $processor = new WP_HTML_Tag_Processor( $block_content ); if ( $processor->next_tag( 'p' ) ) { $processor->add_class( 'wp-block-paragraph' ); } return $processor->get_updated_html();}Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/blocks/paragraph.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.