When I run this plugin I see an error:
Notice: has_cap was called with an argument that is <strong>deprecated</strong>
since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles
and capabilities instead. in /srv/www/wordpress-default/wp-includes/functions.php
on line 2923
This is caused by line 70 in gad-admin-options.php
, which specifies a user level 8 when adding the options page. User level 8 is equivalent to an administrator, so replacing 8
with manage_options
will work just as well.
Here’s a gist with a patch: https://gist.github.com/simonwheatley/5850804
Hope this helps.
Cheers,
Simon
https://www.ads-software.com/extend/plugins/google-analytics-dashboard/
]]>SCRIPT_DEBUG
constant was defined as true.
If you change the ga_external_tracking_js
function as follows, then this will happen:
/**
* Adds the scripts required for outbound link tracking
**/
function ga_external_tracking_js()
{
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script('ga-external-tracking', plugins_url("/google-analyticator/external-tracking{$suffix}.js"), array('jquery'), GOOGLE_ANALYTICATOR_VERSION);
}
Thanks for the plugin!
https://www.ads-software.com/extend/plugins/google-analyticator/
]]>Line 70 on gad-admin-options.php
uses user levels not capabilities, which triggers a deprecated notice. It could be changed to the following to avoid this:
add_options_page(__('Google Analytics Dashboard Options'), __('Google Analytics Dashboard'), 'manage_options', __FILE__, array(&$this, 'admin_plugin_options'));
(Note manage_options
rather than 8
.)
https://www.ads-software.com/extend/plugins/google-analytics-dashboard/
]]>I noticed a PHP notice (ahem) while trying out Polldaddy, and as it’s easily fixed, here’s a patch…
Cheers,
Simon
Index: polldaddy.php
===================================================================
--- polldaddy.php (revision 625777)
+++ polldaddy.php (working copy)
@@ -1833,7 +1833,7 @@
</td>
<td class="answer-media-icons" <?php echo isset( $_GET['iframe'] ) ? 'style="width: 55px !important;"' : '';?>>
<ul class="answer-media" <?php echo isset( $_GET['iframe'] ) ? 'style="min-width: 30px;"' : '';?>>
-<?php if ( $mediaType[999999999] == 2 ) { ?>
+<?php if ( isset( $mediaType[999999999] ) && $mediaType[999999999] == 2 ) { ?>
<li class="media-preview" style="width: 20px; height: 16px; padding-left: 5px;"><img height="16" width="16" src="<?php echo plugins_url( 'img/icon-report-ip-analysis', __FILE__ ); ?>" alt="Video Embed"></li>
<?php } else { ?>
<li class="media-preview" style="width: 20px; height: 16px; padding-left: 5px;"><?php
https://www.ads-software.com/extend/plugins/polldaddy/
]]>I noticed some PHP notices in my error logs due to $_POST
indexes being accessed when they are not set, and I created a patch to prevent this from happening:
https://pastebin.com/ck3VG3Ms
Hope it helps!
Cheers,
Simon
https://www.ads-software.com/extend/plugins/all-in-one-seo-pack/
]]>The problem is that this means logged in admins cannot browse the site in this situation, because the error message keeps coming up.
I created a patch for WP Mu Domain Mapping which does two things:
$wpdb->insert
method, instead of the $wpdb->query
method. The patch is here: https://pastebin.com/U0NeFpYQ
Any feedback welcome. DO NOT APPLY THIS PATCH UNLESS YOU KNOW WHAT YOU ARE DOING.
https://www.ads-software.com/extend/plugins/wordpress-mu-domain-mapping/
]]>