I have spotted an issue which is causing PHP notices to appear if ‘WP_DEBUG’ is set to true in wp-config.php, and the All In One SEO Pack plugin (version 2.0.2) is activated.
If the ‘Force Rewrites’ option within the ‘Performance’ settings of AIOSEOP is set to ‘Disabled’, the PHP notices are displayed within the <title> tags of WordPress Pages. Several notices are displayed, all along the lines of:
‘Notice: Undefined variable: authordata in <plugin location>/aioseop_class.php on line 1483’
A similar set of notices also appears if you edit the page via the WordPress CMS – these notices are displayed within the ‘All in One SEO Pack’ meta box, and appear regardless of whether the ‘Force Rewrites’ option is enabled or disabled.
Upon further investigation, it appears that it is possible to fix this issue by including the following lines of PHP code at the top of the apply_page_title_format() function within the ‘aioseop_class.php’ file:
$authordata = get_userdata( $post->post_author );
Please can the plugin be updated to incorporate this change? Thanks!