From 2b1420456ddbb35d59942781ac0ea5af3a783fc5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 May 2013 01:39:30 +0000 Subject: [PATCH] Fix typos in phpdoc. props TheLastCicada. fixes #24302. git-svn-id: https://develop.svn.wordpress.org/trunk@24229 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/widgets.php | 2 +- wp-admin/js/revisions.js | 2 +- wp-includes/class-wp-theme.php | 4 ++-- wp-includes/feed.php | 2 +- wp-includes/formatting.php | 2 +- wp-includes/functions.php | 4 ++-- wp-includes/post.php | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/widgets.php b/wp-admin/includes/widgets.php index e0c58a7277..dae95509aa 100644 --- a/wp-admin/includes/widgets.php +++ b/wp-admin/includes/widgets.php @@ -58,7 +58,7 @@ function _sort_name_callback( $a, $b ) { /** * Show the widgets and their settings for a sidebar. - * Used in the the admin widget config screen. + * Used in the admin widget config screen. * * @since 2.5.0 * diff --git a/wp-admin/js/revisions.js b/wp-admin/js/revisions.js index 2e09a22a98..5d6f69a5ea 100644 --- a/wp-admin/js/revisions.js +++ b/wp-admin/js/revisions.js @@ -621,7 +621,7 @@ window.wp = window.wp || {}; }, true ); }, - // go the the previous revision + // go to the previous revision previousRevision: function() { if ( Diff.rightDiff > 1 ) // unless at left boundry Diff.rightDiff = Diff.rightDiff - 1 ; diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index dfff7056c2..49bedb611e 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -87,7 +87,7 @@ final class WP_Theme implements ArrayAccess { /** * The directory name of the theme's files, inside the theme root. * - * In the case of a child theme, this is directory name of the the child theme. + * In the case of a child theme, this is directory name of the child theme. * Otherwise, 'stylesheet' is the same as 'template'. * * @access private @@ -720,7 +720,7 @@ final class WP_Theme implements ArrayAccess { /** * The directory name of the theme's "stylesheet" files, inside the theme root. * - * In the case of a child theme, this is directory name of the the child theme. + * In the case of a child theme, this is directory name of the child theme. * Otherwise, get_stylesheet() is the same as get_template(). * * @since 3.4.0 diff --git a/wp-includes/feed.php b/wp-includes/feed.php index b32b06a322..e6b9ae0e68 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -391,7 +391,7 @@ function rss_enclosure() { foreach ( (array) $val as $enc ) { $enclosure = explode("\n", $enc); - //only get the the first element eg, audio/mpeg from 'audio/mpeg mpga mp2 mp3' + // only get the first element, e.g. audio/mpeg from 'audio/mpeg mpga mp2 mp3' $t = preg_split('/[ \t]/', trim($enclosure[2]) ); $type = $t[0]; diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index a0bf5c6fe0..3187e7edca 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -1913,7 +1913,7 @@ function _wp_iso_convert( $match ) { * * @since 1.2.0 * - * @uses get_option() to retrieve the the value of 'gmt_offset'. + * @uses get_option() to retrieve the value of 'gmt_offset'. * @param string $string The date to be converted. * @param string $format The format string for the returned date (default is Y-m-d H:i:s) * @return string GMT version of the date provided. diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b3fd0580df..bc2d6aec4f 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2743,8 +2743,8 @@ function wp_ob_end_flush_all() { * search engines from caching the message. Custom DB messages should do the * same. * - * This function was backported to the the WordPress 2.3.2, but originally was - * added in WordPress 2.5.0. + * This function was backported to WordPress 2.3.2, but originally was added + * in WordPress 2.5.0. * * @since 2.3.2 * @uses $wpdb diff --git a/wp-includes/post.php b/wp-includes/post.php index ab01ebfdf5..9dc2fb7d82 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1074,7 +1074,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * * While the default settings of exclude_from_search, publicly_queryable, show_ui, and show_in_nav_menus are * inherited from public, each does not rely on this relationship and controls a very specific intention. * - exclude_from_search - Whether to exclude posts with this post type from front end search results. - * * If not set, the the opposite of public's current value is used. + * * If not set, the opposite of public's current value is used. * - publicly_queryable - Whether queries can be performed on the front end for the post type as part of parse_request(). * * ?post_type={post_type_key} * * ?{post_type_key}={single_post_slug}