Make WordPress Core

Ticket #44723: 44723.diff

File 44723.diff, 565 bytes (added by desrosj, 6 years ago)
  • src/wp-includes/user.php

     
    36663666         */
    36673667        public function __construct( $post ) {
    36683668                $this->ID                  = $post->ID;
    3669                 $this->user_id             = $post->post_author;
     3669                $this->user_id             = (int) $post->post_author;
    36703670                $this->email               = $post->post_title;
    36713671                $this->action_name         = $post->post_name;
    36723672                $this->status              = $post->post_status;