Skip to content

Commit

Permalink
PHP 7.3 compatibility based on https://core.trac.wordpress.org/change…
Browse files Browse the repository at this point in the history
  • Loading branch information
markkap committed Oct 27, 2018
1 parent 9a81652 commit 7f026d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wp-includes/class-wp-network-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ protected function get_network_ids() {

$number = absint( $this->query_vars['number'] );
$offset = absint( $this->query_vars['offset'] );
$limits = '';

if ( ! empty( $number ) ) {
if ( $offset ) {
Expand Down Expand Up @@ -393,6 +394,8 @@ protected function get_network_ids() {

$where = implode( ' AND ', $this->sql_clauses['where'] );

$groupby = '';

$pieces = array( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby' );

/**
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/class-wp-site-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ protected function get_site_ids() {

$number = absint( $this->query_vars['number'] );
$offset = absint( $this->query_vars['offset'] );
$limits = '';

if ( ! empty( $number ) ) {
if ( $offset ) {
Expand Down

0 comments on commit 7f026d2

Please sign in to comment.