Fix shorthand ternary incompatibility with php 5.2

This commit is contained in:
Chris Marslender 2017-11-16 17:38:46 -07:00
parent 839c09d870
commit e68a918bc7
No known key found for this signature in database
GPG Key ID: 5A3FF8E135EABA2C
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class WC_REST_Network_Orders_Controller extends WC_REST_Orders_Controller {
*/
public function network_orders( $request ) {
$blog_id = $request->get_param( 'blog_id' );
$blog_id = $blog_id ?: get_current_blog_id();
$blog_id = ! empty( $blog_id ) ? $blog_id : get_current_blog_id();
switch_to_blog( $blog_id );