Support » Plugin: HTTP Headers » Multisite settings config needs to have proper url

  • Resolved flacoman91

    (@flacoman91)


    Hello,

    thanks for the awesome plugin. works well, but I am trying to use in a multisite setup.

    I am able to access the HTTP Headers settings page
    /mysite/wp-admin/options-general.php?page=http-headers

    but on the actual page, each of the “edit” links are not properly linked to the subsite, and only is linked to the main site (without /mysite/ ) in it. if i manually put it in there, i am able to change each header setting.

    Looks like the change you should have is in views/list.php

    line 139 should be changed from

    <td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?page=http-headers&header=<?php
    to:

    <td><a href="<?php echo get_admin_url(); ?>options-general.php?page=http-headers&header=<?php

    each of the “Back to list of headers” links need the same treatment as well.
    in header.php and advanced.php

    thanks.

    • This topic was modified 5 years, 2 months ago by flacoman91. Reason: submitted too fast
    • This topic was modified 5 years, 2 months ago by flacoman91. Reason: added more places where the bug needs to be fixed
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multisite settings config needs to have proper url’ is closed to new replies.