Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #241

  • Loading branch information...
commit 3528a865c0dbe67b5e7b0fa081a97bc923b5b612 1 parent 24ebedc
@sc0ttkclark sc0ttkclark authored
Showing with 15 additions and 2 deletions.
  1. +4 −1 pods.php
  2. +11 −1 ui/admin/help.php
View
5 pods.php
@@ -57,7 +57,10 @@
$update = admin_url( 'update.php?action=update-selected' );
$update = str_replace( get_bloginfo( 'wpurl' ), '', $update );
- if ( false !== strpos( $_SERVER[ 'REQUEST_URI' ], $update ) )
+ $update_network = network_admin_url( 'update.php?action=update-selected' );
+ $update_network = str_replace( get_bloginfo( 'wpurl' ), '', $update_network );
+
+ if ( false !== strpos( $_SERVER[ 'REQUEST_URI' ], $update ) || false !== strpos( $_SERVER[ 'REQUEST_URI' ], $update_network ) )
$version = '0.1';
$user = 'pods-framework';
View
12 ui/admin/help.php
@@ -1,6 +1,7 @@
<div class="wrap pods-admin">
<div id="icon-pods" class="icon32"><br /></div>
<h2><?php _e( 'Pods Help', 'pods' ); ?></h2>
+
<p>
This plugin is an <strong>beta</strong> version, it is not meant for use on production/live sites and is not 100% complete with functionality yet.
This plugin has been released for developers and users so they can help test, review the new UI, and provide feedback regarding Pods 2.0 and let us know of any bugs they come across.
@@ -9,7 +10,16 @@
<p>It's open source, so if you want to get into the code and submit your own fixes or features, go at it, we'd love to have you contribute on our project! With GitHub, it's really easy to contribute back, so why not give it a try?</p>
<hr />
+
<h2><?php _e( 'Pods Developer Tools', 'pods' ); ?></h2>
- <p class="submit"><a href="<?php echo admin_url( 'update-core.php?pods_force_refresh=1' ); ?>" class="button button-primary">Force Plugin Refresh/Update from GitHub</a></p>
+
+ <?php
+ $update = admin_url( 'update-core.php?pods_force_refresh=1' );
+
+ if ( is_multisite() )
+ $update = network_admin_url( 'update-core.php?pods_force_refresh=1' );
+ ?>
+
+ <p class="submit"><a href="<?php echo $update; ?>" class="button button-primary">Force Plugin Refresh/Update from GitHub</a></p>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.