• Resolved martin0w

    (@martin0w)


    Hello,

    This might be similar to the recent report on the server ip address being displayed by this plugin.
    Since installing it on my site about a week ago, I noticed the wordpress site name apperaring across the top of the browser window on some pages. Inspecting the source, indeed such text is there within the <head> tag.

    Through some debugging I was able to track the cause to the action hook on wp_head: UserOnline_Core -> record (1) . This hook seems to output just the site name (like “MySite”). Curiously, not on the main page, but page 2, 3 etc of my blog.

    Disable your plugin causes the text to disappear.

    I’m quite positive that your UserOnline_Core -> record (1) method echoes this output to the screen.
    Please advise

Viewing 1 replies (of 1 total)
  • Thread Starter martin0w

    (@martin0w)

    Please forget the issue. I checked it further…. The culprit turned out to be the following line in UserOnline_Core -> get_title() :

    
    			$page_title = wp_title( '&raquo;', false );
    

    You are using the wp_title correctly, but my theme hooked into the wp_title filter in an incorrect way, which caused the said text output.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin shows the site name on wp_head action hook’ is closed to new replies.