WordPress.org

Making WordPress.org

Ticket #3806: 3806.patch

File 3806.patch, 628 bytes (added by imath, 13 months ago)
  • wordcamp.org/public_html/wp-content/mu-plugins/gutenberg-tweaks.php

    diff --git wordcamp.org/public_html/wp-content/mu-plugins/gutenberg-tweaks.php wordcamp.org/public_html/wp-content/mu-plugins/gutenberg-tweaks.php
    index b4478b3e0..961c64173 100644
    function add_classic_param_to_edit_links( $url, $post_id = 0 ) { 
    5656
    5757        $post = get_post( $post_id );
    5858
    59         if ( function_exists( 'gutenberg_post_has_blocks' ) && gutenberg_post_has_blocks( $post ) ) {
     59        if ( function_exists( 'has_blocks' ) && has_blocks( $post ) ) {
    6060                return $url;
    6161        }
    6262