From 32e25b6aec24654f71d6e79eb6b2d001e6eb3b05 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 29 Sep 2011 22:57:43 +0000 Subject: [PATCH] phpdoc typo and readability fixes. Props SergeyBiryukov. fixes #18560 git-svn-id: http://svn.automattic.com/wordpress/trunk@18827 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 6 +- wp-includes/kses.php | 18 ++-- wp-includes/l10n.php | 28 ++--- wp-includes/link-template.php | 134 ++++++++++++------------ wp-includes/load.php | 16 +-- wp-includes/locale.php | 2 +- wp-includes/media.php | 22 ++-- wp-includes/pomo/translations.php | 2 +- wp-includes/post-thumbnail-template.php | 2 +- 9 files changed, 117 insertions(+), 113 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index e992dba9ab..36d0200609 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2731,9 +2731,9 @@ function sanitize_user_object($user, $context = 'display') { * @deprecated 3.3 * * @param string $title Optional. Link title format. - * @param bool $in_same_cat Optional. Whether link should be in same category. + * @param bool $in_same_cat Optional. Whether link should be in a same category. * @param string $excluded_categories Optional. Excluded categories IDs. - * @param bool $start Optional, default is true. Whether display link to first or last post. + * @param bool $start Optional, default is true. Whether to display link to first or last post. * @return string */ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) { @@ -2771,7 +2771,7 @@ function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $ex * @deprecated 3.3 * * @param string $title Optional. Link title format. - * @param bool $in_same_cat Optional. Whether link should be in same category. + * @param bool $in_same_cat Optional. Whether link should be in a same category. * @param string $excluded_categories Optional. Excluded categories IDs. */ function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') { diff --git a/wp-includes/kses.php b/wp-includes/kses.php index 1e0ee13679..d381cf3758 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -842,7 +842,7 @@ function wp_kses_hair($attr, $allowed_protocols) { * Performs different checks for attribute values. * * The currently implemented checks are "maxlen", "minlen", "maxval", "minval" - * and "valueless" with even more checks to come soon. + * and "valueless". * * @since 1.0.0 * @@ -887,7 +887,7 @@ function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { break; case 'minval' : - # The minval check checks that the attribute value is a positive integer, + # The minval check makes sure that the attribute value is a positive integer, # and that it is not smaller than the given value. if (!preg_match('/^\s{0,6}[0-9]{1,6}\s{0,6}$/', $value)) @@ -897,7 +897,7 @@ function wp_kses_check_attr_val($value, $vless, $checkname, $checkvalue) { break; case 'valueless' : - # The valueless check checks if the attribute has a value + # The valueless check makes sure if the attribute has a value # (like ) or not (