Skip to content

Commit 5fb14cc

Browse files
committed
Build: Upgrade to grunt-wordpress 1.1.0
1 parent 441c6b2 commit 5fb14cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mu-plugins/grunt-wordpress.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
* Description: Adds custom XML-RPC methods for use with grunt-wordpress.
55
*/
66

7-
define( 'GW_VERSION', '1.0.7' );
7+
define( 'GW_VERSION', '1.1.0' );
88

99
if ( ! defined( 'GW_RESOURCE_DIR' ) )
10-
define( 'GW_RESOURCE_DIR', dirname( WP_CONTENT_DIR ) . '/gw-resources/' .
11-
preg_replace( '/^\w+:\/\//', '', home_url() ) );
10+
define( 'GW_RESOURCE_DIR', gw_resources_dir( home_url() ) );
11+
12+
function gw_resources_dir( $url ) {
13+
return dirname( WP_CONTENT_DIR ) . '/gw-resources/' . preg_replace( '/^\w+:\/\//', '', $url );
14+
}
1215

1316
function gw_get_version( $args ) {
1417
global $wp_xmlrpc_server;

0 commit comments

Comments
 (0)