Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unfortunately Broken #1

Open
GutHib opened this issue Apr 29, 2017 · 1 comment
Open

Unfortunately Broken #1

GutHib opened this issue Apr 29, 2017 · 1 comment

Comments

@GutHib
Copy link

GutHib commented Apr 29, 2017

Hi,

This used to be a fantastic plugin, but due to changes in Worpress it is mostly broken now. An update to the plugin would be highly appreciated!!!

  • The core function, locking a plugin, still works
  • Clicking on the notepad icon to take notes does nothing.
  • The righthand column for multisite installations is usually giving wrong info - plugins that are activated network-wide are usually marked correctly, but plugins that have only been activated on a single subsite typically don't show up.

Thanks!

@GutHib
Copy link
Author

GutHib commented May 3, 2017

Here's the fix for the right-hand column (which should display which blogs the plugins/themes are active on):

IN class-lock-your-updates-admin.php REPLACE:

				// Set blog id so $wpdb will know which table to tweak
				$wpdb->set_blog_id( $this_blog[ 'blog_id' ] );
				
				// Get all the blog details
				$this_blog = get_blog_details( $this_blog[ 'blog_id' ] );

WITH:

				// Get all the blog details
				$this_blog = get_blog_details( $this_blog[ 'blog_id' ] );
							
				// Set blog id so $wpdb will know which table to tweak
				$wpdb->set_blog_id( $this_blog->blog_id );

The simple reason is that get_blog_details() seems to reset the blog_id (God knows why).

The notepad icon issue I can't fix since it's an Ajax issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant