Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
Updated to 1.0.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed May 24, 2017
1 parent d0d26e9 commit 43098f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.0.1 - 2017-05-24

* The action hook was changed in the add() method.

## 1.0.0 - 2017-03-24

* Added `Josantonius\WP_Register\WP_Register` class.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "josantonius/wp_register",
"version": "1.0.0",
"version": "1.0.1",
"type": "library",
"description": "Register css and JavaScript resources.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/WP_Register.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function add($type, $data = []) {

$type = ucfirst($type);

$hook = ($isAdmin) ? 'admin_init' : 'wp_enqueue_scripts';
$hook = ($isAdmin) ? 'admin_enqueue_scripts' : 'wp_enqueue_scripts';

if (!isset(self::$data[$type][$hook])) {

Expand Down

0 comments on commit 43098f6

Please sign in to comment.