Changeset 20000
- Timestamp:
- 02/27/2012 07:46:52 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/theme.dev.js
r19971 r20000 107 107 if ( $('.tablenav-pages').length ) 108 108 this.pollInterval = 109 setInterval( function() { 109 setInterval( function() { 110 110 return self.poll(); 111 111 }, this.scrollPollingDelay ); -
trunk/wp-admin/js/utils.dev.js
r19954 r20000 32 32 * Get a multi-values cookie. 33 33 * Returns a JS object with the name: 'value' pairs. 34 */ 34 */ 35 35 getHash : function(name) { 36 36 var all = this.get(name), ret; … … 50 50 * 51 51 * 'values_obj' is the JS object that is stored. It is encoded as URI in wpCookies.set(). 52 */ 52 */ 53 53 setHash : function(name, values_obj, expires, path, domain, secure) { 54 54 var str = ''; … … 63 63 /** 64 64 * Get a cookie. 65 */ 65 */ 66 66 get : function(name) { 67 67 var cookie = document.cookie, e, p = name + "=", b; … … 95 95 * The 'expires' arg can be either a JS Date() object set to the expiration date (back-compat) 96 96 * or the number of seconds until expiration 97 */ 97 */ 98 98 set : function(name, value, expires, path, domain, secure) { 99 99 var d = new Date(); … … 119 119 * 120 120 * This is done by setting it to an empty value and setting the expiration time in the past. 121 */ 121 */ 122 122 remove : function(name, path) { 123 123 this.set(name, '', -1000, path); -
trunk/wp-app.php
r19935 r20000 411 411 $post_excerpt = ''; 412 412 $pubtimes = ''; 413 413 414 414 if ( isset( $entry->title ) && is_array( $entry->title ) && !empty( $entry->title[1] ) ) 415 415 $post_title = (string) $entry->title[1]; … … 420 420 if ( !empty( $entry->published ) ) 421 421 $pubtimes = (string) $entry->published; 422 422 423 423 $pubtimes = $this->get_publish_time( $pubtimes ); 424 424 -
trunk/wp-includes/class-wp-customize-setting.php
r19995 r20000 7 7 * @since 3.4.0 8 8 */ 9 9 10 10 class WP_Customize_Setting { 11 11 public $id; … … 99 99 * 100 100 * @since 3.4.0 101 * 101 * 102 102 * @param mixed Old value. 103 103 * @return mixed New or old value. -
trunk/wp-includes/class-wp-xmlrpc-server.php
r19935 r20000 638 638 639 639 $update = false; 640 if ( ! empty( $post_data[ 'ID' ] ) ) 641 $update = true; 640 if ( ! empty( $post_data[ 'ID' ] ) ) 641 $update = true; 642 642 643 643 if ( $update ) { … … 698 698 if ( ! empty( $post_data['post_date_gmt'] ) ) { 699 699 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 700 $dateCreated = str_replace( 'Z', '', $post_data['post_date_gmt']->getIso() ) . 'Z'; 700 $dateCreated = str_replace( 'Z', '', $post_data['post_date_gmt']->getIso() ) . 'Z'; 701 701 } elseif ( ! empty( $post_data['post_date'] ) ) { 702 702 $dateCreated = $post_data['post_date']->getIso(); … … 3202 3202 3203 3203 if ( ! empty( $content_struct['wp_page_template'] ) && 'page' == $post_type ) 3204 $page_template = $content_struct['wp_page_template']; 3204 $page_template = $content_struct['wp_page_template']; 3205 3205 3206 3206 $post_author = $postdata['post_author']; -
trunk/wp-includes/class.wp-scripts.php
r19872 r20000 35 35 $this->init(); 36 36 else 37 add_action( 'init', array( $this, 'init' ), 0 ); 37 add_action( 'init', array( $this, 'init' ), 0 ); 38 38 } 39 39 -
trunk/wp-includes/comment.php
r19910 r20000 570 570 } 571 571 572 /** 573 * Sets the cookies used to store an unauthenticated commentator's identity. Typically used 574 * to recall previous comments by this commentator that are still held in moderation. 575 * 572 /** 573 * Sets the cookies used to store an unauthenticated commentator's identity. Typically used 574 * to recall previous comments by this commentator that are still held in moderation. 575 * 576 576 * @param object $comment Comment object. 577 577 * @param object $user Comment author's object. 578 578 * 579 579 * @since 3.4.0 580 */ 581 function wp_set_comment_cookies($comment, $user) { 580 */ 581 function wp_set_comment_cookies($comment, $user) { 582 582 if ( $user->ID ) 583 583 return; … … 587 587 setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); 588 588 setcookie('comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); 589 } 589 } 590 590 591 591 /** -
trunk/wp-includes/deprecated.php
r19935 r20000 2871 2871 2872 2872 /** 2873 * Open the file handle for debugging. 2873 * Open the file handle for debugging. 2874 2874 * 2875 2875 * @since 0.71 -
trunk/wp-includes/functions.php
r19974 r20000 21 21 * @param string $format Format of the date to return. 22 22 * @param string $date Date string to convert. 23 * @param bool $translate Whether the return date should be translated. Default is true. 23 * @param bool $translate Whether the return date should be translated. Default is true. 24 24 * @return string|int Formatted date string, or Unix timestamp. 25 25 */ -
trunk/wp-includes/link-template.php
r19949 r20000 1870 1870 1871 1871 if ( 'relative' == $scheme ) 1872 $url = preg_replace( '#^.+://[^/]*#', '', $url ); 1872 $url = preg_replace( '#^.+://[^/]*#', '', $url ); 1873 1873 elseif ( 'http' != $scheme ) 1874 1874 $url = str_replace( 'http://', "$scheme://", $url ); … … 1935 1935 1936 1936 if ( 'relative' == $scheme ) 1937 $url = preg_replace( '#^.+://[^/]*#', '', $url ); 1937 $url = preg_replace( '#^.+://[^/]*#', '', $url ); 1938 1938 elseif ( 'http' != $scheme ) 1939 1939 $url = str_replace( 'http://', "{$scheme}://", $url ); -
trunk/wp-includes/rewrite.php
r19810 r20000 640 640 * Now it tells {@link WP::parse_request()} to check if a URL matching the 641 641 * page permastruct is actually a page before accepting it. 642 * 642 * 643 643 * @link http://core.trac.wordpress.org/ticket/16687 644 644 * @see WP_Rewrite::init() -
trunk/wp-includes/update.php
r19712 r20000 164 164 $timeout = 43200; // 12 hours 165 165 } 166 166 167 167 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 168 168 … … 276 276 $timeout = 43200; // 12 hours 277 277 } 278 278 279 279 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked ); 280 280
Note: See TracChangeset
for help on using the changeset viewer.