@@ -44,8 +44,7 @@ def initialize(info = {})
44
44
45
45
register_advanced_options ( [
46
46
OptInt . new ( 'PostCount' , [ false , 'Number of posts to list' , 100 ] ) ,
47
- OptString . new ( 'SearchTerm' , [ false , 'Search term when listing posts' ] ) ,
48
- OptBool . new ( 'AutoPublish' , [ false , 'Publish updated posts' , true ] )
47
+ OptString . new ( 'SearchTerm' , [ false , 'Search term when listing posts' ] )
49
48
] )
50
49
end
51
50
@@ -129,8 +128,7 @@ def do_update
129
128
res = update_post ( post [ :id ] ,
130
129
title : datastore [ 'POST_TITLE' ] ,
131
130
content : datastore [ 'POST_CONTENT' ] ,
132
- password : datastore [ 'POST_PASSWORD' ] ,
133
- status : datastore [ 'AutoPublish' ] ? 'publish' : nil
131
+ password : datastore [ 'POST_PASSWORD' ]
134
132
)
135
133
136
134
post_url = full_uri ( wordpress_url_post ( post [ :id ] ) )
@@ -182,7 +180,6 @@ def update_post(id, opts = {})
182
180
payload [ :title ] = opts [ :title ] if opts [ :title ]
183
181
payload [ :content ] = opts [ :content ] if opts [ :content ]
184
182
payload [ :password ] = opts [ :password ] if opts [ :password ]
185
- payload [ :status ] = opts [ :status ] if opts [ :status ]
186
183
187
184
send_request_cgi ( {
188
185
'method' => 'POST' ,
0 commit comments