Skip to content

WP Rocket 2.1 requiert WP 3.5 et non 3.1 #16

@jbma

Description

@jbma

Originally reported by: Julio Potier (Bitbucket: juliopotier, GitHub: Unknown)


à cause de wp_send_json( )
Je vais donc l'ajouter si < 3.5

function wp_send_json( $response ) {
@Header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
echo json_encode( $response );
if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
wp_die();
else
die;
}


Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowIssues that can waittype: bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions