yoast / wordpress-seo Goto Github PK
View Code? Open in Web Editor NEWYoast SEO for WordPress
Home Page: https://yoast.com/wordpress/plugins/seo/
License: Other
Yoast SEO for WordPress
Home Page: https://yoast.com/wordpress/plugins/seo/
License: Other
From Hassan:
Consider removing line 104 in file /admin/class-metabox.php which starts with
echo '<div class="misc-pub-section
because it is outputting a redundant/duplicate top-border in the Publish metabox. I don't believe there is any use for it anyway, correct? Also consider adding the CSS rule
vertical-align: bottom;
for the div with class wpseo_score_img in file /css/metabox-tabs.css which starts at line 278 to fix the alignment of the colored score image. Comparison screenshot
Known plugins to cause this issue:
The first one doesn't cause an issue on its own, but seems to be conflicting with another plugin (or several) which causes this issue. Not sure which other plugins these are...
Google Webmaster Tools reporting an error in author-sitemap.xml lastmod date (line 5 in xml):
An invalid date was found. Please fix the date or formatting before resubmitting.
The data
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.socazpainting.com/wp-content/plugins/wordpress-seo/css/xml-sitemap-xsl.php"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.socazpainting.com/author/wpadmin/</loc>
<lastmod>2013-06-27T03:07:55+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
</urlset>
<!-- XML Sitemap generated by Yoast WordPress SEO -->
There are two og:image meta ttag on my home page. One is from the Social -> Facebbok settings and one is from the actual page. If I set a featured image for my home page, the duplicate still will be there.
Here is the site's facebook debug:
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fpremiumwp.hu%2F
I don't want to use the second (http://premiumwp.hu/wp-content/uploads/2012/03/premium-sablonok.png) image as og:image. How can I remove it? How can I set it properly?
On Multisite, Admins have no edit_users capability, so it should be changed to a capability, that admins have. The manage_options capability is good for this job.
I have made the change in the class-metabox.php and sending the pull request.
On my localhost:
Fatal error: Call-time pass-by-reference has been removed in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/wordpress-seo/inc/class-sitemap-walker.php on line 78
i just want to know the where i can change the title , Meta description , Meta keywords for the home page. if i have selected the any costume page for the home page then i have the option for updating those setting but in case if all the post is showing on the home page and no home page is selected in the setting --> reading setting in word-press admin. then i am not able to find that option.
In preparation for BuddyPress and BBPress support, one thing is glaringly obvious: user profile URLs, in normal WP /author/admin etc. are currently not in any XML sitemap.
They should be. Two things need doing for that:
Some things to fix:
Version 1.4.11
On the Titles & Metas page there's no submit button, so we can't save the settings
If the columns Focus KW and Meta Desc. are activated (in screen options) and you filter custom post types on drafts or pending posts, and you hover over Focus KW or Meta Desc., the column gets widened (top and bottom).
This is not the case with SEO.
This happens with post statusses pending and draft and on page 3 (and higher) on all/published.
I tested the same on another site which uses the same plugin. It also occurs there, with all post statusses, not just pending/draft.
It seems to be caused by the arrow which appears next to it when hovering...
This pull request is incredibly messy but it might actually have a point re the JS:
Hi, on the Titles & Metas > General page, there's an option to "Hide RSS Links".
Could you kindly expand this setting to allow us to chose which RSS link specifically to hide?
I mean this: WordPress includes two RSS feeds - the main feed and the comments feed. I would like to be able to hide only the comments feed, but not the main feed. This is because I have disabled comments completely on my website - I don't need or want comments - but the (empty) comments feed link still exists in the 'head' section anyway, and therefore appears in the address bar of some browsers like Firefox etc.
So it would be great if this plugin would allow me to only disable that one feed but not the main feed. :)
Thanks!
when the setting for removing ?replytocom variables is checked, they should also be 301 redirected away when opened.
From Hassan as well:
Because I was testing this on an Arabic installation of WordPress, I noticed something... the layout of the plugin pages is a mess! There was no RTL support and the settings pages were just unusable, so I took a stab at that. Mainly, most of the CSS issues where coming from the file /css/yst_plugin_tools.css, fixing those was easy; here are the RTL-specific styles you need. You can put them in a separate CSS file and load it conditionally with the WP function is_rtl() -- just like how core is doing it. I have tested it and can confirm it's working great. Comparison screenshot
apply_filters
should be used whenever things are output on the frontend. It's used in some areas and not in others, ie:
echo '<meta name="twitter:card" content="' . apply_filters( 'wpseo_twitter_card_type', 'summary' ) . '"/>' . "\n";
That's great! This is not:
echo '<meta name="twitter:site" content="@' . trim( $this->options['twitter_site'] ) . '"/>' . "\n";
echo '<meta name="twitter:creator" content="@' . $twitter . '"/>' . "\n";
I'm running into this issue specifically with Twitter card markup but it exists in other areas as well.
Got an email from one of our translators (Hassan) who'd gone through the core rather meticulously, please address all these small issues:
Both from Hassan too:
#pointer-primary { margin: 0 5px 0 0; }
in file /admin/class-pointers.php starting at line 193, you need to keep it as it is plus duplicate a "flipped" version below it, that is
#pointer-primary { margin: 0 0 0 5px; }
for better spacing when in RTL mode. You need to just write it in the same file after performing a is_rtl() check. Comparison screenshot
If the file doesn't exist, it makes sense to add the redirect.
Page analysis first paragraph keyword check does a naive search based on substring
// First Paragraph Test
if ( stripos( $firstp, $job["keyword"] ) === false && stripos( $firstp, $job["keyword_folded"] ) === false ) {
$this->save_score_result( $results, 3, $scoreFirstParagraphLow, 'keyword_first_paragraph' );
} else {
$this->save_score_result( $results, 9, $scoreFirstParagraphHigh, 'keyword_first_paragraph' );
}
This means a keyword check for 'mass' and 'sign' will pass as well as nonword substrings like 'lish' in the paragraph below.
Final Fantasy XI is a massively multiplayer online role-playing game (MMORPG), developed and published by Square as part of the Final Fantasy. Designed and produced by Hiromichi Tanaka, it was released in Japan on May 16, 2002 for Sony's PlayStation 2, and for Microsoft Windows-based personal computers in November of that year.
When the plugin directory url is pointing to different domain is not getting the sistemap loaded ..... can not reach the plugin directory as it is different domain from the header.
Please list what still needs to be done for this integration as far as you know :)
It appears that if a blog has an ampersand (&) in their site title, (ie Dogs & Cats), and the sitetitle is called or if it's manually entered as "Dogs & Cats" in the SEO -> Titles & Meta -> Posts -> Title Templates text field, during a New Post action the default SEO title field will say Dogs & amp ; Cats. (without spaces, basically the entity name of the &)
On my site I use custom post types and for these posts I use a standard template description, so if I don't define one, something is still used as description
I use this format: All available info about %%title%%
Often I use a keyword from the title.
If I don't define a title, the displayed title is the one which is defined in the settings, but this doesn't happen for meta description.
Now the keyword is counted in the title part but not in the description part.
If the defined description from the settings would also be displayed, like with title, it would also get a YES on meta description when searching for the keyword.
As you can see I defined freeride as focus keyword.
The title displays the title according to settings, and gets counted twice.
The description I defined for meta in the settings includes the title of the post (the name of the event) and thus the word freeride, but it doesn't get counted.
There are some plugins to change the back-end language per user. They filter locale
, but when they are loaded after WordPress SEO that filter comes too late, because load_plugin_textdomain()
is called way too early.
Solution: load the language after wp_loaded
.
Generating the author sitemap on a site with a lot of users creates an enormous memory leak, this came in from a user (removed user specific stuff):
Today we have more than 30.000 posts and more than 50.000 users.
I had to increase the PHP memory from 256M to 1024M to create the sitemap, with only posts and users/authors checked (about 80.000 lines as total) to make it work.
Otherwise was giving me 500 error ([Mon Jun 24 14:18:16 2013] [error] [client 24.233.162.52] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /redacted/wp-includes/meta.php on line 574, referer: http://example.com/wp-admin/admin.php?page=wpseo_xml)
As we cannot set the PHP to 1024M, I decided to uncheck the users/authors and set the PHP with 256M and sitemapping only the posts. That way, everything worked fine.
Hi,
If you disable Page Analysis with help of the filter
add_filter( 'wpseo_use_page_analysis', '__return_false' );
Saving of custom post types do fail.
Error log:
/// PHP Fatal error: Class 'Yoast_TextStatistics' not found in ... /wp-content/plugins/wordpress-seo/admin/class-metabox.php
The last fix suggested here: http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-php-fatal-error-with-wpseo_use_page_analysis-set-to-false-for-posts-with-focuskw
works very well.
Would be good to include this to your code base.
Many thanks!
As by the sitemaps protocol, the "loc" element should have encoded entities otherwise it will result on a XML parsing error (http://www.sitemaps.org/protocol.html#escaping)
Checkout diff with a working patch on https://gist.github.com/felipelavinz/67899acb59ac2be314ac
Google webmaster tools is giving an incorrect date format.
correct entries show:
2013-06-25T07:37:32+00:00
incorrect entries look like this:
2013-06-20 19:25:06
There is some discussion here:
http://wordpress.org/support/topic/google-sitemap-error
Problem:
Within the Permalink Settings I have stripped the Category Base from Category URLs.
Now within a category the first page is working fine without the category base. When I want to view the second page I get an 404 error. When I add the category base to the url, I can view the second page
More detail I find here:
http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-permalinks-category-base-problem
Solution for now:
Uncheck the 'category base checkbox', save, check the 'category base checkbox' again, save. Now it should work again.
Just found this bug today after adding a category template for my theme, hope it's usefull :)
Wp version 3.5.1
plugin version 1.4.7
When using an attribute in the
element in the first paragraph, the page analysis will tell you the set keyword doesn't appear in the first paragraph, even if it does.
The og:image and og:description set in the Social tab are not outputted to the frontpage.
Also described as issue here:
http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-ogdescription-not-inserted
WP 3.5.1 with latest Genesis.
This was proposed by a customer:
yoastbreadcrumbs.php line 228
if (is_single() && $opt['singlecatprefix']) {
$tax = get_object_taxonomies(get_post(), 'objects');
$cats = get_the_category();
$cat = $cats[0];
if ( is_object($cat) ) {
if ($cat->parent != 0) {
$output .= get_category_parents($cat->term_id, true, " ".$opt['sep']." ");
} else {
$output .= ''.$cat->name.' '.$opt['sep'].' ';
}
}
elseif (is_array($tax))
{
reset($tax);
$first_key = key($tax);
$terms = wp_get_post_terms(get_the_ID(),$tax[$first_key]->slug);
$terms = array_reverse($terms);
foreach($terms as $term){
$output .= ''.$term->name.' '.$opt['sep'].' ';
}
}
They say it should work like this ;)
I dont know when it changed of if it have ever been like that, but when you edit a media file, then the meta boxes are there from the plugin, but it is not saved because you are using
add_action( 'wp_insert_post', array( $this, 'save_postdata' ) );
in file class-metabox.php
So if you just add this below
add_action( 'edit_attachment', array( $this, 'save_postdata' ) );
It all works again.
WordPress 3.6 beta enforces strict standards, and thus throws this warning:
Strict Standards: Declaration of Sitemap_Walker::end_el() should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/wordpress-seo/inc/class-sitemap-walker.php on line 81
Every other week we'll get emails from people who have an issue because the XML sitemap throws an error. When you look at their XML sitemap, the issue is some other plugin or their theme outputs a line of whitespace and that means the XML opening tag isn't on the first line, causing issues.
I was wondering whether it'd be possible to do an output buffer from a very early stage, as early as we can detect we're going to output an XML sitemap, and then flush that buffer empty before we start outputting the XML sitemap, so this can't happen. Could you research?
I want to add a welcome screen for when people update and install the plugin, like the WordPress one:
/wp-admin/about.php?updated
I'd want a specific one for updates and for installs. If you add the basic functionality I'll add the content :)
This would replace the introduction tour we currently have that's bothering quite a few people and include the tracking request we currently do, so basically we'd deprecate class-pointer.php with this...
The bug is even showing itself on yoast.com:
http://yoast.com/post_tag-sitemap.xml
As you can see it only indexed the first 25.
If number of posts in XML sitemap is set to 50 or so, make it do that for taxonomy sitemaps too.
I am receiving a sitemap / crawl error due to incorrect links generated by the Yoast WordPress plugin.
The URLs highlighted below are incorrect given our setup. How can I update the plugin PHP files to correct this?
For example:
http://www.dotcom-monitor.com/blog/page/2/ should be http://www.dotcom-monitor.com/blog/index.php/page/2/
The blog's URL is http://www.dotcom-monitor.com/blog/
Thank you very much!
Cheers,
Dan
Per http://www.jitbit.com/news/183-how-google-authorship-decreased-our-traffic-by-90/
while that's a bit too "aggressive" in it's conclusions, an option to disable rel="author"
on certain post types probably is a good idea.
if you put in
Gas Turbines Service: Alba Power, Olympus and Avon Turbine Specialists
says 0 chars left
Add 1 more char it jumps to -10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.