Viewing 2 replies - 1 through 2 (of 2 total)
  • I was having a few problems with plugin and I had to turn on the Debug and that is when I started see this error also.

    Notice: wpseo_set_value is deprecated since version WPSEO 1.5.0! Use WPSEO_Meta::set_value() instead. in /home/captzean/public_html/wp-includes/functions.php on line 3658

    As this plugin is stive active could this please be fixed.

    Thanks

    Thread Starter bheadrick

    (@bheadrick)

    This still isn’t fixed, but I found another issue in the same function that I overlooked initially.

    apparently, the hook is being called when there is no active $post. Here is the updated function

    public static function fixed_wordpress_seo_plugin( $ogdesc = '' ) {
    		if(class_exists('WPSEO_Meta')){
    			global $post;
    			if($post){
    				$postid = $post->ID;
    				WPSEO_Meta::set_value( 'opengraph-description', $ogdesc, $postid );
    			}
    
    		}
    		return $ogdesc;
    	}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpseo_set_value is deprecated as of WP SEO 1.5’ is closed to new replies.