google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

Meta box Visibility Control Option escapes input #542

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the Meta box Visibility Control option, your example suggests

return basename( get_page_template() ) == "page-about.php"

Using that exact input, the returned data is 

return basename( get_page_template() ) == "page-about.php"

As such the eval() fails.
Same for double and single quotes.

Is this input being run through wp_kses() or similar?
We need to escape double and single quotes.

Original issue reported on code.google.com by kb6...@gmail.com on 13 Feb 2014 at 6:01

GoogleCodeExporter commented 9 years ago
Duplicate: see Issue #511.

Original comment by ever...@fireproofsocks.com on 13 Feb 2014 at 6:08