Changeset 357844
- Timestamp:
- 03/09/2011 08:03:33 PM (15 years ago)
- Location:
- admin-customization
- Files:
-
- 2 edited
-
tags/1.2/core.php (modified) (3 diffs)
-
trunk/core.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin-customization/tags/1.2/core.php
r357682 r357844 6 6 7 7 self::$options = $options; 8 add_action('wp_dashboard_setup', array( __CLASS__, 'ac_dashboard_setup'), 99); 9 add_action('admin_head', array( __CLASS__, 'ac_admin_head_setup') ); 10 add_action('login_head', array( __CLASS__, 'ac_login_head_setup') ); 11 add_action('admin_init', array( __CLASS__, 'ac_remove_update_notices') ); 12 add_action('admin_menu', array( __CLASS__, 'ac_remove_plugin_update_count') ); 13 add_filter('admin_user_info_links', array( __CLASS__, 'ac_redirect_on_logout') ); 8 add_action( 'wp_dashboard_setup', array( __CLASS__, 'ac_dashboard_setup' ), 99); 9 add_action( 'admin_head', array( __CLASS__, 'ac_admin_head_setup' ) ); 10 add_action( 'admin_init', array( __CLASS__, 'ac_remove_update_notices' ) ); 11 add_action( 'admin_menu', array( __CLASS__, 'ac_remove_plugin_update_count' ) ); 12 add_filter( 'admin_user_info_links', array( __CLASS__, 'ac_redirect_on_logout' ) ); 13 add_action( 'login_head', array( __CLASS__, 'ac_login_head_setup' ) ); 14 add_filter( 'login_headerurl', array( __CLASS__, 'ac_login_url' ) ); 15 add_filter( 'login_headertitle', array( __CLASS__, 'ac_login_title' ) ); 14 16 } 15 17 … … 82 84 } 83 85 #favorite-actions { 84 margin-top: '. floor ( ( $adjusted_head_height - 22 ) / 2 ) .'px; 86 margin-top: ' . floor ( ( $adjusted_head_height - 22 ) / 2 ) . 'px; 87 } 88 #wphead #privacy-on-link { 89 line-height: ' . $logo_size[1] . 'px; 85 90 }'; 91 92 86 93 } 87 94 … … 118 125 } 119 126 } 127 128 function ac_login_url() { 129 echo bloginfo( 'url' ); 130 } 131 132 function ac_login_title() { 133 echo get_option( 'blogname' ); 134 } 120 135 121 136 function ac_dashboard_setup() { -
admin-customization/trunk/core.php
r357681 r357844 6 6 7 7 self::$options = $options; 8 add_action('wp_dashboard_setup', array( __CLASS__, 'ac_dashboard_setup'), 99); 9 add_action('admin_head', array( __CLASS__, 'ac_admin_head_setup') ); 10 add_action('login_head', array( __CLASS__, 'ac_login_head_setup') ); 11 add_action('admin_init', array( __CLASS__, 'ac_remove_update_notices') ); 12 add_action('admin_menu', array( __CLASS__, 'ac_remove_plugin_update_count') ); 13 add_filter('admin_user_info_links', array( __CLASS__, 'ac_redirect_on_logout') ); 8 add_action( 'wp_dashboard_setup', array( __CLASS__, 'ac_dashboard_setup' ), 99); 9 add_action( 'admin_head', array( __CLASS__, 'ac_admin_head_setup' ) ); 10 add_action( 'admin_init', array( __CLASS__, 'ac_remove_update_notices' ) ); 11 add_action( 'admin_menu', array( __CLASS__, 'ac_remove_plugin_update_count' ) ); 12 add_filter( 'admin_user_info_links', array( __CLASS__, 'ac_redirect_on_logout' ) ); 13 add_action( 'login_head', array( __CLASS__, 'ac_login_head_setup' ) ); 14 add_filter( 'login_headerurl', array( __CLASS__, 'ac_login_url' ) ); 15 add_filter( 'login_headertitle', array( __CLASS__, 'ac_login_title' ) ); 14 16 } 15 17 … … 82 84 } 83 85 #favorite-actions { 84 margin-top: '. floor ( ( $adjusted_head_height - 22 ) / 2 ) .'px; 86 margin-top: ' . floor ( ( $adjusted_head_height - 22 ) / 2 ) . 'px; 87 } 88 #wphead #privacy-on-link { 89 line-height: ' . $logo_size[1] . 'px; 85 90 }'; 91 92 86 93 } 87 94 … … 118 125 } 119 126 } 127 128 function ac_login_url() { 129 echo bloginfo( 'url' ); 130 } 131 132 function ac_login_title() { 133 echo get_option( 'blogname' ); 134 } 120 135 121 136 function ac_dashboard_setup() {
Note: See TracChangeset
for help on using the changeset viewer.