You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/wordpress_com/actions/create-post/create-post.mjs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "wordpress_com-create-post",
5
5
name: "Create New Post",
6
6
description: "Creates a new post on a WordPress.com site. [See the documentation](https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/posts/new/)",
7
-
version: "0.0.1",
7
+
version: "0.0.6",
8
8
type: "action",
9
9
props: {
10
10
wordpress,
@@ -80,7 +80,9 @@ export default {
80
80
wordpress.throwCustomError("Could not create post",error,warnings);
81
81
};
82
82
83
-
$.export("$summary",`Post successfully created. ID = ${response?.ID}`+"\n- "+warnings.join("\n- "));
83
+
$.export("$summary",
84
+
`Post “${this.title}” is successfully created with ID “${response?.ID}”`+
Copy file name to clipboardExpand all lines: components/wordpress_com/actions/upload-media/upload-media.mjs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ export default {
5
5
key: "wordpress_com-upload-media",
6
6
name: "Upload Media",
7
7
description: "Uploads a media file from a URL to the specified WordPress.com site. [See the documentation](https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/media/new/)",
0 commit comments