Making WordPress.org

Changeset 1576


Ignore:
Timestamp:
05/15/2015 01:14:47 AM (9 years ago)
Author:
iandunn
Message:

WordCamp Organizer Nags: Move the survey widget to the top of the side column.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-nags/wordcamp-organizer-nags.php

    r1575 r1576  
    2727     */
    2828    public function create_dashboard_widgets() {
     29        global $wp_meta_boxes;
     30
    2931        // The survey expires 2015-05-23 at 11:45pm EST
    3032        if ( time() < 1432350000 ) {
     
    3436                array( $this, 'improving_tools_survey' )
    3537            );
     38
     39            // Move it to the top of the side column, so it'll be seen better
     40            $wp_meta_boxes['dashboard']['side']['core'] = array_merge(
     41                array( 'improving_tools_survey' => $wp_meta_boxes['dashboard']['normal']['core']['improving_tools_survey'] ),
     42                $wp_meta_boxes['dashboard']['side']['core']
     43            );
     44            unset( $wp_meta_boxes['dashboard']['normal']['core']['improving_tools_survey'] );
    3645        }
    3746    }
Note: See TracChangeset for help on using the changeset viewer.