mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML".
This ensures consistent capitalization where appropriate. Props navidos, desrosj. Fixes #50473. git-svn-id: https://develop.svn.wordpress.org/trunk@48199 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -379,18 +379,23 @@ function user_can_edit_user($user_id, $other_user) {
|
||||
* @deprecated 2.1.0 Use get_bookmarks()
|
||||
* @see get_bookmarks()
|
||||
*
|
||||
* @param string $cat_name Optional. The category name to use. If no match is found uses all.
|
||||
* @param string $before Optional. The html to output before the link.
|
||||
* @param string $after Optional. The html to output after the link.
|
||||
* @param string $between Optional. The html to output between the link/image and its description. Not used if no image or $show_images is true.
|
||||
* @param bool $show_images Optional. Whether to show images (if defined).
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
|
||||
* If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a
|
||||
* random order.
|
||||
* @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
|
||||
* @param bool $show_rating Optional. Show rating stars/chars.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* @param int $show_updated Optional. Whether to show last updated timestamp
|
||||
* @param string $cat_name Optional. The category name to use. If no match is found, uses all.
|
||||
* Default 'noname'.
|
||||
* @param string $before Optional. The HTML to output before the link. Default empty.
|
||||
* @param string $after Optional. The HTML to output after the link. Default '<br />'.
|
||||
* @param string $between Optional. The HTML to output between the link/image and its description.
|
||||
* Not used if no image or $show_images is true. Default ' '.
|
||||
* @param bool $show_images Optional. Whether to show images (if defined). Default true.
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', 'rating', or 'owner'. Default 'id'.
|
||||
* If you start the name with an underscore, the order will be reversed.
|
||||
* Specifying 'rand' as the order will return links in a random order.
|
||||
* @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
|
||||
* Default true.
|
||||
* @param bool $show_rating Optional. Show rating stars/chars. Default false.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* Default -1.
|
||||
* @param int $show_updated Optional. Whether to show last updated timestamp. Default 0.
|
||||
*/
|
||||
function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
|
||||
$show_description = true, $show_rating = false,
|
||||
@@ -447,11 +452,14 @@ function wp_get_linksbyname($category, $args = '') {
|
||||
* @deprecated 2.1.0 Use get_bookmarks()
|
||||
* @see get_bookmarks()
|
||||
*
|
||||
* @param string $cat_name The category name to use. If no match is found uses all.
|
||||
* @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'.
|
||||
* Or maybe owner. If you start the name with an underscore the order will be reversed. You can also
|
||||
* specify 'rand' as the order which will return links in a random order.
|
||||
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
||||
* @param string $cat_name Optional. The category name to use. If no match is found, uses all.
|
||||
* Default 'noname'.
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', 'rating', or 'owner'. Default 'name'.
|
||||
* If you start the name with an underscore, the order will be reversed.
|
||||
* Specifying 'rand' as the order will return links in a random order.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* Default -1.
|
||||
* @return array
|
||||
*/
|
||||
function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
|
||||
@@ -497,12 +505,14 @@ function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit
|
||||
* @deprecated 2.1.0 Use get_bookmarks()
|
||||
* @see get_bookmarks()
|
||||
*
|
||||
* @param int $category The category to use. If no category supplied uses all
|
||||
* @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
||||
* underscore the order will be reversed. You can also specify 'rand' as the
|
||||
* order which will return links in a random order.
|
||||
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
||||
* @param int $category Optional. The category to use. If no category supplied, uses all.
|
||||
* Default 0.
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', 'rating', or 'owner'. Default 'name'.
|
||||
* If you start the name with an underscore, the order will be reversed.
|
||||
* Specifying 'rand' as the order will return links in a random order.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* Default 0.
|
||||
* @return array
|
||||
*/
|
||||
function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
|
||||
@@ -524,18 +534,22 @@ function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
|
||||
* @deprecated 2.1.0 Use get_bookmarks()
|
||||
* @see get_bookmarks()
|
||||
*
|
||||
* @param string $cat_name The category name to use. If no match is found uses all
|
||||
* @param string $before The html to output before the link
|
||||
* @param string $after The html to output after the link
|
||||
* @param string $between The html to output between the link/image and its description. Not used if no image or show_images is true
|
||||
* @param bool $show_images Whether to show images (if defined).
|
||||
* @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
||||
* underscore the order will be reversed. You can also specify 'rand' as the
|
||||
* order which will return links in a random order.
|
||||
* @param bool $show_description Whether to show the description if show_images=false/not defined
|
||||
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
||||
* @param int $show_updated Whether to show last updated timestamp
|
||||
* @param string $cat_name Optional. The category name to use. If no match is found, uses all.
|
||||
* Default 'noname'.
|
||||
* @param string $before Optional. The HTML to output before the link. Default empty.
|
||||
* @param string $after Optional. The HTML to output after the link. Default '<br />'.
|
||||
* @param string $between Optional. The HTML to output between the link/image and its description.
|
||||
* Not used if no image or $show_images is true. Default ' '.
|
||||
* @param bool $show_images Optional. Whether to show images (if defined). Default true.
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', 'rating', or 'owner'. Default 'id'.
|
||||
* If you start the name with an underscore, the order will be reversed.
|
||||
* Specifying 'rand' as the order will return links in a random order.
|
||||
* @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
|
||||
* Default true.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* Default -1.
|
||||
* @param int $show_updated Optional. Whether to show last updated timestamp. Default 0.
|
||||
*/
|
||||
function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
|
||||
$show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
|
||||
@@ -551,18 +565,22 @@ function get_linksbyname_withrating($cat_name = "noname", $before = '', $after =
|
||||
* @deprecated 2.1.0 Use get_bookmarks()
|
||||
* @see get_bookmarks()
|
||||
*
|
||||
* @param int $category The category to use. If no category supplied uses all
|
||||
* @param string $before The html to output before the link
|
||||
* @param string $after The html to output after the link
|
||||
* @param string $between The html to output between the link/image and its description. Not used if no image or show_images == true
|
||||
* @param bool $show_images Whether to show images (if defined).
|
||||
* @param string $orderby The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
||||
* underscore the order will be reversed. You can also specify 'rand' as the
|
||||
* order which will return links in a random order.
|
||||
* @param bool $show_description Whether to show the description if show_images=false/not defined.
|
||||
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
||||
* @param int $show_updated Whether to show last updated timestamp
|
||||
* @param int $category Optional. The category to use. If no category supplied, uses all.
|
||||
* Default 0.
|
||||
* @param string $before Optional. The HTML to output before the link. Default empty.
|
||||
* @param string $after Optional. The HTML to output after the link. Default '<br />'.
|
||||
* @param string $between Optional. The HTML to output between the link/image and its description.
|
||||
* Not used if no image or $show_images is true. Default ' '.
|
||||
* @param bool $show_images Optional. Whether to show images (if defined). Default true.
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', 'rating', or 'owner'. Default 'id'.
|
||||
* If you start the name with an underscore, the order will be reversed.
|
||||
* Specifying 'rand' as the order will return links in a random order.
|
||||
* @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
|
||||
* Default true.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* Default -1.
|
||||
* @param int $show_updated Optional. Whether to show last updated timestamp. Default 0.
|
||||
*/
|
||||
function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
|
||||
$orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
|
||||
@@ -904,21 +922,24 @@ function wp_get_links($args = '') {
|
||||
* @deprecated 2.1.0 Use get_bookmarks()
|
||||
* @see get_bookmarks()
|
||||
*
|
||||
* @param int $category The category to use. If no category supplied uses all
|
||||
* @param string $before the html to output before the link
|
||||
* @param string $after the html to output after the link
|
||||
* @param string $between the html to output between the link/image and its description.
|
||||
* Not used if no image or show_images == true
|
||||
* @param bool $show_images whether to show images (if defined).
|
||||
* @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
||||
* underscore the order will be reversed. You can also specify 'rand' as the order
|
||||
* which will return links in a random order.
|
||||
* @param bool $show_description whether to show the description if show_images=false/not defined.
|
||||
* @param bool $show_rating show rating stars/chars
|
||||
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
||||
* @param int $show_updated whether to show last updated timestamp
|
||||
* @param bool $echo whether to echo the results, or return them instead
|
||||
* @param int $category Optional. The category to use. If no category supplied uses all.
|
||||
* Default 0.
|
||||
* @param string $before Optional. The HTML to output before the link. Default empty.
|
||||
* @param string $after Optional. The HTML to output after the link. Default '<br />'.
|
||||
* @param string $between Optional. The HTML to output between the link/image and its description.
|
||||
* Not used if no image or $show_images is true. Default ' '.
|
||||
* @param bool $show_images Optional. Whether to show images (if defined). Default true.
|
||||
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url',
|
||||
* 'description', 'rating', or 'owner'. Default 'name'.
|
||||
* If you start the name with an underscore, the order will be reversed.
|
||||
* Specifying 'rand' as the order will return links in a random order.
|
||||
* @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
|
||||
* Default true.
|
||||
* @param bool $show_rating Optional. Show rating stars/chars. Default false.
|
||||
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
||||
* Default -1.
|
||||
* @param int $show_updated Optional. Whether to show last updated timestamp. Default 1.
|
||||
* @param bool $echo Whether to echo the results, or return them instead.
|
||||
* @return null|string
|
||||
*/
|
||||
function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
|
||||
@@ -1628,30 +1649,31 @@ function the_author_ID() {
|
||||
/**
|
||||
* Display the post content for the feed.
|
||||
*
|
||||
* For encoding the html or the $encode_html parameter, there are three possible
|
||||
* values. '0' will make urls footnotes and use make_url_footnote(). '1' will
|
||||
* encode special characters and automatically display all of the content. The
|
||||
* value of '2' will strip all HTML tags from the content.
|
||||
* For encoding the HTML or the $encode_html parameter, there are three possible values:
|
||||
* - '0' will make urls footnotes and use make_url_footnote().
|
||||
* - '1' will encode special characters and automatically display all of the content.
|
||||
* - '2' will strip all HTML tags from the content.
|
||||
*
|
||||
* Also note that you cannot set the amount of words and not set the html
|
||||
* encoding. If that is the case, then the html encoding will default to 2,
|
||||
* which will strip all HTML tags.
|
||||
* Also note that you cannot set the amount of words and not set the HTML encoding.
|
||||
* If that is the case, then the HTML encoding will default to 2, which will strip
|
||||
* all HTML tags.
|
||||
*
|
||||
* To restrict the amount of words of the content, you can use the cut
|
||||
* parameter. If the content is less than the amount, then there won't be any
|
||||
* dots added to the end. If there is content left over, then dots will be added
|
||||
* and the rest of the content will be removed.
|
||||
* To restrict the amount of words of the content, you can use the cut parameter.
|
||||
* If the content is less than the amount, then there won't be any dots added to the end.
|
||||
* If there is content left over, then dots will be added and the rest of the content
|
||||
* will be removed.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
* @deprecated 2.9.0 Use the_content_feed()
|
||||
* @see the_content_feed()
|
||||
*
|
||||
* @param string $more_link_text Optional. Text to display when more content is available but not displayed.
|
||||
* @param int $stripteaser Optional. Default is 0.
|
||||
* @param string $more_file Optional.
|
||||
* @param int $cut Optional. Amount of words to keep for the content.
|
||||
* @param int $encode_html Optional. How to encode the content.
|
||||
* @param string $more_link_text Optional. Text to display when more content is available
|
||||
* but not displayed. Default '(more...)'.
|
||||
* @param int $stripteaser Optional. Default 0.
|
||||
* @param string $more_file Optional.
|
||||
* @param int $cut Optional. Amount of words to keep for the content.
|
||||
* @param int $encode_html Optional. How to encode the content.
|
||||
*/
|
||||
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
|
||||
_deprecated_function( __FUNCTION__, '2.9.0', 'the_content_feed()' );
|
||||
@@ -1704,7 +1726,7 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file
|
||||
* @since 0.71
|
||||
* @deprecated 2.9.0
|
||||
*
|
||||
* @param string $content Content to get links
|
||||
* @param string $content Content to get links.
|
||||
* @return string HTML stripped out of content with links at the bottom.
|
||||
*/
|
||||
function make_url_footnote( $content ) {
|
||||
@@ -1742,9 +1764,9 @@ function make_url_footnote( $content ) {
|
||||
* @deprecated 2.9.0 Use _x()
|
||||
* @see _x()
|
||||
*
|
||||
* @param string $text Text to translate
|
||||
* @param string $domain Optional. Domain to retrieve the translated text
|
||||
* @return string Translated context string without pipe
|
||||
* @param string $text Text to translate.
|
||||
* @param string $domain Optional. Domain to retrieve the translated text.
|
||||
* @return string Translated context string without pipe.
|
||||
*/
|
||||
function _c( $text, $domain = 'default' ) {
|
||||
_deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
|
||||
@@ -1759,9 +1781,9 @@ function _c( $text, $domain = 'default' ) {
|
||||
* @deprecated 3.0.0 Use _x()
|
||||
* @see _x()
|
||||
*
|
||||
* @param string $text Text to translate
|
||||
* @param string $domain Domain to retrieve the translated text
|
||||
* @return string Translated text
|
||||
* @param string $text Text to translate.
|
||||
* @param string $domain Domain to retrieve the translated text.
|
||||
* @return string Translated text.
|
||||
*/
|
||||
function translate_with_context( $text, $domain = 'default' ) {
|
||||
_deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
|
||||
|
||||
Reference in New Issue
Block a user