Make WordPress Core

Changeset 13089


Ignore:
Timestamp:
02/13/2010 06:08:15 AM (16 years ago)
Author:
dd32
Message:

Initialise Variables, Whitespace cleanup, Remove unused variables, Cast start_of_week option to int in sanitization.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r12789 r13089  
    465465        $this->maintenance_mode(true);
    466466
     467        $results = array();
     468
    467469        $all = count($plugins);
    468470        $i = 1;
  • trunk/wp-includes/formatting.php

    r13076 r13089  
    13751375 */
    13761376function wp_rel_nofollow( $text ) {
    1377     global $wpdb;
    13781377    // This is a pre save filter, so text is already escaped.
    13791378    $text = stripslashes($text);
     
    24712470        case 'thread_comments_depth':
    24722471        case 'users_can_register':
     2472        case 'start_of_week':
    24732473            $value = absint( $value );
    24742474            break;
  • trunk/wp-includes/query.php

    r13052 r13089  
    23662366                    if ( 'publish' != $sticky_post->post_status )
    23672367                        continue;
    2368                         array_splice($this->posts, $sticky_offset, 0, array($sticky_post));
    2369                         $sticky_offset++;
     2368                    array_splice($this->posts, $sticky_offset, 0, array($sticky_post));
     2369                    $sticky_offset++;
    23702370                }
    23712371            }
Note: See TracChangeset for help on using the changeset viewer.