correct auto track param parsing for WordPress
This commit is contained in:
parent
acba0ea41e
commit
0ec1438b9a
|
@ -204,6 +204,9 @@ class PostsController < ApplicationController
|
||||||
:auto_track
|
:auto_track
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# param munging for WordPress
|
||||||
|
params[:auto_track] = !(params[:auto_track].to_s == "false") if params[:auto_track]
|
||||||
|
|
||||||
if api_key_valid?
|
if api_key_valid?
|
||||||
# php seems to be sending this incorrectly, don't fight with it
|
# php seems to be sending this incorrectly, don't fight with it
|
||||||
params[:skip_validations] = params[:skip_validations].to_s == "true"
|
params[:skip_validations] = params[:skip_validations].to_s == "true"
|
||||||
|
|
Loading…
Reference in New Issue