• Hello , since the update to WP4.4.1 (I think it was the WP update) the copyright section of the footer of Hueman theme and html & javascript no longer functions.
    I have deactivated all plugins and the issue still remained.
    You can see what I mean here. Thanks in anticipation
    http://andrewhallam.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi nextstep. This post should answer your question.

    Thread Starter nextstep

    (@nextstep99)

    Hi BD, thanks for this.

    Could you explain why was it changed?

    It’s a form of data validation and sanitation.

    Here’s the Codex page that discusses esc_attr():
    https://codex.wordpress.org/Function_Reference/esc_attr

    Here’s the Codex page with a more general overview:
    https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data#Escaping:_Securing_Output

    And, if you’re really interested in the details, see this article:
    http://code.tutsplus.com/articles/data-sanitization-and-validation-with-wordpress–wp-25536

    Thread Starter nextstep

    (@nextstep99)

    Thanks for that but I’m not a coder so it doesn’t really make a lot of sense to me. I will assume it was changed because it was a security issue. I’m still not sure why I can add it in some parts of a theme and not others. Why it was OK one day and then not the next?

    Can you advise with that code adjustment, is my site at risk? Should I revert back to the original code?

    My disclaimer here, before I answer your questions, is that the only way to make absolutely sure that your site doesn’t have any security risks is take it off the web. There are many steps that you can take to secure your site, but none of them are guaranteed to eliminate all risks.

    I will assume it was changed because it was a security issue

    I don’t know that it was any specific issue. The previous developer may have decided it was “best practice” to filter the contents before it went to the browser just to help ensure there wasn’t any injected code added to the text.

    I’m still not sure why I can add it in some parts of a theme and not others.

    Some filtering of user-generated data is done by WP; other areas are left up the the developer’s discretion.

    Why it was OK one day and then not the next?

    The change to the theme was based on whatever criteria the developer used to decide he wanted to implement the additional data filtering.

    is my site at risk?

    Well, the short answer is, every site on the web is at risk, some more than others. If you’re following the WP security best practices then the level of risk to your site should be substantially reduced.

    Should I revert back to the original code?

    Since you’re the one entering the data, and if you’re following the recommended security measures, I wouldn’t expect that you’d have any problems without the filter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Footer no longer displaying html javascript’ is closed to new replies.