~canonical-sysadmins/wordpress/4.8.3

« back to all changes in this revision

Viewing changes to wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php

  • Committer: axino
  • Date: 2017-03-07 07:21:12 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: axino@canonical.com-20170307072112-9g3xb2f6bb0skh02
Merge WP4.7.3 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
344
344
                $data = array();
345
345
 
346
346
                if ( ! empty( $schema['properties']['author'] ) ) {
347
 
                        $data['author'] = $post->post_author;
 
347
                        $data['author'] = (int) $post->post_author;
348
348
                }
349
349
 
350
350
                if ( ! empty( $schema['properties']['date'] ) ) {