Make WordPress Core

Changeset 20000


Ignore:
Timestamp:
02/27/2012 07:46:52 PM (13 years ago)
Author:
ryan
Message:

Pinking shears 6-20000

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/theme.dev.js

    r19971 r20000  
    107107            if ( $('.tablenav-pages').length )
    108108                this.pollInterval =
    109                     setInterval( function() { 
     109                    setInterval( function() {
    110110                        return self.poll();
    111111                    }, this.scrollPollingDelay );
  • trunk/wp-admin/js/utils.dev.js

    r19954 r20000  
    3232     * Get a multi-values cookie.
    3333     * Returns a JS object with the name: 'value' pairs.
    34      */         
     34     */
    3535    getHash : function(name) {
    3636        var all = this.get(name), ret;
     
    5050     *
    5151     * 'values_obj' is the JS object that is stored. It is encoded as URI in wpCookies.set().
    52      */         
     52     */
    5353    setHash : function(name, values_obj, expires, path, domain, secure) {
    5454        var str = '';
     
    6363    /**
    6464     * Get a cookie.
    65      */     
     65     */
    6666    get : function(name) {
    6767        var cookie = document.cookie, e, p = name + "=", b;
     
    9595     * The 'expires' arg can be either a JS Date() object set to the expiration date (back-compat)
    9696     * or the number of seconds until expiration
    97      */     
     97     */
    9898    set : function(name, value, expires, path, domain, secure) {
    9999        var d = new Date();
     
    119119     *
    120120     * This is done by setting it to an empty value and setting the expiration time in the past.
    121      */     
     121     */
    122122    remove : function(name, path) {
    123123        this.set(name, '', -1000, path);
  • trunk/wp-app.php

    r19935 r20000  
    411411        $post_excerpt = '';
    412412        $pubtimes     = '';
    413        
     413
    414414        if ( isset( $entry->title ) && is_array( $entry->title ) && !empty( $entry->title[1] ) )
    415415            $post_title = (string) $entry->title[1];
     
    420420        if ( !empty( $entry->published ) )
    421421            $pubtimes = (string) $entry->published;
    422        
     422
    423423        $pubtimes = $this->get_publish_time( $pubtimes );
    424424
  • trunk/wp-includes/class-wp-customize-setting.php

    r19995 r20000  
    77 * @since 3.4.0
    88 */
    9  
     9
    1010class WP_Customize_Setting {
    1111    public $id;
     
    9999     *
    100100     * @since 3.4.0
    101      * 
     101     *
    102102     * @param mixed Old value.
    103103     * @return mixed New or old value.
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r19935 r20000  
    638638
    639639        $update = false;
    640         if ( ! empty( $post_data[ 'ID' ] ) ) 
    641             $update = true; 
     640        if ( ! empty( $post_data[ 'ID' ] ) )
     641            $update = true;
    642642
    643643        if ( $update ) {
     
    698698        if ( ! empty( $post_data['post_date_gmt'] ) ) {
    699699            // 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';
    701701        } elseif ( ! empty( $post_data['post_date'] ) ) {
    702702            $dateCreated = $post_data['post_date']->getIso();
     
    32023202
    32033203        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'];
    32053205
    32063206        $post_author = $postdata['post_author'];
  • trunk/wp-includes/class.wp-scripts.php

    r19872 r20000  
    3535            $this->init();
    3636        else
    37             add_action( 'init', array( $this, 'init' ), 0 ); 
     37            add_action( 'init', array( $this, 'init' ), 0 );
    3838    }
    3939
  • trunk/wp-includes/comment.php

    r19910 r20000  
    570570}
    571571
    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 *
    576576 * @param object $comment Comment object.
    577577 * @param object $user Comment author's object.
    578578 *
    579579 * @since 3.4.0
    580  */ 
    581 function wp_set_comment_cookies($comment, $user) { 
     580 */
     581function wp_set_comment_cookies($comment, $user) {
    582582    if ( $user->ID )
    583583        return;
     
    587587    setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
    588588    setcookie('comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN);
    589 } 
     589}
    590590
    591591/**
  • trunk/wp-includes/deprecated.php

    r19935 r20000  
    28712871
    28722872/**
    2873  * Open the file handle for debugging. 
     2873 * Open the file handle for debugging.
    28742874 *
    28752875 * @since 0.71
  • trunk/wp-includes/functions.php

    r19974 r20000  
    2121 * @param string $format Format of the date to return.
    2222 * @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.
    2424 * @return string|int Formatted date string, or Unix timestamp.
    2525 */
  • trunk/wp-includes/link-template.php

    r19949 r20000  
    18701870
    18711871    if ( 'relative' == $scheme )
    1872         $url = preg_replace( '#^.+://[^/]*#', '', $url ); 
     1872        $url = preg_replace( '#^.+://[^/]*#', '', $url );
    18731873    elseif ( 'http' != $scheme )
    18741874        $url = str_replace( 'http://', "$scheme://", $url );
     
    19351935
    19361936    if ( 'relative' == $scheme )
    1937         $url = preg_replace( '#^.+://[^/]*#', '', $url ); 
     1937        $url = preg_replace( '#^.+://[^/]*#', '', $url );
    19381938    elseif ( 'http' != $scheme )
    19391939        $url = str_replace( 'http://', "{$scheme}://", $url );
  • trunk/wp-includes/rewrite.php

    r19810 r20000  
    640640     * Now it tells {@link WP::parse_request()} to check if a URL matching the
    641641     * page permastruct is actually a page before accepting it.
    642      * 
     642     *
    643643     * @link http://core.trac.wordpress.org/ticket/16687
    644644     * @see WP_Rewrite::init()
  • trunk/wp-includes/update.php

    r19712 r20000  
    164164            $timeout = 43200; // 12 hours
    165165    }
    166    
     166
    167167    $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
    168168
     
    276276            $timeout = 43200; // 12 hours
    277277    }
    278    
     278
    279279    $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked );
    280280
Note: See TracChangeset for help on using the changeset viewer.