<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pressed Words &#187; Widgets</title>
	<atom:link href="http://pressedwords.com/tag/widgets/feed/" rel="self" type="application/rss+xml" />
	<link>http://pressedwords.com</link>
	<description>News and commentary about all things WordPress</description>
	<lastBuildDate>Thu, 11 Jun 2009 03:54:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<item>
		<title>5 Things of Interest to Developers in the New WordPress 2.8</title>
		<link>http://pressedwords.com/stuff-new-in-wp-2-8-for-coders/</link>
		<comments>http://pressedwords.com/stuff-new-in-wp-2-8-for-coders/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 03:53:44 +0000</pubDate>
		<dc:creator><![CDATA[Austin Matzko]]></dc:creator>
				<category><![CDATA[Releases]]></category>
		<category><![CDATA[Version 2.8]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://pressedwords.com/?p=186</guid>
		<description><![CDATA[With each major WordPress release, public changes like the new widgets administrative interface usually get all the glory. Here are some new features in WordPress 2.8 that most users won&#8217;t even know exist but you will probably care about, if you&#8217;re a WordPress developer. Widgets API The new widgets API lets you create widgets by [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>With each major WordPress release, public changes like the new widgets administrative interface usually get all the glory.  Here are some new features in <a href="http://wordpress.org/development/2009/06/wordpress-28/">WordPress 2.8</a> that most users won&#8217;t even know exist but you will probably care about, if you&#8217;re a WordPress developer.</p>
<ul>
<li><strong>Widgets API</strong>  The <a href="http://codex.wordpress.org/WordPress_Widgets_Api">new widgets API</a> lets you create widgets by extending the <code>WP_Widget</code> class.  If making a multi-widget with the old system was like trying to piece together your kid&#8217;s bicycle on Christmas Eve, the new API rolls out the bike for you, tires inflated and topped with a bow.
</li>
<li><strong>SimplePie RSS</strong>  WordPress has been using the MagpieRSS class to parse RSS feeds.  Trouble is, Magpie development ground to a halt about four years ago, meaning when contemporary feeds flummoxed Magpie, flustered developers <a href="http://core.trac.wordpress.org/ticket/2864">fumed, futilely</a>.  In 2.8, WordPress now reads RSS with <a href="http://simplepie.org/">SimplePie</a>, an active project with a robust API.
</li>
<li><strong>New Escape Functions</strong>  A new set of functions consistently named and <a href="http://en.wikipedia.org/wiki/DRY">DRY</a>-er now make your strings sparkly clean and cuddly safe.
<ul>
<li><code>esc_sql()</code>: A wrapper for the <code>$wpdb->escape()</code> method.</li>
<li><code>esc_url()</code>: Clean up an untrustworthy URL for printing.</li>
<li><code>esc_url_raw()</code>: Clean up an untrustworthy URL for storing in the database.</li>
<li><code>esc_js()</code>: Make text suitable for printing as a JavaScript string.</li>
<li><code>esc_html()</code>: Convert characters that have special meaning in HTML (such as <code>&gt;</code> and <code>&lt;</code>) into their equivalent character entities.</li>
<li><code>esc_attr()</code>: Prepare text so that it&#8217;s safe to be used in an HTML element attribute.</li>
<li><code>esc_attr__()</code>, <code>esc_attr_e()</code>, and <code>esc_attr_x()</code>: Make a translatable string safe for printing as an HTML element attribute.  E.g., <code>&lt;a href=&#034;&#034; title=&#034;&lt;?php esc_attr_e('Translate me'); ?&gt;&#034;&gt;</code></li>
<li><code>esc_html__()</code> and <code>esc_html_e()</code>: Like the last two, but for escaping HTML characters in general.</li>
</ul>
</li>
<li><strong><code>get_the_author_meta()</code></strong> User data is spread out between two database tables and has been accessed&#8212;until now&#8212;by a number of methods.  <a href="http://codex.wordpress.org/Template_Tags/the_author_meta"><code>get_the_author_meta()</code></a> retrieves user data with one easy-to-remember function.
</li>
<li><strong><code>the_post</code> Action Hook</strong> Called in <code>setup_postdata()</code>, the <code>the_post</code> action hook is one of those things that seems so obvious and so useful that you can&#8217;t believe it hasn&#8217;t existed until now.  At a crucial moment it passes the current global <code>$post</code> variable by reference: during <a href="http://codex.wordpress.org/The_Loop">the Loop</a> right after global variables are set but before they&#8217;re used in the template.
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://pressedwords.com/stuff-new-in-wp-2-8-for-coders/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 1/5 queries in 0.002 seconds using memcached
Object Caching 233/236 objects using memcached

 Served from: pressedwords.com @ 2026-04-14 20:42:38 by W3 Total Cache -->