Skip to content

Commit

Permalink
Merge pull request #22 from pantheon-systems/render-styles-head
Browse files Browse the repository at this point in the history
Render styles in `admin_head`; bump README to 0.1.2
  • Loading branch information
danielbachhuber authored Jun 8, 2017
2 parents fdf4824 + 2e72511 commit 2f6644b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
**Contributors:** getpantheon, danielbachhuber
**Tags:** Pantheon, hosting
**Requires at least:** 4.4
**Tested up to:** 4.7.3
**Stable tag:** 0.1.1
**Tested up to:** 4.8
**Stable tag:** 0.1.2
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -39,6 +39,9 @@ By default, the Pantheon HUD appears for logged-in users with the `manage_option

## Changelog ##

### 0.1.2 (June 8, 2017) ###
* Renders styles in `admin_head` instead of `admin_footer`.

### 0.1.1 (February 27, 2017) ###
* Updates `terminus` stub command to use new syntax.

Expand Down
6 changes: 3 additions & 3 deletions inc/class-toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public static function get_instance() {

private function setup_actions() {
add_action( 'admin_bar_menu', array( $this, 'action_admin_bar_menu' ), 100 );
add_action( 'wp_footer', array( $this, 'action_wp_footer' ) );
add_action( 'admin_footer', array( $this, 'action_wp_footer' ) );
add_action( 'wp_head', array( $this, 'action_wp_head' ) );
add_action( 'admin_head', array( $this, 'action_wp_head' ) );
}

public function action_admin_bar_menu( $wp_admin_bar ) {
Expand Down Expand Up @@ -113,7 +113,7 @@ public function action_admin_bar_menu( $wp_admin_bar ) {

}

public function action_wp_footer() {
public function action_wp_head() {
?>
<style>
#wpadminbar li#wp-admin-bar-pantheon-hud > .ab-item img {
Expand Down
2 changes: 1 addition & 1 deletion pantheon-hud.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Pantheon HUD
* Version: 0.1.1
* Version: 0.1.2
* Description: A heads-up display into your Pantheon environment.
* Author: Pantheon
* Author URI: https://pantheon.io
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: getpantheon, danielbachhuber
Tags: Pantheon, hosting
Requires at least: 4.4
Tested up to: 4.7.3
Stable tag: 0.1.1
Tested up to: 4.8
Stable tag: 0.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -37,6 +37,9 @@ By default, the Pantheon HUD appears for logged-in users with the `manage_option

== Changelog ==

= 0.1.2 (June 8, 2017) =
* Renders styles in `admin_head` instead of `admin_footer`.

= 0.1.1 (February 27, 2017) =
* Updates `terminus` stub command to use new syntax.

Expand Down

0 comments on commit 2f6644b

Please sign in to comment.