We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 441c6b2 commit 5fb14ccCopy full SHA for 5fb14cc
mu-plugins/grunt-wordpress.php
@@ -4,11 +4,14 @@
4
* Description: Adds custom XML-RPC methods for use with grunt-wordpress.
5
*/
6
7
-define( 'GW_VERSION', '1.0.7' );
+define( 'GW_VERSION', '1.1.0' );
8
9
if ( ! defined( 'GW_RESOURCE_DIR' ) )
10
- define( 'GW_RESOURCE_DIR', dirname( WP_CONTENT_DIR ) . '/gw-resources/' .
11
- preg_replace( '/^\w+:\/\//', '', home_url() ) );
+ define( 'GW_RESOURCE_DIR', gw_resources_dir( home_url() ) );
+
12
+function gw_resources_dir( $url ) {
13
+ return dirname( WP_CONTENT_DIR ) . '/gw-resources/' . preg_replace( '/^\w+:\/\//', '', $url );
14
+}
15
16
function gw_get_version( $args ) {
17
global $wp_xmlrpc_server;
0 commit comments