Found a 'bug'

This topic contains 2 replies, has 2 voices, and was last updated by CotswoldPhoto CotswoldPhoto 7 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3228
    CotswoldPhoto
    CotswoldPhoto
    Participant

    I think I found a ‘bug’ in Ajax Search Pro for WordPress, file hooks.php last line reads:

    add_action('wp_print_styles', 'search_stylesheets');

    should read:

    add_action('wp_enqueue_scripts', 'search_stylesheets');

    Why? According to http://codex.wordpress.org/Plugin_API/Action_Reference/wp_print_styles: Since WordPress 3.3 wp_print_styles should not be used to enqueue styles or scripts.

    Why is this a problem? If, like me, someone wants to edit the stylesheet by removing it and enqueuing our own, we can’t. Maybe you could make this little change for the next release? Otherwise I have to be careful about when I update that the updates don’t remove what I have done.

    #3233
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    Thank you, I wasn’t aware of that, I don’t know why.

    I will change this of course in the next bugfix release.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #3234
    CotswoldPhoto
    CotswoldPhoto
    Participant

    Cool. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.