WordPress.org

Ready to get started?Download WordPress

Forums

JSON REST API (WP API)
Link Header duplicate ? (2 posts)

  1. psm101
    Member
    Posted 9 months ago #

    I was getting duplicates Link: headers

    Link: Link: </wp-json.php/posts?page=2>; rel="next"

    line 453 class-wp-json-server.php
    $header = 'Link: <' . $link . '>; rel="' . $rel . '"';

    public function link_header( $rel, $link, $other = array() ) {
    $header = '<' . $link . '>; rel="' . $rel . '"';

    Link: </wp-json.php/posts?page=2>; rel="next"

    http://wordpress.org/plugins/json-rest-api/

  2. Ryan McCue
    Member
    Plugin Author

    Posted 7 months ago #

    Confirmed and filed, thanks!

Reply

You must log in to post.

About this Plugin

About this Topic