Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  bump to 1.11.2
  explicitly use http for livereload
  • Loading branch information
lipemat committed Nov 23, 2018
2 parents 2bf6b98 + cfe60ef commit 9658673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WordPress Libs
WordPress library which supports a core plugin and theme.

**Version [1.11.1](https://github.com/lipemat/wordpress-lipe-libs/releases/tag/1.11.1)**
**Version [1.11.2](https://github.com/lipemat/wordpress-lipe-libs/releases/tag/1.11.2)**

### Requirements
1. PHP Version 7.1.3+ (Recommended 7.2.0+)
Expand Down
4 changes: 2 additions & 2 deletions src/Theme/Styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public function get_version() : ?string {
public function live_reload( bool $admin_also = false ) : void {
if ( \defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
\add_action( 'wp_enqueue_scripts', function () {
\wp_enqueue_script( 'livereload', '//localhost:35729/livereload.js', [], \time(), true );
\wp_enqueue_script( 'livereload', 'http://localhost:35729/livereload.js', [], \time(), true );
} );
if ( $admin_also ) {
\add_action( 'admin_enqueue_scripts', function () {
\wp_enqueue_script( 'livereload', '//localhost:35729/livereload.js', [], \time(), true );
\wp_enqueue_script( 'livereload', 'http://localhost:35729/livereload.js', [], \time(), true );
} );
}
}
Expand Down

0 comments on commit 9658673

Please sign in to comment.