wplua: allow exchanging arguments and results with scripts

This commit is contained in:
George Kiagiadakis
2021-02-03 10:28:32 +02:00
parent ef9b6ef982
commit 460ff6591d
7 changed files with 82 additions and 38 deletions

View File

@@ -835,7 +835,7 @@ wp_lua_scripting_api_init (lua_State *L)
wplua_register_type_methods (L, WP_TYPE_SESSION_ITEM,
session_item_new, session_item_methods);
wplua_load_uri (L, URI_API, &error);
wplua_load_uri (L, URI_API, 0, 0, &error);
if (G_UNLIKELY (error))
wp_critical ("Failed to load api: %s", error->message);
}