Changeset 18633
- Timestamp:
- 09/03/2011 04:02:41 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/author-template.php
r18268 r18633 39 39 * 40 40 * The normal, expected behavior of this function is to echo the author and not 41 * return it. However, backwards compati ability has to be maintained.41 * return it. However, backwards compatibility has to be maintained. 42 42 * 43 43 * @since 0.71 -
trunk/wp-includes/cache.php
r18580 r18633 10 10 11 11 /** 12 * Adds data to the cache, if the cache key doesn't al eady exist.12 * Adds data to the cache, if the cache key doesn't already exist. 13 13 * 14 14 * @since 2.0.0 … … 32 32 * 33 33 * This function has ceased to do anything since WordPress 2.5. The 34 * functionality was removed along with the rest of the persist ant cache. This34 * functionality was removed along with the rest of the persistent cache. This 35 35 * does not mean that plugins can't implement this function when they need to 36 36 * make sure that the cache is cleaned up after WordPress no longer needs it. … … 283 283 * @uses WP_Object_Cache::get Checks to see if the cache already has data. 284 284 * @uses WP_Object_Cache::set Sets the data after the checking the cache 285 * contents exist ance.285 * contents existence. 286 286 * 287 287 * @since 2.0.0 -
trunk/wp-includes/canonical.php
r18540 r18633 15 15 * Search engines consider www.somedomain.com and somedomain.com to be two 16 16 * different URLs when they both go to the same location. This SEO enhancement 17 * prevents penal ity for duplicate content by redirecting all incoming links to17 * prevents penalty for duplicate content by redirecting all incoming links to 18 18 * one or the other. 19 19 * … … 176 176 // Create the destination url for this taxonomy 177 177 $tax_url = parse_url($tax_url); 178 if ( ! empty($tax_url['query']) ) { // Taxonomy access able via ?taxonomy=..&term=.. or any custom qv..178 if ( ! empty($tax_url['query']) ) { // Taxonomy accessible via ?taxonomy=..&term=.. or any custom qv.. 179 179 parse_str($tax_url['query'], $query_vars); 180 180 $redirect['query'] = add_query_arg($query_vars, $redirect['query']); 181 } else { // Taxonomy is access able via a "pretty-URL"181 } else { // Taxonomy is accessible via a "pretty-URL" 182 182 $redirect['path'] = $tax_url['path']; 183 183 } -
trunk/wp-includes/capabilities.php
r18598 r18633 525 525 526 526 /** 527 * Magic method for checking the exist ance of a certain custom field527 * Magic method for checking the existence of a certain custom field 528 528 * 529 529 * @since 3.3.0 … … 828 828 * This is useful for looking up whether the user has a specific role 829 829 * assigned to the user. The second optional parameter can also be used to 830 * check for capabilities against a spec fic post.830 * check for capabilities against a specific post. 831 831 * 832 832 * @since 2.0.0 -
trunk/wp-includes/class-http.php
r18457 r18633 223 223 * Dispatches a HTTP request to a supporting transport. 224 224 * 225 * Tests each transport in order to find a transport which matches the request argu ements.225 * Tests each transport in order to find a transport which matches the request arguments. 226 226 * Also caches the transport instance to be used later. 227 227 * … … 632 632 $endDelay = time(); 633 633 634 // If the delay is greater than the timeout then fsockopen should 't be used, because it will634 // If the delay is greater than the timeout then fsockopen shouldn't be used, because it will 635 635 // cause a long delay. 636 636 $elapseDelay = ($endDelay-$startDelay) > $r['timeout']; … … 916 916 $processedHeaders = WP_Http::processHeaders($meta['wrapper_data']); 917 917 918 // Streams does not provide an error code which we can use to see why the request stream stop ed.918 // Streams does not provide an error code which we can use to see why the request stream stopped. 919 919 // We can however test to see if a location header is present and return based on that. 920 920 if ( isset($processedHeaders['headers']['location']) && 0 !== $args['_redirection'] ) … … 1032 1032 1033 1033 // CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since 1034 // a value of 0 will allow an u limited timeout.1034 // a value of 0 will allow an unlimited timeout. 1035 1035 $timeout = (int) ceil( $r['timeout'] ); 1036 1036 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); … … 1680 1680 1681 1681 /** 1682 * What enco nding 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. 1683 1683 * 1684 1684 * @since 2.8 -
trunk/wp-includes/class-oembed.php
r17995 r18633 29 29 // List out some popular sites that support oEmbed. 30 30 // 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). 32 32 $this->providers = apply_filters( 'oembed_providers', array( 33 33 '#http://(www\.)?youtube.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), -
trunk/wp-includes/class-phpass.php
r17678 r18633 50 50 $this->portable_hashes = $portable_hashes; 51 51 52 $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compa bility reasons52 $this->random_state = microtime() . uniqid(rand(), TRUE); // removed getmypid() for compatibility reasons 53 53 } 54 54 -
trunk/wp-includes/class-wp-error.php
r17771 r18633 71 71 * @access public 72 72 * 73 * @return array List of error codes, if avai able.73 * @return array List of error codes, if available. 74 74 */ 75 75 function get_error_codes() { … … 103 103 * 104 104 * @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 code eparameter).105 * @return array Error strings on success, or empty array on failure (if using code parameter). 106 106 */ 107 107 function get_error_messages($code = '') { -
trunk/wp-includes/class-wp-xmlrpc-server.php
r18584 r18633 9 9 * WordPress XMLRPC server implementation. 10 10 * 11 * Implements compat ability for Blogger API, MetaWeblog API, MovableType, and11 * Implements compatibility for Blogger API, MetaWeblog API, MovableType, and 12 12 * pingback. Additional WordPress API for managing comments, pages, posts, 13 13 * options, etc. … … 748 748 "); 749 749 750 // The date needs to be format ed properly.750 // The date needs to be formatted properly. 751 751 $num_pages = count($page_list); 752 752 for ( $i = 0; $i < $num_pages; $i++ ) { … … 1552 1552 * - password 1553 1553 * - attachment_id 1554 * @return array. Assoc ciative array containing:1554 * @return array. Associative array containing: 1555 1555 * - 'date_created_gmt' 1556 1556 * - 'parent' … … 1662 1662 1663 1663 /** 1664 * Retri ves a list of post formats used by the site1664 * Retrieves a list of post formats used by the site 1665 1665 * 1666 1666 * @since 3.1 … … 3446 3446 // an #anchor is there, it's either... 3447 3447 if ( intval($urltest['fragment']) ) { 3448 // ...an integer #XXXX (simpl iest case)3448 // ...an integer #XXXX (simplest case) 3449 3449 $post_ID = (int) $urltest['fragment']; 3450 3450 $way = 'from the fragment (numeric)'; -
trunk/wp-includes/class-wp.php
r18541 r18633 570 570 * @access public 571 571 * @param string $subject subject 572 * @param array $matches data used for subs itution572 * @param array $matches data used for substitution 573 573 * @return string 574 574 */ -
trunk/wp-includes/comment-template.php
r17812 r18633 363 363 * 364 364 * @since 1.5.0 365 * @uses apply_filters() Calls 'get_comment_date' hook with the format ed date and the $d parameter respectively365 * @uses apply_filters() Calls 'get_comment_date' hook with the formatted date and the $d parameter respectively 366 366 * @uses $comment 367 367 * … … 833 833 * The $file path is passed through a filter hook called, 'comments_template' 834 834 * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path 835 * first and if it fails it will require the default comment t hemplate from the835 * first and if it fails it will require the default comment template from the 836 836 * default theme. If either does not exist, then the WordPress process will be 837 837 * halted. It is advised for that reason, that the default theme is not deleted. -
trunk/wp-includes/deprecated.php
r18597 r18633 2074 2074 * 2075 2075 * A number of characters are removed from the URL. If the URL is for displaying 2076 * (the default behaviour) ampers tands are also replaced. The 'clean_url' filter2076 * (the default behaviour) ampersands are also replaced. The 'clean_url' filter 2077 2077 * is applied to the returned cleaned URL. 2078 2078 * -
trunk/wp-includes/formatting.php
r18585 r18633 2229 2229 * 2230 2230 * A number of characters are removed from the URL. If the URL is for displaying 2231 * (the default behaviour) ampers tands are also replaced. The 'clean_url' filter2231 * (the default behaviour) ampersands are also replaced. The 'clean_url' filter 2232 2232 * is applied to the returned cleaned URL. 2233 2233 * -
trunk/wp-includes/functions.php
r18606 r18633 21 21 * @param string $mysqlstring Time from mysql DATETIME field. 22 22 * @param bool $translate Optional. Default is true. Will switch format to locale. 23 * @return string Date format ed by $dateformatstring or locale (if available).23 * @return string Date formatted by $dateformatstring or locale (if available). 24 24 */ 25 25 function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) { … … 3587 3587 * which is the case for PHP 4.X, then we cannot easily update the xml configuration file, 3588 3588 * 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 depr icated and for IIS it3589 * This is not a big issue because PHP 4.X is going to be deprecated and for IIS it 3590 3590 * is recommended to use PHP 5.X NTS. 3591 3591 * Next we check if the URL Rewrite Module 1.1 is loaded and enabled for the web site. When -
trunk/wp-includes/http.php
r17915 r18633 131 131 * @param array $response 132 132 * @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 doesn t exist.133 * @return string The header value. Empty string on if incorrect parameter given, or if the header doesn't exist. 134 134 */ 135 135 function wp_remote_retrieve_header(&$response, $header) {
Note: See TracChangeset
for help on using the changeset viewer.