Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

soerenhahnert on "[Plugin: WordPress SEO by Yoast] Google Plus Bug?"

$
0
0

I was wondering, why i could choose ('Display Google Plus Author Profile from Users Profile') but there was no Input field in the Profile to set up the GPlus link.

Not sure if it's a bug or if i missed sth.

I did a dirty hack to fix it. Would be glad if you answer me.

I fixed it by changing the class-admin.php (Inserted between 346 and 347:

<tr>
            <th><?php _e( "Google Plus Profile", 'wordpress-seo' ); ?></th>
            <td><input class="regular-text" type="text" name="googleplus"
                       value="<?php echo esc_attr( get_the_author_meta( 'googleplus', $user->ID ) ); ?>"/></td>
        </tr>

And adding on line 293:

update_user_meta( $user_id, 'googleplus', ( isset( $_POST['googleplus'] ) ? esc_html( $_POST['googleplus'] ) : '' ) );

http://wordpress.org/extend/plugins/wordpress-seo/


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>