Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29505, comment 6


Ignore:
Timestamp:
09/05/2014 09:14:37 AM (10 years ago)
Author:
miqdadk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29505, comment 6

    initial v1  
    99   
    1010    function plugin_activated(){
     11        $bgs = 'a:1:{i:0;s:93:"http://192.168.1.175/delta/wp4.0rc/wp-content/plugins/lock-it- up/templates/img/bg/default.jpg";}';
    1112        $users = get_users( array( 'fields' => array( 'ID' ) ) );
    1213        foreach($users as $user){
    1314            delete_user_option($user->ID, 'wp-lock-bg-solid');
    14             delete_user_option($user->ID, 'wp-lock-bg');
     15            update_user_option( $user->ID, 'wp-lock-bg', serialize($bgs));
    1516        }
    1617    }