WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Google Analytics
patch for deprecated functions (1 post)

  1. PowerKiKi
    Member
    Posted 2 years ago #

    Hi,
    I wrote a patch to avoid notices and warnings when in WP_DEBUG mode. I hope it can be integrated into trunk.

    Index: ultimate_ga.php
    ===================================================================
    --- ultimate_ga.php	(revision 462584)
    +++ ultimate_ga.php	(working copy)
    @@ -313,7 +313,7 @@
         uga_debug('Adding options page');
         add_options_page('Ultimate Google Analytics' /* page title */,
                          'Ultimate GA' /* menu title */,
    -                     8 /* min. user level */,
    +                     'level_8' /* min. user level */,
                          basename(__FILE__) /* php file */ ,
                          'uga_options' /* function for subpanel */);
       }
    @@ -521,7 +521,7 @@
     function uga_track_user() {
       global $user_level;
       uga_debug('Start uga_track_user');
    -  if (!user_level) {
    +  if (!$user_level) {
         // user nog logged on -> track
         uga_debug('User not logged on');
         $result = true;

    http://wordpress.org/extend/plugins/ultimate-google-analytics/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by PowerKiKi
  • This topic is not a support question
  • WordPress version: 3.2.1