• Resolved Fee

    (@wdfee)


    Hello, today I started using your plugin and like it very much!
    But there’s one issue:
    In the osom-modal-login.php on line 167 you’re hardcoding a wp-content url (for an image path). As it it possible to change the wp-content directoy name via constant WP_CONTENT_URL in wp-config.php, and concerned webmasters use this for security reason, the path doesn’t work this way. So please, could you use the constant instead? like this:

    <img src="<?php echo WP_CONTENT_URL;?>/plugins/osom-modal-login/assets/img/close.svg">
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nahuai Badiola

    (@nahuai)

    Hello Fee!

    Thanks for letting us know your suggestion.
    We were using plugin_url function as it’s the standard for this purpose, but I understand that in cases like the one you mentioned could be problematic.

    So we are planning to change it for content_url() function in the next update (coming in the next days, close to WordPress 6.4 release).

    Best,
    Nahuai

    Plugin Author Nahuai Badiola

    (@nahuai)

    Hello again Fee.

    I’m happy to inform you that we already published the new version (1.1.5) with the change I mentioned.

    Best,
    Nahuai

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘please use WP_CONTENT_URL constant instead of hardcoded path’ is closed to new replies.