Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Danny Froberg
steempress_amn
Commits
fe8ed23c
Commit
fe8ed23c
authored
Oct 27, 2018
by
Martin Lees
Browse files
Return before posting on the update call to be extra sure nothing happens
parent
42de3279
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin/class-steempress_sp-admin.php
View file @
fe8ed23c
...
...
@@ -636,6 +636,7 @@ class Steempress_sp_Admin {
$test
=
$data
[
'body'
];
if
(
$test
[
'tags'
]
!=
""
&&
$test
[
'author'
]
!=
""
&&
$test
[
'wif'
]
!=
""
)
{
// Post to the api who will update it on the steem blockchain.
return
-
1
;
$result
=
wp_remote_post
(
$this
->
api_url
.
"/update"
,
$data
);
if
(
!
isset
(
$result
->
errors
))
{
$data
=
$result
[
'body'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment