Plugin Directory

Changeset 2010198


Ignore:
Timestamp:
01/10/2019 07:52:55 PM (7 years ago)
Author:
ShopSite
Message:

Suppress PHP warnings that could stop the tutorial after activation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shopsite-plugin/trunk/shopsite.php

    r2010190 r2010198  
    4141register_activation_hook( __FILE__, 'on_activate' );
    4242function on_activate() {
    43   add_option('ss_just_activated','yes');
     43  @add_option('ss_just_activated','yes');
    4444}
    4545
     
    6868          delete_option($option);
    6969        } else
    70           add_option('ss_'+$option);
     70          @add_option('ss_'+$option);
    7171      }
    7272    }
Note: See TracChangeset for help on using the changeset viewer.