nmotika
Forum Replies Created
-
Forum: Plugins
In reply to: [Single Post Search Result] Error after upgradeI fixed it on my site this way
/**
* This function will redirect any search results that only have a single post
* to the single post page that was returned in the search.
*
* @since 1.0.0
*/
function wp_single_post_search_result() {if ( is_search() ) {
global $wp_query;
if ( $wp_query->post_count == 1 ) {
wp_redirect( get_permalink( $wp_query->posts[‘0’]->ID ) );
}}
}
/**
* This fires the template_redirect action for the wpskeleton_single_post_search_result() function.
*
* @since 1.0.0
*/
add_action( ‘template_redirect’, ‘wp_single_post_search_result’ );It seems to be working perfect now. Thank you very much
Do you have any information when this fix will be available?
Actually, its not the same, but very similar:
Warning: Illegal string offset ‘result’ in /homepages/3/xxxxxxxxx/htdocs/wp-content/plugins/shareaholic/notifier.php on line 105
Warning: Cannot modify header information – headers already sent by (output started at /homepages/3/xxxxxxxxx/htdocs/wp-content/plugins/shareaholic/notifier.php:105) in /homepages/3/xxxxxxxxx/htdocs/wp-includes/pluggable.php on line 876
There is same error in 7.0.1.0 version.
Can we expect quick fix or should we search for another social share plugin?