~canonical-sysadmins/wordpress/4.7.2

« back to all changes in this revision

Viewing changes to wp-includes/rest-api/class-wp-rest-response.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
         * @since 4.4.0
52
52
         * @access public
53
53
         *
54
 
         * @link http://tools.ietf.org/html/rfc5988
55
 
         * @link http://www.iana.org/assignments/link-relations/link-relations.xml
 
54
         * @link https://tools.ietf.org/html/rfc5988
 
55
         * @link https://www.iana.org/assignments/link-relations/link-relations.xml
56
56
         *
57
57
         * @param string $rel        Link relation. Either an IANA registered type,
58
58
         *                           or an absolute URL.
147
147
         * @since 4.4.0
148
148
         * @access public
149
149
         *
150
 
         * @link http://tools.ietf.org/html/rfc5988
151
 
         * @link http://www.iana.org/assignments/link-relations/link-relations.xml
 
150
         * @link https://tools.ietf.org/html/rfc5988
 
151
         * @link https://www.iana.org/assignments/link-relations/link-relations.xml
152
152
         *
153
153
         * @param string $rel   Link relation. Either an IANA registered type, or an absolute URL.
154
154
         * @param string $link  Target IRI for the link.
275
275
                );
276
276
 
277
277
                /**
278
 
                 * Filter extra CURIEs available on API responses.
 
278
                 * Filters extra CURIEs available on API responses.
279
279
                 *
280
280
                 * CURIEs allow a shortened version of URI relations. This allows a more
281
281
                 * usable form for custom relations than using the full URI. These work
293
293
                 *
294
294
                 * Well-behaved clients should expand and normalise these back to their
295
295
                 * full URI relation, however some naive clients may not resolve these
296
 
                 * correctly, so adding new CURIEs may break backwards compatibility.
 
296
                 * correctly, so adding new CURIEs may break backward compatibility.
297
297
                 *
298
298
                 * @since 4.5.0
299
299
                 *