Skip to content

Commit

Permalink
Fix typos in the documentation (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Oct 12, 2023
1 parent 1f7a523 commit 15ce57b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You can connect to the Playground using the JavaScript client. Here's an example
});
const response = await client.run({
// wp-load.php is only required if you want to interact with WordPresss.
// wp-load.php is only required if you want to interact with WordPress.
code: '<?php require_once "/wordpress/wp-load.php"; $posts = get_posts(); echo "Post Title: " . $posts[0]->post_title;',
});
console.log(response.text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can also use Blueprints with the JavaScript API using the `startPlaygroundWe
});
const response = await client.run({
// wp-load.php is only required if you want to interact with WordPresss.
// wp-load.php is only required if you want to interact with WordPress.
code: '<?php require_once "/wordpress/wp-load.php"; $posts = get_posts(); echo "Post Title: " . $posts[0]->post_title;',
});
console.log(response.text);
Expand Down
2 changes: 1 addition & 1 deletion packages/php-wasm/compile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ RUN \
# Make the php.wasm URL configurable via the dependencyFilename loader argument:
/root/replace.sh $'s/["\']php\.wasm[\'"]/dependencyFilename/g' /root/output/php.js && \
# Patch a "property undefined" error
# Emscripten produces an if that checkes a stream.stream_ops.poll property. However,
# Emscripten produces an if that checks a stream.stream_ops.poll property. However,
# stream.stream_ops is sometimes undefined and the check fails. Let's adjust it to
# tolerate a null stream.stream_ops value.
/root/replace.sh "s/if\s*\(stream\.stream_ops\.poll\)/if (stream.stream_ops?.poll)/g" /root/output/php.js && \
Expand Down
2 changes: 1 addition & 1 deletion packages/php-wasm/compile/build-assets/php_wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ void wasm_set_request_port(int port) {
/*
* Function: redirect_stream_to_file
* ----------------------------
* Redirects writes from a given stream to a file with a speciied path.
* Redirects writes from a given stream to a file with a specified path.
* Think of it as a the ">" operator in "echo foo > bar.txt" bash command.
*
* This is useful to pass streams of bytes containing null bytes to JavaScript
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const client = await startPlaygroundWeb({
});

const response = await client.run({
// wp-load.php is only required if you want to interact with WordPresss.
// wp-load.php is only required if you want to interact with WordPress.
code: '<?php require_once "/wordpress/wp-load.php"; $posts = get_posts(); echo "Post Title: " . $posts[0]->post_title;',
});
console.log(response.text);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ index 1120e12..b816826 100644
+ }
+
+ if ( ! $mimetype_exists ) {
+ return new WP_Error( 'invalid-file', 'Invalid WXZ fiel, mimetype declaration missing.' );
+ return new WP_Error( 'invalid-file', 'Invalid WXZ field, mimetype declaration missing.' );
+ }
+
foreach ( $archive_files as $file ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function startPlaygroundNode(
* @TODO figure out how to handle:
* * WordPress installation? There are no wp.data files like in the web version
* * Managing WordPress versions
* * Exisiting WordPress installations
* * Existing WordPress installations
* * Mounting existing themes, plugins, and core WP files
*
* Perhaps there is too much custom logic to be able to even have
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export async function bootPlaygroundRemote() {
}

/*
* An asssertion to make sure Playground Client is compatible
* An assertion to make sure Playground Client is compatible
* with Remote<PlaygroundClient>
*/
return playground;
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
const query = new URLSearchParams(window.location.search);
const shouldLazyLoadPlayground =
query.has('lazy') ||
// Initial API used "start_button" - this preserves compatability.
// Initial API used "start_button" - this preserves compatibility.
'1' === query.get('start_button');

if (
Expand Down

0 comments on commit 15ce57b

Please sign in to comment.