• foreach ( array( 'post', 'page' ) as $post_type ) {
    	add_action( "rest_after_insert_{$post_type}", 'wp_add_footnotes_revisions_to_post_meta' );
    }

    This code is from file:wp-include/blocks/footnotes.php line 163-165.

    The “$post_type” will always override as “page”.

    Please check it.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A code problem from file wp-include/blocks/footnotes.php’ is closed to new replies.