Forum Replies Created

Viewing 1 replies (of 1 total)
  • Here’s how I fixed this. Pardon the lack of line numbers, but I hope you can follow.

    -function garees_random_image_plugin_menu() {
    -	add_plugins_page("Garee's Random Image", "Garee's Random Image", 'read', 'garees_random_image', 'garees_random_image_show_menu');
    -}
    +function garees_random_image_menu() {
    +  add_options_page("Garee's Random Image", "Garee's Random Image", 8, __FILE__, 'garees_random_image_options');
    +}
    -function garees_random_image_show_menu() {
    +function garees_random_image_options() {
    -add_action('admin_menu', 'garees_random_image_plugin_menu');
    +add_action('admin_menu', 'garees_random_image_menu');

    Also, I removed a “\n” after line 29 because it was just showing up at the top of every wp admin page:
    define('GAREE_FLATTRSCRIPT', 'https://www.garee.ch/js/flattr/flattr.js');\n

Viewing 1 replies (of 1 total)