WordPress.org

Make WordPress Core

Ticket #44094: 44094.patch

File 44094.patch, 522 bytes (added by macbookandrew, 18 months ago)

patch as described by @yguez

  • src/wp-includes/class-wp-user.php

     
    167167         * @param int    $site_id Optional. The site ID to initialize for.
    168168         */
    169169        public function init( $data, $site_id = '' ) {
    170                 $this->data = $data;
     170                $this->data = apply_filters( 'init_user_data', $data, $site_id );
    171171                $this->ID   = (int) $data->ID;
    172172
    173173                $this->for_site( $site_id );