🔞 ADULT: Changeset/ - HD Photos!

Changeset 1040931


Ignore:
Timestamp:
12/09/2014 02:27:55 AM (11 years ago)
Author:
mitchoyoshitaka
Message:

rm support for WP < 3.3; bump to 0.7

Location:
quick-admin-color-scheme-picker/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quick-admin-color-scheme-picker/trunk/quick-admin-color-scheme-picker.php

    r606737 r1040931  
    77Donate link: http://tinyurl.com/donatetomitcho
    88License: GPLv2 or later
    9 Version: 0.6
     9Version: 0.7
    1010*/
    1111
    12 global $wp_version;
    13 if ( version_compare( $wp_version, '3.3-beta2' ) > 0 )
    14     add_action('admin_bar_menu', 'qacsp_menu', 11);
    15 else
    16     add_action('admin_user_info_links', 'qacsp_link', 10, 2);
     12add_action('admin_bar_menu', 'qacsp_menu', 11);
    1713
    1814function qacsp_menu( $wp_admin_bar ) {
     
    2824
    2925    foreach ( _qacsp_get_links( $user->ID ) as $linkdata ) {
    30         $wp_admin_bar->add_menu(array(
     26        $wp_admin_bar->add_node(array(
    3127            'id' => 'admin-color-' . $linkdata['color'],
    3228            'title' => $linkdata['title'],
     
    3733        ));
    3834    }
    39 }
    40 
    41 function qacsp_link( $links, $user ) {
    42 
    43     if ( !is_admin() )
    44         return;
    45 
    46     $colorlinks = array();
    47     foreach ( _qacsp_get_links( $user->ID ) as $linkdata ) {
    48         $colorlinks[] = '<a href="' . esc_url( $linkdata['href'] ) . '">' . $linkdata['title'] . '</a>';
    49     }
    50 
    51     // add colors after the "your profile" link, which has key 5.
    52     $links = array_merge(array_splice($links, 0, array_search(5,$links) + 1), $colorlinks, array_splice($links, array_search(5,$links)));
    53 
    54     return $links;
    5535}
    5636
  • quick-admin-color-scheme-picker/trunk/readme.txt

    r606737 r1040931  
    11=== Quick admin color scheme picker ===
    2 Contributors: mitchoyoshitaka
     2Contributors: mitchoyoshitaka, nacin, darylkoop
    33Author: mitcho (Michael 芳貴 Erlewine)
    44Author URI: http://mitcho.com/
    55Donate link: https://tinyurl.com/donatetomitcho
    6 Tags: admin color, UI, color, Sara Cannon
    7 Requires at least: 3.2
    8 Tested up to: 3.5
    9 Stable tag: 0.6
     6Tags: admin, admin color, UI, color, color scheme, customization, Sara Cannon
     7Requires at least: 3.3
     8Tested up to: 4.0.1
     9Stable tag: 0.7
    1010
    1111Lets you quickly switch between admin color schemes from the "howdy menu." Happy Birthday Sara Cannon!
     12
     13[Contribute to development on GitHub.](https://github.com/mitcho/quick-admin-color-scheme-picker)
    1214
    1315== Description ==
     
    2123
    2224== Changelog ==
     25
     26= 0.7 =
     27* Code cleanup; rm support for WP < 3.3
    2328
    2429= 0.6 =
Note: See TracChangeset for help on using the changeset viewer.