diff --git a/includes/meta-box.php b/includes/meta-box.php new file mode 100644 index 0000000..caa3b61 --- /dev/null +++ b/includes/meta-box.php @@ -0,0 +1,37 @@ +
' . esc_html( __( 'Settings saved.', 'simple-embed-code' ) ) . "
\n"; @@ -52,17 +58,32 @@ // Fetch options into an array. $options = get_option( 'artiss_code_embed' ); + +// Display a message box if the custom meta box removal has been overridden. + +if ( '1' === $options['meta_box'] ) { + echo '' . esc_html( __( 'Warning: You have custom post fields switched on for users who do not have the unfiltered HTML capability. This means that insecure code can be added. Please see the plugin README for more details.', 'simple-embed-code' ) ) . "