WordPress.org

Make WordPress Core

Ticket #49408: 49408.patch

File 49408.patch, 382 bytes (added by stephanh, 4 months ago)
  • wp-admin/includes/ajax-actions.php

    diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
    index ea33d9d792..92db4e646f 100644
    a b function wp_ajax_wp_link_ajax() { 
    18641864                wp_die( 0 );
    18651865        }
    18661866
    1867         echo wp_json_encode( $results );
    1868         echo "\n";
    1869 
    1870         wp_die();
     1867        wp_send_json( $results );
    18711868}
    18721869
    18731870/**