<?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; Topic: Add a filter to wp_unique_filename</title>
		<link>http://wordpress.org/ideas/topic/add-a-filter-to-wp_unique_filename</link>
		<description>WordPress Ideas &#187; Topic: Add a filter to wp_unique_filename</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 13:44:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/ideas/rss/topic/add-a-filter-to-wp_unique_filename" rel="self" type="application/rss+xml" />

		<item>
			<title>Jen Mylo on "Add a filter to wp_unique_filename"</title>
			<link>http://wordpress.org/ideas/topic/add-a-filter-to-wp_unique_filename#post-16386</link>
			<pubDate>Thu, 25 Mar 2010 10:42:43 +0000</pubDate>
			<dc:creator>Jen Mylo</dc:creator>
			<guid isPermaLink="false">16386@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>@coldwinds: You were right to ost this in Ideas rather than on Trac, as ideas for core are meant to be discussed here and added to Trac only when it's been decided that they belong there. However, you should include an intro to the code to describe what you are proposing and why, to make it easier to scan the forum threads. </p>
<p>@John James Jacoby: The only time someone should go to Trac to propose a change rather than the Ideas forum is if it is a bug ticket. All enhancements and feature requests are meant to be discussed here first, and moved to Trac when it's been determined by the core team that they should be implemented.
</p>]]></description>
					</item>
		<item>
			<title>John James Jacoby on "Add a filter to wp_unique_filename"</title>
			<link>http://wordpress.org/ideas/topic/add-a-filter-to-wp_unique_filename#post-16270</link>
			<pubDate>Tue, 23 Mar 2010 04:34:23 +0000</pubDate>
			<dc:creator>John James Jacoby</dc:creator>
			<guid isPermaLink="false">16270@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p><a href="http://core.trac.wordpress.org" rel="nofollow">http://core.trac.wordpress.org</a></p>
<p>Add a ticket and file it as an enhancement request.
</p>]]></description>
					</item>
		<item>
			<title>coldwinds on "Add a filter to wp_unique_filename"</title>
			<link>http://wordpress.org/ideas/topic/add-a-filter-to-wp_unique_filename#post-14493</link>
			<pubDate>Fri, 25 Dec 2009 17:34:44 +0000</pubDate>
			<dc:creator>coldwinds</dc:creator>
			<guid isPermaLink="false">14493@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>function wp_unique_filename( $dir, $filename, $unique_filename_callback = null )</p>
<p>======</p>
<pre><code>function wp_upload_bits( $name, $deprecated, $bits, $time = null ) {
	if ( empty( $name ) )
		return array( &#039;error&#039; =&#62; __( &#039;Empty filename&#039; ) );

	$wp_filetype = wp_check_filetype( $name );
	if ( !$wp_filetype[&#039;ext&#039;] )
		return array( &#039;error&#039; =&#62; __( &#039;Invalid file type&#039; ) );

	$upload = wp_upload_dir( $time );

	if ( $upload[&#039;error&#039;] !== false )
		return $upload;

***=&#62;	$filename = wp_unique_filename( $upload[&#039;path&#039;], $name );</code></pre>
<p>There is no way to use custom wp_unique_filename generator @ function wp_upload_bits
</p>]]></description>
					</item>

	</channel>
</rss>
