WordPress.org

Plugin Directory

Changeset 676754


Ignore:
Timestamp:
03/06/13 05:54:07 (5 years ago)
Author:
arstropica
Message:

Replaced deprecated function get_user_by_email with get_user_by

File:
1 edited

Legend:

Unmodified
Added
Removed
  • social-media-icons/tags/1.2.3/smc_widget.php

    r676518 r676754  
    369369    function authorinfo(){ 
    370370        $blog_admin_email = (function_exists('get_blog_option') ? (get_blog_option( $this->current_blog_var->blog_id,'admin_email' )) : get_option('admin_email')); 
    371         $blog_admin_info = get_user_by_email($blog_admin_email); 
     371        $blog_admin_info = get_user_by('email', $blog_admin_email); 
    372372        $blog_owner_id = (function_exists('get_user_id_from_string') ? (get_user_id_from_string( $blog_admin_email )) : ($blog_admin_info->ID)); 
    373373        $authordata = get_userdata( $blog_owner_id ); 
Note: See TracChangeset for help on using the changeset viewer.