Warning: This function has been deprecated. Use sanitize_bookmark_field() instead.
get_linkrating( object $link )
Legacy function that retrieved the value of a link’s link_rating field.
Contents
Description Description
See also See also
Parameters Parameters
- $link
-
(object) (Required) Link object.
Return Return
(mixed) Value of the 'link_rating' field, false otherwise.
Source Source
File: wp-includes/deprecated.php
function get_linkrating( $link ) { _deprecated_function( __FUNCTION__, '2.1.0', 'sanitize_bookmark_field()' ); return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display'); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Use sanitize_bookmark_field() |
1.0.1 | Introduced. |