Theme editor removes backslashes

The theme and plugin editor is an abomination, related to times when people where ignoring any security common sense in order to pretend to be user friendly, and if you have to use them then you are doing something terribly wrong. If you can use the editor then your small problem is not being able … Read more

Getting duplicate page when activating my plugin

If no result is found, $wpdb->get_row will return NULL not false https://codex.wordpress.org/Class_Reference/wpdb#SELECT_a_Row You are using add_action(‘init’, ‘gallerypage’); so it runs on every load. You should be using register_activation_hook so that it only runs when the plugin is activated. https://codex.wordpress.org/Function_Reference/register_activation_hook Try using get_page_by_path() to check if the page already exists. Then you won’t need to use … Read more