Ticket #18560: 18560.wp-includes.diff

File 18560.wp-includes.diff, 35.7 KB (added by duck_, 21 months ago)
  • wp-includes/plugin.php

     
    251251 * @param string $tag The filter hook to which the function to be removed is hooked. 
    252252 * @param callback $function_to_remove The name of the function which should be removed. 
    253253 * @param int $priority optional. The priority of the function (default: 10). 
    254  * @param int $accepted_args optional. The number of arguments the function accpets (default: 1). 
     254 * @param int $accepted_args optional. The number of arguments the function accepts (default: 1). 
    255255 * @return boolean Whether the function existed before it was removed. 
    256256 */ 
    257257function remove_filter($tag, $function_to_remove, $priority = 10, $accepted_args = 1) { 
     
    520520 * @param string $tag The action hook to which the function to be removed is hooked. 
    521521 * @param callback $function_to_remove The name of the function which should be removed. 
    522522 * @param int $priority optional The priority of the function (default: 10). 
    523  * @param int $accepted_args optional. The number of arguments the function accpets (default: 1). 
     523 * @param int $accepted_args optional. The number of arguments the function accepts (default: 1). 
    524524 * @return boolean Whether the function is removed. 
    525525 */ 
    526526function remove_action($tag, $function_to_remove, $priority = 10, $accepted_args = 1) { 
     
    745745 * @param string $tag Used in counting how many hooks were applied 
    746746 * @param callback $function Used for creating unique id 
    747747 * @param int|bool $priority Used in counting how many hooks were applied.  If === false and $function is an object reference, we return the unique id only if it already has one, false otherwise. 
    748  * @return string|bool Unique ID for usage as array key or false if $priority === false and $function is an object reference, and it does not already have a uniqe id. 
     748 * @return string|bool Unique ID for usage as array key or false if $priority === false and $function is an object reference, and it does not already have a unique id. 
    749749 */ 
    750750function _wp_filter_build_unique_id($tag, $function, $priority) { 
    751751        global $wp_filter; 
  • wp-includes/locale.php

     
    6565        /** 
    6666         * Stores the translated strings for 'am' and 'pm'. 
    6767         * 
    68          * Also the capalized versions. 
     68         * Also the capitalized versions. 
    6969         * 
    7070         * @since 2.1.0 
    7171         * @var array 
  • wp-includes/taxonomy.php

     
    266266 * query_var - false to prevent queries, or string to customize query var 
    267267 * (?$query_var=$term); default will use $taxonomy as query var. 
    268268 * 
    269  * public - If the taxonomy should be publically queryable; //@TODO not implemented. 
     269 * public - If the taxonomy should be publicly queryable; //@TODO not implemented. 
    270270 * defaults to true. 
    271271 * 
    272272 * show_ui - If the WordPress UI admin tags UI should apply to this taxonomy; 
     
    276276 * Defaults to public. 
    277277 * 
    278278 * show_tagcloud - false to prevent the taxonomy being listed in the Tag Cloud Widget; 
    279  * defaults to show_ui which defalts to public. 
     279 * defaults to show_ui which defaults to public. 
    280280 * 
    281281 * labels - An array of labels for this taxonomy. You can see accepted values in {@link get_taxonomy_labels()}. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones. 
    282282 * 
     
    369369 * Builds an object with all taxonomy labels out of a taxonomy object 
    370370 * 
    371371 * Accepted keys of the label array in the taxonomy object: 
    372  * - name - general name for the taxonomy, usually plural. The same as and overriden by $tax->label. Default is Post Tags/Categories 
     372 * - name - general name for the taxonomy, usually plural. The same as and overridden by $tax->label. Default is Post Tags/Categories 
    373373 * - singular_name - name for one object of this taxonomy. Default is Post Tag/Category 
    374374 * - search_items - Default is Search Tags/Search Categories 
    375375 * - popular_items - This string isn't used on hierarchical taxonomies. Default is Popular Tags 
     
    14961496/** 
    14971497 * Sanitize Term all fields. 
    14981498 * 
    1499  * Relys on sanitize_term_field() to sanitize the term. The difference is that 
     1499 * Relies on sanitize_term_field() to sanitize the term. The difference is that 
    15001500 * this function will sanitize <strong>all</strong> fields. The context is based 
    15011501 * on sanitize_term_field(). 
    15021502 * 
     
    17851785 * @uses wp_delete_term() 
    17861786 * 
    17871787 * @param int $cat_ID 
    1788  * @return mixed Returns true if completes delete action; false if term doesnt exist; 
     1788 * @return mixed Returns true if completes delete action; false if term doesn't exist; 
    17891789 *      Zero on attempted deletion of default Category; WP_Error object is also a possibility. 
    17901790 */ 
    17911791function wp_delete_category( $cat_ID ) { 
     
    18101810 * 'all_with_object_id'. 
    18111811 * 
    18121812 * The fields argument also decides what will be returned. If 'all' or 
    1813  * 'all_with_object_id' is choosen or the default kept intact, then all matching 
     1813 * 'all_with_object_id' is chosen or the default kept intact, then all matching 
    18141814 * terms objects will be returned. If either 'ids' or 'names' is used, then an 
    18151815 * array of all matching term ids or term names will be returned respectively. 
    18161816 * 
     
    19181918/** 
    19191919 * Adds a new term to the database. Optionally marks it as an alias of an existing term. 
    19201920 * 
    1921  * Error handling is assigned for the nonexistance of the $taxonomy and $term 
     1921 * Error handling is assigned for the nonexistence of the $taxonomy and $term 
    19221922 * parameters before inserting. If both the term id and taxonomy exist 
    19231923 * previously, then an array will be returned that contains the term id and the 
    19241924 * contents of what is returned. The keys of the array are 'term_id' and 
     
    21792179 * hierarchical and has a parent, it will append that parent to the $slug. 
    21802180 * 
    21812181 * If that still doesn't return an unique slug, then it try to append a number 
    2182  * until it finds a number that is truely unique. 
     2182 * until it finds a number that is truly unique. 
    21832183 * 
    21842184 * The only purpose for $term is for appending a parent, if one exists. 
    21852185 * 
     
    23852385/** 
    23862386 * Updates the amount of terms in taxonomy. 
    23872387 * 
    2388  * If there is a taxonomy callback applyed, then it will be called for updating 
     2388 * If there is a taxonomy callback applied, then it will be called for updating 
    23892389 * the count. 
    23902390 * 
    23912391 * The default action is to count what the amount of terms have the relationship 
  • wp-includes/class-http.php

     
    222222        /** 
    223223         * Dispatches a HTTP request to a supporting transport. 
    224224         * 
    225          * Tests each transport in order to find a transport which matches the request arguements. 
     225         * Tests each transport in order to find a transport which matches the request arguments. 
    226226         * Also caches the transport instance to be used later. 
    227227         * 
    228228         * The order for blocking requests is cURL, Streams, and finally Fsockopen. 
     
    631631 
    632632                $endDelay = time(); 
    633633 
    634                 // If the delay is greater than the timeout then fsockopen should't be used, because it will 
     634                // If the delay is greater than the timeout then fsockopen shouldn't be used, because it will 
    635635                // cause a long delay. 
    636636                $elapseDelay = ($endDelay-$startDelay) > $r['timeout']; 
    637637                if ( true === $elapseDelay ) 
     
    915915                else 
    916916                        $processedHeaders = WP_Http::processHeaders($meta['wrapper_data']); 
    917917 
    918                 // Streams does not provide an error code which we can use to see why the request stream stoped. 
     918                // Streams does not provide an error code which we can use to see why the request stream stopped. 
    919919                // We can however test to see if a location header is present and return based on that. 
    920920                if ( isset($processedHeaders['headers']['location']) && 0 !== $args['_redirection'] ) 
    921921                        return new WP_Error('http_request_failed', __('Too many redirects.')); 
     
    10311031 
    10321032 
    10331033                // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers.  Have to use ceil since 
    1034                 // a value of 0 will allow an ulimited timeout. 
     1034                // a value of 0 will allow an unlimited timeout. 
    10351035                $timeout = (int) ceil( $r['timeout'] ); 
    10361036                curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); 
    10371037                curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout ); 
     
    16791679        } 
    16801680 
    16811681        /** 
    1682          * What enconding the content used when it was compressed to send in the headers. 
     1682         * What encoding the content used when it was compressed to send in the headers. 
    16831683         * 
    16841684         * @since 2.8 
    16851685         * 
  • wp-includes/post.php

     
    11551155 * Builds an object with all post type labels out of a post type object 
    11561156 * 
    11571157 * Accepted keys of the label array in the post type object: 
    1158  * - name - general name for the post type, usually plural. The same and overriden by $post_type_object->label. Default is Posts/Pages 
     1158 * - name - general name for the post type, usually plural. The same and overridden by $post_type_object->label. Default is Posts/Pages 
    11591159 * - singular_name - name for one object of this post type. Default is Post/Page 
    11601160 * - add_new - Default is Add New for both hierarchical and non-hierarchical types. When internationalizing this string, please use a {@link http://codex.wordpress.org/I18n_for_WordPress_Developers#Disambiguation_by_context gettext context} matching your post type. Example: <code>_x('Add New', 'product');</code> 
    11611161 * - add_new_item - Default is Add New Post/Add New Page 
     
    12491249 * 'excerpt', 'page-attributes', 'thumbnail', and 'custom-fields'. 
    12501250 * 
    12511251 * Additionally, the 'revisions' feature dictates whether the post type will store revisions, 
    1252  * and the 'comments' feature dicates whether the comments count will show on the edit screen. 
     1252 * and the 'comments' feature dictates whether the comments count will show on the edit screen. 
    12531253 * 
    12541254 * @since 3.0.0 
    12551255 * @param string $post_type The post type for which to add the feature 
     
    32693269 
    32703270/** 
    32713271 * function to traverse and return all the nested children post names of a root page. 
    3272  * $children contains parent-chilren relations 
     3272 * $children contains parent-children relations 
    32733273 * 
    32743274 * @since 2.9.0 
    32753275 */ 
     
    39113911                } 
    39123912        } 
    39133913 
    3914         if ( empty($url) ) //If any of the above options failed, Fallback on the GUID as used pre-2.7, not recomended to rely upon this. 
     3914        if ( empty($url) ) //If any of the above options failed, Fallback on the GUID as used pre-2.7, not recommended to rely upon this. 
    39153915                $url = get_the_guid( $post->ID ); 
    39163916 
    39173917        $url = apply_filters( 'wp_get_attachment_url', $url, $post->ID ); 
     
    44664466/** 
    44674467 * Will clean the attachment in the cache. 
    44684468 * 
    4469  * Cleaning means delete from the cache. Optionaly will clean the term 
     4469 * Cleaning means delete from the cache. Optionally will clean the term 
    44704470 * object cache associated with the attachment ID. 
    44714471 * 
    44724472 * This function will not run if $_wp_suspend_cache_invalidation is not empty. See 
     
    46644664 * Determines which fields of posts are to be saved in revisions. 
    46654665 * 
    46664666 * Does two things. If passed a post *array*, it will return a post array ready 
    4667  * to be insterted into the posts table as a post revision. Otherwise, returns 
     4667 * to be inserted into the posts table as a post revision. Otherwise, returns 
    46684668 * an array whose keys are the post fields to be saved for post revisions. 
    46694669 * 
    46704670 * @package WordPress 
  • wp-includes/js/tinymce/plugins/wpdialogs/js/popup.dev.js

     
    6767         * Returns a window argument/parameter by name. 
    6868         * 
    6969         * @method getWindowArg 
    70          * @param {String} n Name of the window argument to retrive. 
     70         * @param {String} n Name of the window argument to retrieve. 
    7171         * @param {String} dv Optional default value to return. 
    7272         * @return {String} Argument value or default value if it wasn't found. 
    7373         */ 
     
    8181         * Returns a editor parameter/config option value. 
    8282         * 
    8383         * @method getParam 
    84          * @param {String} n Name of the editor config option to retrive. 
     84         * @param {String} n Name of the editor config option to retrieve. 
    8585         * @param {String} dv Optional default value to return. 
    8686         * @return {String} Parameter value or default value if it wasn't found. 
    8787         */ 
  • wp-includes/theme.php

     
    469469 * 
    470470 * @since 2.9.0 
    471471 * 
    472  * @return array|string An arry of theme roots keyed by template/stylesheet or a single theme root if all themes have the same root. 
     472 * @return array|string An array of theme roots keyed by template/stylesheet or a single theme root if all themes have the same root. 
    473473 */ 
    474474function get_theme_roots() { 
    475475        global $wp_theme_directories; 
  • wp-includes/functions.php

     
    2020 * @param string $dateformatstring Either 'G', 'U', or php date format. 
    2121 * @param string $mysqlstring Time from mysql DATETIME field. 
    2222 * @param bool $translate Optional. Default is true. Will switch format to locale. 
    23  * @return string Date formated by $dateformatstring or locale (if available). 
     23 * @return string Date formatted by $dateformatstring or locale (if available). 
    2424 */ 
    2525function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) { 
    2626        $m = $mysqlstring; 
     
    35863586                /* First we check if the DOMDocument class exists. If it does not exist, 
    35873587                 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, 
    35883588                 * hence we just bail out and tell user that pretty permalinks cannot be used. 
    3589                  * This is not a big issue because PHP 4.X is going to be depricated and for IIS it 
     3589                 * This is not a big issue because PHP 4.X is going to be deprecated and for IIS it 
    35903590                 * is recommended to use PHP 5.X NTS. 
    35913591                 * Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When 
    35923592                 * URL Rewrite 1.1 is loaded it always sets a server variable called 'IIS_UrlRewriteModule'. 
  • wp-includes/l10n.php

     
    398398 * @param string $domain Unique identifier for retrieving translated strings 
    399399 * @param string $abs_rel_path Optional. Relative path to ABSPATH of a folder, 
    400400 *      where the .mo file resides. Deprecated, but still functional until 2.7 
    401  * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR. This is the preferred argument to use. It takes precendence over $abs_rel_path 
     401 * @param string $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR. This is the preferred argument to use. It takes precedence over $abs_rel_path 
    402402 */ 
    403403function load_plugin_textdomain( $domain, $abs_rel_path = false, $plugin_rel_path = false ) { 
    404404        $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); 
     
    532532        } 
    533533 
    534534        return $languages; 
    535 } 
    536  No newline at end of file 
     535} 
  • wp-includes/comment-template.php

     
    362362 * Retrieve the comment date of the current comment. 
    363363 * 
    364364 * @since 1.5.0 
    365  * @uses apply_filters() Calls 'get_comment_date' hook with the formated date and the $d parameter respectively 
     365 * @uses apply_filters() Calls 'get_comment_date' hook with the formatted date and the $d parameter respectively 
    366366 * @uses $comment 
    367367 * 
    368368 * @param string $d The format of the date (defaults to user's config) 
     
    832832 * 
    833833 * The $file path is passed through a filter hook called, 'comments_template' 
    834834 * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path 
    835  * first and if it fails it will require the default comment themplate from the 
     835 * first and if it fails it will require the default comment template from the 
    836836 * default theme. If either does not exist, then the WordPress process will be 
    837837 * halted. It is advised for that reason, that the default theme is not deleted. 
    838838 * 
  • wp-includes/shortcodes.php

     
    157157 * The regular expression combines the shortcode tags in the regular expression 
    158158 * in a regex class. 
    159159 * 
    160  * The regular expresion contains 6 different sub matches to help with parsing. 
     160 * The regular expression contains 6 different sub matches to help with parsing. 
    161161 * 
    162162 * 1/6 - An extra [ or ] to allow for escaping shortcodes with double [[]] 
    163163 * 2 - The shortcode name 
     
    295295 
    296296add_filter('the_content', 'do_shortcode', 11); // AFTER wpautop() 
    297297 
    298 ?> 
    299  No newline at end of file 
     298?> 
  • wp-includes/user.php

     
    14441444 * A simpler way of inserting an user into the database. 
    14451445 * 
    14461446 * Creates a new user with just the username, password, and email. For a more 
    1447  * detail creation of a user, use wp_insert_user() to specify more infomation. 
     1447 * detail creation of a user, use wp_insert_user() to specify more information. 
    14481448 * 
    14491449 * @since 2.0.0 
    14501450 * @see wp_insert_user() More complete way to create a new user 
  • wp-includes/media.php

     
    260260} 
    261261 
    262262/** 
    263  * Calculates the new dimentions for a downsampled image. 
     263 * Calculates the new dimensions for a downsampled image. 
    264264 * 
    265265 * If either width or height are empty, no constraint is applied on 
    266266 * that dimension. 
     
    305305        $h = intval( $current_height * $ratio ); 
    306306 
    307307        // Sometimes, due to rounding, we'll end up with a result like this: 465x700 in a 177x177 box is 117x176... a pixel short 
    308         // We also have issues with recursive calls resulting in an ever-changing result. Contraining to the result of a constraint should yield the original result. 
     308        // We also have issues with recursive calls resulting in an ever-changing result. Constraining to the result of a constraint should yield the original result. 
    309309        // Thus we look for dimensions that are one pixel shy of the max value and bump them up 
    310310        if ( $did_width && $w == $max_width - 1 ) 
    311311                $w = $max_width; // Round it up 
     
    11441144         * @uses update_post_meta() 
    11451145         * 
    11461146         * @param array $attr Shortcode attributes. 
    1147          * @param string $url The URL attempting to be embeded. 
     1147         * @param string $url The URL attempting to be embedded. 
    11481148         * @return string The embed HTML on success, otherwise the original URL. 
    11491149         */ 
    11501150        function shortcode( $attr, $url = '' ) { 
     
    13721372 * @uses _wp_oembed_get_object() 
    13731373 * @uses WP_oEmbed::get_html() 
    13741374 * 
    1375  * @param string $url The URL that should be embeded. 
     1375 * @param string $url The URL that should be embedded. 
    13761376 * @param array $args Addtional arguments and parameters. 
    13771377 * @return string The original URL on failure or the embed HTML on success. 
    13781378 */ 
     
    14381438        return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr ); 
    14391439} 
    14401440 
    1441 ?> 
    1442  No newline at end of file 
     1441?> 
  • wp-includes/class-wp-xmlrpc-server.php

     
    88/** 
    99 * WordPress XMLRPC server implementation. 
    1010 * 
    11  * Implements compatability for Blogger API, MetaWeblog API, MovableType, and 
     11 * Implements compatibility for Blogger API, MetaWeblog API, MovableType, and 
    1212 * pingback. Additional WordPress API for managing comments, pages, posts, 
    1313 * options, etc. 
    1414 * 
     
    747747                        ORDER BY ID 
    748748                "); 
    749749 
    750                 // The date needs to be formated properly. 
     750                // The date needs to be formatted properly. 
    751751                $num_pages = count($page_list); 
    752752                for ( $i = 0; $i < $num_pages; $i++ ) { 
    753753                        $post_date = mysql2date('Ymd\TH:i:s', $page_list[$i]->post_date, false); 
     
    15511551         *  - username 
    15521552         *  - password 
    15531553         *  - attachment_id 
    1554          * @return array. Assocciative array containing: 
     1554         * @return array. Associative array containing: 
    15551555         *  - 'date_created_gmt' 
    15561556         *  - 'parent' 
    15571557         *  - 'link' 
     
    16611661        } 
    16621662 
    16631663        /** 
    1664           * Retrives a list of post formats used by the site 
     1664          * Retrieves a list of post formats used by the site 
    16651665          * 
    16661666          * @since 3.1 
    16671667          * 
     
    34453445                } elseif ( isset($urltest['fragment']) ) { 
    34463446                        // an #anchor is there, it's either... 
    34473447                        if ( intval($urltest['fragment']) ) { 
    3448                                 // ...an integer #XXXX (simpliest case) 
     3448                                // ...an integer #XXXX (simplest case) 
    34493449                                $post_ID = (int) $urltest['fragment']; 
    34503450                                $way = 'from the fragment (numeric)'; 
    34513451                        } elseif ( preg_match('/post-[0-9]+/',$urltest['fragment']) ) { 
  • wp-includes/class-phpass.php

     
    4949 
    5050                $this->portable_hashes = $portable_hashes; 
    5151 
    52                 $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compability reasons 
     52                $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compatibility reasons 
    5353        } 
    5454 
    5555        function get_random_bytes($count) 
  • wp-includes/cache.php

     
    99 */ 
    1010 
    1111/** 
    12  * Adds data to the cache, if the cache key doesn't aleady exist. 
     12 * Adds data to the cache, if the cache key doesn't already exist. 
    1313 * 
    1414 * @since 2.0.0 
    1515 * @uses $wp_object_cache Object Cache Class 
     
    3131 * Closes the cache. 
    3232 * 
    3333 * This function has ceased to do anything since WordPress 2.5. The 
    34  * functionality was removed along with the rest of the persistant cache. This 
     34 * functionality was removed along with the rest of the persistent cache. This 
    3535 * does not mean that plugins can't implement this function when they need to 
    3636 * make sure that the cache is cleaned up after WordPress no longer needs it. 
    3737 * 
     
    282282         * 
    283283         * @uses WP_Object_Cache::get Checks to see if the cache already has data. 
    284284         * @uses WP_Object_Cache::set Sets the data after the checking the cache 
    285          *              contents existance. 
     285         *              contents existence. 
    286286         * 
    287287         * @since 2.0.0 
    288288         * 
  • wp-includes/query.php

     
    21372137                if ( intval($q['comments_popup']) ) 
    21382138                        $q['p'] = absint($q['comments_popup']); 
    21392139 
    2140                 // If an attachment is requested by number, let it supercede any post number. 
     2140                // If an attachment is requested by number, let it supersede any post number. 
    21412141                if ( $q['attachment_id'] ) 
    21422142                        $q['p'] = absint($q['attachment_id']); 
    21432143 
     
    22882288                                if ( $q['author_name'][ count($q['author_name'])-1 ] ) { 
    22892289                                        $q['author_name'] = $q['author_name'][count($q['author_name'])-1]; // no trailing slash 
    22902290                                } else { 
    2291                                         $q['author_name'] = $q['author_name'][count($q['author_name'])-2]; // there was a trailling slash 
     2291                                        $q['author_name'] = $q['author_name'][count($q['author_name'])-2]; // there was a trailing slash 
    22922292                                } 
    22932293                        } 
    22942294                        $q['author_name'] = sanitize_title_for_query( $q['author_name'] ); 
  • wp-includes/link-template.php

     
    24152415} 
    24162416 
    24172417/** 
    2418  *  Inject rel=sortlink into head if a shortlink is defined for the current page. 
     2418 *  Inject rel=shortlink into head if a shortlink is defined for the current page. 
    24192419 * 
    24202420 *  Attached to the wp_head action. 
    24212421 * 
  • wp-includes/wp-db.php

     
    640640         * Returns an array of WordPress tables. 
    641641         * 
    642642         * Also allows for the CUSTOM_USER_TABLE and CUSTOM_USER_META_TABLE to 
    643          * override the WordPress users and usersmeta tables that would otherwise 
     643         * override the WordPress users and usermeta tables that would otherwise 
    644644         * be determined by the prefix. 
    645645         * 
    646646         * The scope argument can take one of the following: 
     
    12891289         * @param string $output Optional. one of ARRAY_A | ARRAY_N | OBJECT constants. Return an associative array (column => value, ...), 
    12901290         *      a numerically indexed array (0 => value, ...) or an object ( ->column = value ), respectively. 
    12911291         * @param int $y Optional. Row to return. Indexed from 0. 
    1292          * @return mixed Database query result in format specifed by $output or null on failure 
     1292         * @return mixed Database query result in format specified by $output or null on failure 
    12931293         */ 
    12941294        function get_row( $query = null, $output = OBJECT, $y = 0 ) { 
    12951295                $this->func_call = "\$db->get_row(\"$query\",$output,$y)"; 
  • wp-includes/formatting.php

     
    22282228 * Checks and cleans a URL. 
    22292229 * 
    22302230 * A number of characters are removed from the URL. If the URL is for displaying 
    2231  * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 
     2231 * (the default behaviour) ampersands are also replaced. The 'clean_url' filter 
    22322232 * is applied to the returned cleaned URL. 
    22332233 * 
    22342234 * @since 2.8.0 
  • wp-includes/author-template.php

     
    3838 * still use the old behavior will also pass the value from get_the_author(). 
    3939 * 
    4040 * The normal, expected behavior of this function is to echo the author and not 
    41  * return it. However, backwards compatiability has to be maintained. 
     41 * return it. However, backwards compatibility has to be maintained. 
    4242 * 
    4343 * @since 0.71 
    4444 * @see get_the_author() 
  • wp-includes/canonical.php

     
    1414 * 
    1515 * Search engines consider www.somedomain.com and somedomain.com to be two 
    1616 * different URLs when they both go to the same location. This SEO enhancement 
    17  * prevents penality for duplicate content by redirecting all incoming links to 
     17 * prevents penalty for duplicate content by redirecting all incoming links to 
    1818 * one or the other. 
    1919 * 
    2020 * Prevents redirection for feeds, trackbacks, searches, comment popup, and 
     
    175175 
    176176                                                // Create the destination url for this taxonomy 
    177177                                                $tax_url = parse_url($tax_url); 
    178                                                 if ( ! empty($tax_url['query']) ) { // Taxonomy accessable via ?taxonomy=..&term=.. or any custom qv.. 
     178                                                if ( ! empty($tax_url['query']) ) { // Taxonomy accessible via ?taxonomy=..&term=.. or any custom qv.. 
    179179                                                        parse_str($tax_url['query'], $query_vars); 
    180180                                                        $redirect['query'] = add_query_arg($query_vars, $redirect['query']); 
    181                                                 } else { // Taxonomy is accessable via a "pretty-URL" 
     181                                                } else { // Taxonomy is accessible via a "pretty-URL" 
    182182                                                        $redirect['path'] = $tax_url['path']; 
    183183                                                } 
    184184 
  • wp-includes/capabilities.php

     
    524524        } 
    525525 
    526526        /** 
    527          * Magic method for checking the existance of a certain custom field 
     527         * Magic method for checking the existence of a certain custom field 
    528528         * 
    529529         * @since 3.3.0 
    530530         */ 
     
    827827         * 
    828828         * This is useful for looking up whether the user has a specific role 
    829829         * assigned to the user. The second optional parameter can also be used to 
    830          * check for capabilities against a specfic post. 
     830         * check for capabilities against a specific post. 
    831831         * 
    832832         * @since 2.0.0 
    833833         * @access public 
  • wp-includes/class-wp.php

     
    569569         * 
    570570         * @access public 
    571571         * @param string $subject subject 
    572          * @param array  $matches data used for subsitution 
     572         * @param array  $matches data used for substitution 
    573573         * @return string 
    574574         */ 
    575575        function apply($subject, $matches) { 
  • wp-includes/class-oembed.php

     
    2828        function __construct() { 
    2929                // List out some popular sites that support oEmbed. 
    3030                // The WP_Embed class disables discovery for non-unfiltered_html users, so only providers in this array will be used for them. 
    31                 // Add to this list using the wp_oembed_add_provider() function (see it's PHPDoc for details). 
     31                // Add to this list using the wp_oembed_add_provider() function (see its PHPDoc for details). 
    3232                $this->providers = apply_filters( 'oembed_providers', array( 
    3333                        '#http://(www\.)?youtube.com/watch.*#i'         => array( 'http://www.youtube.com/oembed',            true  ), 
    3434                        'http://youtu.be/*'                             => array( 'http://www.youtube.com/oembed',            false ), 
     
    292292        return $wp_oembed; 
    293293} 
    294294 
    295 ?> 
    296  No newline at end of file 
     295?> 
  • wp-includes/deprecated.php

     
    20732073 * Checks and cleans a URL. 
    20742074 * 
    20752075 * A number of characters are removed from the URL. If the URL is for displaying 
    2076  * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 
     2076 * (the default behaviour) ampersands are also replaced. The 'clean_url' filter 
    20772077 * is applied to the returned cleaned URL. 
    20782078 * 
    20792079 * @since 1.2.0 
  • wp-includes/pluggable.php

     
    10861086        $comment = get_comment($comment_id); 
    10871087        $post = get_post($comment->comment_post_ID); 
    10881088        $user = get_userdata( $post->post_author ); 
    1089         // Send to the administation and to the post author if the author can modify the comment. 
     1089        // Send to the administration and to the post author if the author can modify the comment. 
    10901090        $email_to = array( get_option('admin_email') ); 
    10911091        if ( user_can($user->ID, 'edit_comment', $comment_id) && !empty($user->user_email) && ( get_option('admin_email') != $user->user_email) ) 
    10921092                $email_to[] = $user->user_email; 
     
    14321432 * 
    14331433 * Maintains compatibility between old version and the new cookie authentication 
    14341434 * protocol using PHPass library. The $hash parameter is the encrypted password 
    1435  * and the function compares the plain text password when encypted similarly 
     1435 * and the function compares the plain text password when encrypted similarly 
    14361436 * against the already encrypted password to see if they match. 
    14371437 * 
    14381438 * For integration with other applications, this function can be overwritten to 
  • wp-includes/widgets.php

     
    139139                } 
    140140 
    141141                if ( $empty ) { 
    142                         // If there are none, we register the widget's existance with a 
     142                        // If there are none, we register the widget's existence with a 
    143143                        // generic template 
    144144                        $this->_set(1); 
    145145                        $this->_register_one(); 
     
    297297                        $settings = array(); 
    298298 
    299299                if ( !array_key_exists('_multiwidget', $settings) ) { 
    300                         // old format, conver if single widget 
     300                        // old format, convert if single widget 
    301301                        $settings = wp_convert_widget_settings($this->id_base, $this->option_name, $settings); 
    302302                } 
    303303 
     
    461461 * The default for the name is "Sidebar #", with '#' being replaced with the 
    462462 * number the sidebar is currently when greater than one. If first sidebar, the 
    463463 * name will be just "Sidebar". The default for id is "sidebar-" followed by the 
    464  * number the sidebar creation is currently at. If the id is provided, and mutliple 
     464 * number the sidebar creation is currently at. If the id is provided, and multiple 
    465465 * sidebars are being defined, the id will have "-2" appended, and so on. 
    466466 * 
    467467 * @since 2.2.0 
  • wp-includes/script-loader.php

     
    159159        if ( empty($max_upload_size) ) 
    160160                $max_upload_size = __('not configured'); 
    161161 
    162         // error messagoe for both plupload and swfupload 
     162        // error message for both plupload and swfupload 
    163163        $uploader_l10n = array( 
    164164                'queue_limit_exceeded' => __('You have attempted to queue too many files.'), 
    165165                'file_exceeds_size_limit' => __('This file exceeds the maximum upload size for this site.'), 
     
    439439 * 
    440440 * @since 2.3.1 
    441441 * 
    442  * @param array $js_array JavaScript scripst array 
     442 * @param array $js_array JavaScript scripts array 
    443443 * @return array Reordered array, if needed. 
    444444 */ 
    445445function wp_prototype_before_jquery( $js_array ) { 
  • wp-includes/http.php

     
    130130 * 
    131131 * @param array $response 
    132132 * @param string $header Header name to retrieve value from. 
    133  * @return string The header value. Empty string on if incorrect parameter given, or if the header doesnt exist. 
     133 * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist. 
    134134 */ 
    135135function wp_remote_retrieve_header(&$response, $header) { 
    136136        if ( is_wp_error($response) || ! isset($response['headers']) || ! is_array($response['headers'])) 
  • wp-includes/class-wp-error.php

     
    7070         * @since 2.1.0 
    7171         * @access public 
    7272         * 
    73          * @return array List of error codes, if avaiable. 
     73         * @return array List of error codes, if available. 
    7474         */ 
    7575        function get_error_codes() { 
    7676                if ( empty($this->errors) ) 
     
    102102         * @since 2.1.0 
    103103         * 
    104104         * @param string|int $code Optional. Retrieve messages matching code, if exists. 
    105          * @return array Error strings on success, or empty array on failure (if using codee parameter). 
     105         * @return array Error strings on success, or empty array on failure (if using code parameter). 
    106106         */ 
    107107        function get_error_messages($code = '') { 
    108108                // Return all messages if no code specified. 
     
    209209        return false; 
    210210} 
    211211 
    212 ?> 
    213  No newline at end of file 
     212?>