true ) ); } /** * @since 0.1.0 * @deprecated 0.2.0 */ function members_get_login_form() { _deprecated_function( __FUNCTION__, '0.2.0', 'wp_login_form' ); wp_login_form( array( 'echo' => false ) ); } if ( !function_exists( 'has_role' ) ) { /** * @since 0.1.0 * @deprecated 0.2.0 */ function has_role( $role, $user_id ) { _deprecated_function( __FUNCTION__, '0.2.0', 'user_can' ); return user_can( $user_id, $role ); } } if ( !function_exists( 'current_user_has_role' ) ) { /** * @since 0.1.0 * @deprecated 0.2.0 */ function current_user_has_role() { _deprecated_function( __FUNCTION__, '0.2.0', 'current_user_can' ); return current_user_can( $role ); } } /** * @since 0.1.0 * @deprecated 0.2.0 */ function members_get_avatar_shortcode( $attr ) { _deprecated_function( __FUNCTION__, '0.2.0', '' ); /* Set up our default attributes. */ $defaults = array( 'id' => '', 'email' => '', 'size' => 96, 'default' => '', 'alt' => '' ); /* Merge the input attributes and the defaults. */ extract( shortcode_atts( $defaults, $attr ) ); /* If an email was input, use it. Else, use the ID. */ $id_or_email = ( !empty( $email ) ? $email : $id ); /* Return the avatar. */ return get_avatar( $id_or_email, $size, $default, $alt ); } ?>