<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress Ideas &#187; Tag: alt tag - Recent Posts</title>
		<link>http://wordpress.org/ideas/tags/alt-tag</link>
		<description>WordPress Ideas &#187; Tag: alt tag - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 10:55:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/ideas/rss/tags/alt-tag" rel="self" type="application/rss+xml" />

		<item>
			<title>sergeliatko on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified/page/2#post-24079</link>
			<pubDate>Mon, 21 Jan 2013 19:50:03 +0000</pubDate>
			<dc:creator>sergeliatko</dc:creator>
			<guid isPermaLink="false">24079@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>you welcome
</p>]]></description>
					</item>
		<item>
			<title>AlecRust on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified/page/2#post-24076</link>
			<pubDate>Mon, 21 Jan 2013 17:43:23 +0000</pubDate>
			<dc:creator>AlecRust</dc:creator>
			<guid isPermaLink="false">24076@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>That's great, thanks for that.
</p>]]></description>
					</item>
		<item>
			<title>sergeliatko on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified/page/2#post-24035</link>
			<pubDate>Mon, 14 Jan 2013 22:04:45 +0000</pubDate>
			<dc:creator>sergeliatko</dc:creator>
			<guid isPermaLink="false">24035@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>this is the exact php i'm using under wp 3.5 </p>
<pre><code>/* image SEO reminder class
 by serge liatko
 updated version 0.3
*/
class image_seo_reminder {
	private $allowed = array(
		&#039;a&#039; =&#62; array(
			&#039;class&#039; =&#62; array(),
			&#039;href&#039; =&#62; array(),
			&#039;rel&#039; =&#62; array(),
			&#039;title&#039; =&#62; array(),
			&#039;target&#039; =&#62; array()),
		&#039;span&#039; =&#62; array(
			&#039;class&#039; =&#62; array(),
			&#039;title&#039; =&#62; array()),
		&#039;em&#039; =&#62; array(),
		&#039;strong&#039; =&#62; array(),
		&#039;u&#039; =&#62; array(),
		&#039;code&#039; =&#62; array(),
		&#039;sup&#039; =&#62; array(),
		&#039;sub&#039; =&#62; array(),
		&#039;cite&#039; =&#62; array(),
		&#039;strike&#039; =&#62; array(),
		&#039;br&#039; =&#62; array()
	);
	public function __construct() {
		add_action(&#039;admin_init&#039;,array($this,&#039;admin_init&#039;),99,0);
	}
	public function admin_init() {
		add_filter( &#34;manage_media_columns&#34;, array($this,&#039;img_columns&#039;),10,1);
		add_action(&#039;manage_media_custom_column&#039;,array($this,&#039;print_img_columns&#039;),10,2);
	}
	public function img_columns($columns) {
		$columns[&#039;image_alt&#039;] = __(&#039;Alternative Text&#039;);
		$columns[&#039;post_excerpt&#039;] = __(&#039;Caption&#039;);
		return $columns;
	}
	public function print_img_columns($name, $post_id) {
		$attachment = get_post($post_id);
		if(!is_object($attachment) &#124;&#124; is_wp_error($attachment)) return;
		if(substr($attachment-&#62;post_mime_type, 0, 5) == &#039;image&#039;) {
			switch($name) {
				case &#039;image_alt&#039; :
					$none = &#039;&#60;span style=&#34;color:#dd0000;&#34;&#62;&#039;. __(&#039;Empty&#039;) .&#039;&#60;/span&#62;&#039;;
					$alt = stripslashes(get_post_meta($post_id, &#039;_wp_attachment_image_alt&#039;, true ));
					echo !empty($alt) ? $alt : $none;
				break;

				case &#039;post_excerpt&#039; :
					echo (!empty($attachment-&#62;post_excerpt)) ? trim(wptexturize(wp_kses(stripslashes($attachment-&#62;post_excerpt), $this-&#62;allowed))) : &#039;&#039; ;
				break;
			}
		}
	}
}
$image_seo_reminder = new image_seo_reminder ;</code></pre>
<p>which is great as adds extra columns on media library screen that tells (in red) "empty" when user has forgotten to add alternative text
</p>]]></description>
					</item>
		<item>
			<title>AlecRust on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified#post-24034</link>
			<pubDate>Mon, 14 Jan 2013 20:56:27 +0000</pubDate>
			<dc:creator>AlecRust</dc:creator>
			<guid isPermaLink="false">24034@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Have you had a chance to test this in 3.5 yeat sergeliatko?
</p>]]></description>
					</item>
		<item>
			<title>sergeliatko on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified#post-23770</link>
			<pubDate>Thu, 29 Nov 2012 00:16:19 +0000</pubDate>
			<dc:creator>sergeliatko</dc:creator>
			<guid isPermaLink="false">23770@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>ok , i will, thanks
</p>]]></description>
					</item>
		<item>
			<title>Ipstenu (Mika Epstein) on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified#post-23769</link>
			<pubDate>Thu, 29 Nov 2012 00:00:18 +0000</pubDate>
			<dc:creator>Ipstenu (Mika Epstein)</dc:creator>
			<guid isPermaLink="false">23769@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>You may want to test that with WordPress 3.5, which has revamped media.</p>
<p><a href="http://core.trac.wordpress.org/ticket/21176" rel="nofollow">http://core.trac.wordpress.org/ticket/21176</a> was resolved.
</p>]]></description>
					</item>
		<item>
			<title>sergeliatko on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified#post-23768</link>
			<pubDate>Wed, 28 Nov 2012 23:43:05 +0000</pubDate>
			<dc:creator>sergeliatko</dc:creator>
			<guid isPermaLink="false">23768@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>this version of the php is better looking/working</p>
<pre><code>/* image SEO reminder class
 by serge liatko
 updated version 0.2
*/
class image_seo_reminder {
	private $allowed = array(
		&#039;a&#039; =&#62; array(
			&#039;class&#039; =&#62; array(),
			&#039;href&#039; =&#62; array(),
			&#039;rel&#039; =&#62; array(),
			&#039;title&#039; =&#62; array(),
			&#039;target&#039; =&#62; array()),
		&#039;span&#039; =&#62; array(
			&#039;class&#039; =&#62; array(),
			&#039;title&#039; =&#62; array()),
		&#039;em&#039; =&#62; array(),
		&#039;strong&#039; =&#62; array(),
		&#039;u&#039; =&#62; array(),
		&#039;code&#039; =&#62; array(),
		&#039;sup&#039; =&#62; array(),
		&#039;sub&#039; =&#62; array(),
		&#039;cite&#039; =&#62; array(),
		&#039;strike&#039; =&#62; array(),
		&#039;br&#039; =&#62; array()
	);
	public function __construct() {
		add_action(&#039;admin_init&#039;,array($this,&#039;admin_init&#039;),99,0);
	}
	public function admin_init() {
		add_filter(&#34;attachment_fields_to_edit&#34;, array($this,&#34;alt_text_field_reminder&#34;), 15, 1);
		add_filter( &#34;manage_media_columns&#34;, array($this,&#039;img_columns&#039;),10,1);
		add_action(&#039;manage_media_custom_column&#039;,array($this,&#039;print_img_columns&#039;),10,2);
	}
	public function img_columns($columns) {
		$columns[&#039;image_alt&#039;] = __(&#039;Alternate Text&#039;);
		$columns[&#039;post_excerpt&#039;] = __(&#039;Caption&#039;);
		return $columns;
	}
	public function print_img_columns($name, $post_id) {
		$attachment = get_post($post_id);
		if(!is_object($attachment) &#124;&#124; is_wp_error($attachment)) return;
		if(substr($attachment-&#62;post_mime_type, 0, 5) == &#039;image&#039;) {
			switch($name) {
				case &#039;image_alt&#039; :
					$none = &#039;&#60;span style=&#34;color:#dd0000;&#34;&#62;&#039;. __(&#039;Empty&#039;) .&#039;&#60;/span&#62;&#039;;
					$alt = stripslashes(get_post_meta($post_id, &#039;_wp_attachment_image_alt&#039;, true ));
					echo !empty($alt) ? $alt : $none;
				break;

				case &#039;post_excerpt&#039; :
					echo (!empty($attachment-&#62;post_excerpt)) ? trim(wptexturize(wp_kses(stripslashes($attachment-&#62;post_excerpt), $this-&#62;allowed))) : &#039;&#039; ;
				break;
			}
		}
	}
	public function alt_text_field_reminder($form_fields) {
		if (isset($form_fields[&#039;image_alt&#039;]) &#38;&#38; is_array($form_fields[&#039;image_alt&#039;]) &#38;&#38; isset($form_fields[&#039;image_alt&#039;][&#039;helps&#039;])) {
			$form_fields[&#039;image_alt&#039;][&#039;helps&#039;] = __(&#039;Alt text is &#60;strong&#62;mandatory&#60;/strong&#62; if you care about SEO of your website!&#039;,&#039;ewpfi_lang&#039;) . &#039;&#38;nbsp;&#60;a href=&#34;http://wordpress.org/extend/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified/&#34; target=&#34;_blank&#34;&#62;&#039;. __(&#039;Read More&#039;) .&#039;&#60;/a&#62;&#039;;
			$form_fields[&#039;image_alt&#039;][&#039;required&#039;] = true;
		}
		return $form_fields;
	}
}
$image_seo_reminder = new image_seo_reminder ;</code></pre>]]></description>
					</item>
		<item>
			<title>sergeliatko on "Auto-populate Alternative Text to match Title unless otherwise specified"</title>
			<link>http://wordpress.org/ideas/topic/auto-populate-alternative-text-to-match-title-unless-otherwise-specified#post-23767</link>
			<pubDate>Wed, 28 Nov 2012 23:09:57 +0000</pubDate>
			<dc:creator>sergeliatko</dc:creator>
			<guid isPermaLink="false">23767@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>try using this php : </p>
<pre><code>/* image SEO reminder */
class image_seo_reminder {
	private $allowed = array(
		&#039;a&#039; =&#62; array(
			&#039;class&#039; =&#62; array(),
			&#039;href&#039; =&#62; array(),
			&#039;rel&#039; =&#62; array(),
			&#039;title&#039; =&#62; array(),
			&#039;target&#039; =&#62; array()),
		&#039;span&#039; =&#62; array(
			&#039;class&#039; =&#62; array(),
			&#039;title&#039; =&#62; array()),
		&#039;em&#039; =&#62; array(),
		&#039;strong&#039; =&#62; array(),
		&#039;u&#039; =&#62; array(),
		&#039;code&#039; =&#62; array(),
		&#039;sup&#039; =&#62; array(),
		&#039;sub&#039; =&#62; array(),
		&#039;cite&#039; =&#62; array(),
		&#039;strike&#039; =&#62; array(),
		&#039;br&#039; =&#62; array()
	);
	public function __construct() {
		add_action(&#039;admin_init&#039;,array($this,&#039;admin_init&#039;),99,0);
	}
	public function admin_init() {
		add_filter(&#34;attachment_fields_to_edit&#34;, array($this,&#34;alt_text_field_reminder&#34;), 15, 1);
		add_filter( &#34;manage_media_columns&#34;, array($this,&#039;img_columns&#039;),10,1);
		add_action(&#039;manage_media_custom_column&#039;,array($this,&#039;print_img_columns&#039;),10,2);
	}
	public function img_columns($columns) {
		$columns[&#039;image_alt&#039;] = __(&#039;Alternate Text&#039;);
		$columns[&#039;post_excerpt&#039;] = __(&#039;Caption&#039;);
		return $columns;
	}
	public function print_img_columns($name, $post_id) {
		$none = &#039;&#60;span style=&#34;color:#dd0000;&#34;&#62;&#039;. __(&#039;Empty&#039;) .&#039;&#60;/span&#62;&#039;;
		switch($name) {
			case &#039;image_alt&#039; :
				$alt = stripslashes(get_post_meta($post_id, &#039;_wp_attachment_image_alt&#039;, true ));
				echo !empty($alt) ? $alt : $none;
			break;

			case &#039;post_excerpt&#039; :
				$attachment = get_post($post_id);
				if(!is_object($attachment) &#124;&#124; is_wp_error($attachment)) break;
				echo (!empty($attachment-&#62;post_excerpt)) ? trim(wptexturize(wp_kses(stripslashes($attachment-&#62;post_excerpt), $this-&#62;allowed))) : &#039;&#039; ;
			break;
		}
	}
	public function alt_text_field_reminder($form_fields) {
		if (isset($form_fields[&#039;image_alt&#039;]) &#38;&#38; is_array($form_fields[&#039;image_alt&#039;]) &#38;&#38; isset($form_fields[&#039;image_alt&#039;][&#039;helps&#039;])) {
			$form_fields[&#039;image_alt&#039;][&#039;helps&#039;] = $form_fields[&#039;image_alt&#039;][&#039;helps&#039;] . &#039;&#60;br /&#62;&#60;abbr title=&#34;required&#34; class=&#34;required&#34;&#62;*&#60;/abbr&#62;&#38;nbsp;&#039; . __(&#039;Alt text is actually &#60;strong&#62;mandatory&#60;/strong&#62; if you care about SEO of your website!&#039;,&#039;ewpfi_lang&#039;);
		}
		return $form_fields;
	}
}
$image_seo_reminder = new image_seo_reminder ;</code></pre>]]></description>
					</item>
		<item>
			<title>Hinjiriyo on "Require alt text during uploading images"</title>
			<link>http://wordpress.org/ideas/topic/require-alt-text-during-uploading-images/page/3#post-22962</link>
			<pubDate>Sun, 30 Sep 2012 17:52:28 +0000</pubDate>
			<dc:creator>Hinjiriyo</dc:creator>
			<guid isPermaLink="false">22962@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>No.</p>
<p>There is no ALT tag like &#60;alt&#62;...&#60;/alt&#62;. There is the alt attribute some HTML elements like IMG have. I don't no how it comes to write about the "alt tag for images". In this case the alt attribute of IMG-elements is meant.</p>
<p>The alt attribute is not the same as the title attribute, see the HTML specs.
</p>]]></description>
					</item>
		<item>
			<title>jdsaraiva on "Require alt text during uploading images"</title>
			<link>http://wordpress.org/ideas/topic/require-alt-text-during-uploading-images/page/3#post-22957</link>
			<pubDate>Sun, 30 Sep 2012 12:22:50 +0000</pubDate>
			<dc:creator>jdsaraiva</dc:creator>
			<guid isPermaLink="false">22957@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Might the ALT tag be the same as the title ?
</p>]]></description>
					</item>

	</channel>
</rss>
