Save on edit icon set goes wrong
-
I’m using the plugin in a local dockerized setup, and when saving the “Edit icon set” form, I got redirected (after a successful POST) to “http://_/wp-admin/admin….”. It seems that the local domain could not be fetched correctly.
Some debugging got me to the curPageURL function in accesspress-social-icons.php where I replaced $_SERVER[‘SERVER_NAME’] by $_SERVER[‘HTTP_HOST’]. After this change submission flow was working perfectly.
On production everything went OK with the default code, so it has something to do with Docker, but I thought it wouldn’t harm anyone to share this 🙂
The topic ‘Save on edit icon set goes wrong’ is closed to new replies.