Plugin Directory

Changeset 787634


Ignore:
Timestamp:
10/14/2013 02:49:04 PM (12 years ago)
Author:
lessbloat
Message:

Prettier associative arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dashboard/trunk/activity.php

    r787085 r787634  
    3737    $future_posts = dash_show_published_posts( array(
    3838        'display' => 2,
    39         'max' => 5,
    40         'status' => 'future',
    41         'order' => 'ASC',
    42         'title' => __( 'Publishing Soon' ),
    43         'id' => 'future-posts',
     39        'max'     => 5,
     40        'status'  => 'future',
     41        'order'   => 'ASC',
     42        'title'   => __( 'Publishing Soon' ),
     43        'id'      => 'future-posts',
    4444    ) );
    4545    $recent_posts = dash_show_published_posts( array(
    4646        'display' => 2,
    47         'max' => 5,
    48         'status' => 'publish',
    49         'order' => 'DESC',
    50         'title' => __( 'Recently Published' ),
    51         'id' => 'published-posts',
     47        'max'     => 5,
     48        'status'  => 'publish',
     49        'order'   => 'DESC',
     50        'title'   => __( 'Recently Published' ),
     51        'id'      => 'published-posts',
    5252    ) );
    5353   
     
    7979
    8080    $posts = new WP_Query(array(
    81         'post_type' => 'post',
    82         'post_status' => $args['status'],
    83         'orderby' => 'date',
    84         'order' => $args['order'],
     81        'post_type'      => 'post',
     82        'post_status'    => $args['status'],
     83        'orderby'        => 'date',
     84        'order'          => $args['order'],
    8585        'posts_per_page' => intval( $args['max'] )
    8686    ));
Note: See TracChangeset for help on using the changeset viewer.