예제 #1
0
 /**
  * The rest_route query variable should be registered.
  */
 function test_rest_route_query_var()
 {
     rest_api_init();
     $this->assertTrue(in_array('rest_route', $GLOBALS['wp']->public_query_vars));
 }
 /**
  * The rest_route query variable should be registered.
  */
 function test_rest_route_query_var()
 {
     rest_api_init();
     global $wp;
     $this->assertTrue(in_array('rest_route', $wp->public_query_vars));
 }