<?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: insert into post - Recent Posts</title>
		<link>http://wordpress.org/ideas/tags/insert-into-post</link>
		<description>WordPress Ideas &#187; Tag: insert into post - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 10:51:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/ideas/rss/tags/insert-into-post" rel="self" type="application/rss+xml" />

		<item>
			<title>Bruno Ostermann on "&#039;Insert into Post&#039; button filter"</title>
			<link>http://wordpress.org/ideas/topic/insert-into-post-button-filter#post-24510</link>
			<pubDate>Sun, 24 Mar 2013 10:26:24 +0000</pubDate>
			<dc:creator>Bruno Ostermann</dc:creator>
			<guid isPermaLink="false">24510@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>I agree on this one as well, it is very confusing. Media manger should not be used in posts.
</p>]]></description>
					</item>
		<item>
			<title>webaware on "&#039;Insert into Post&#039; button filter"</title>
			<link>http://wordpress.org/ideas/topic/insert-into-post-button-filter#post-23985</link>
			<pubDate>Sun, 06 Jan 2013 09:09:37 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">23985@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Agree, it would be good to filter this button label. I currently do this with a gettext filter, but it's not the ideal way.</p>
<pre><code>add_filter(&#039;gettext&#039;, array($this, &#039;filterGettextMediaPopup&#039;));

...

/**
* replace &#34;Insert into Post&#34; label on media popup submit button
* @param string $text
* @return string
*/
public function filterGettextMediaPopup($text) {
    if ($text == &#039;Insert into Post&#039; &#38;&#38; self::isOurMediaUpload()) {
        $text = &#039;Select&#039;;
    }

    return $text;
}

/**
* check to see if this is our media upload form
* @return bool
*/
protected static function isOurMediaUpload() {
    $wpwines = isset($_GET[&#039;wpwines&#039;]) ? (string) $_GET[&#039;wpwines&#039;] : &#039;&#039;;
    return ($wpwines == &#039;product&#039; &#124;&#124; $wpwines == &#039;award&#039;);
}</code></pre>]]></description>
					</item>
		<item>
			<title>Maor Chasen on "&#039;Insert into Post&#039; button filter"</title>
			<link>http://wordpress.org/ideas/topic/insert-into-post-button-filter#post-21823</link>
			<pubDate>Sat, 21 Apr 2012 21:40:09 +0000</pubDate>
			<dc:creator>Maor Chasen</dc:creator>
			<guid isPermaLink="false">21823@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p>Totally agree on this one. Also there should be support for CPTs.
</p>]]></description>
					</item>
		<item>
			<title>mslocum on "&#039;Insert into Post&#039; button filter"</title>
			<link>http://wordpress.org/ideas/topic/insert-into-post-button-filter#post-21666</link>
			<pubDate>Mon, 02 Apr 2012 21:47:43 +0000</pubDate>
			<dc:creator>mslocum</dc:creator>
			<guid isPermaLink="false">21666@http://wordpress.org/ideas/</guid>
			<description><![CDATA[<p><a href="http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/includes/media.php" rel="nofollow">http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/includes/media.php</a><br />
Five places media.php creates a button called 'Insert into Post'. This is often times inaccurate and confusing. The media manger iframe can be used in many places other that posts. It can be used on custom types as well as widget settings and plugin settings. </p>
<p>A plugin should have the ability to change the text of the button using a filter.
</p>]]></description>
					</item>

	</channel>
</rss>
