Make WordPress Core

Ticket #59043: 59043.diff

File 59043.diff, 533 bytes (added by khokansardar, 7 months ago)
  • src/wp-includes/blocks/post-excerpt.php

    diff --git src/wp-includes/blocks/post-excerpt.php src/wp-includes/blocks/post-excerpt.php
    index 4ed4edab95..478b573d35 100644
    add_action( 'init', 'register_block_core_post_excerpt' ); 
    8383 * the excerpt length block setting has no effect.
    8484 * Returns 100 because 100 is the max length in the setting.
    8585 */
    86 if ( is_admin() ||
     86if ( is_admin() &&
    8787        defined( 'REST_REQUEST' ) && REST_REQUEST ) {
    8888        add_filter(
    8989                'excerpt_length',