<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.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>Gravity Support Forums Topic: Don&#039;t hardcode wp-content - bad things happen</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dont-hardcode-wp-content-bad-things-happen</link>
		<description>Gravity Support Forums Topic: Don&#039;t hardcode wp-content - bad things happen</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 19:58:42 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/dont-hardcode-wp-content-bad-things-happen" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Don&#039;t hardcode wp-content - bad things happen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dont-hardcode-wp-content-bad-things-happen#post-36217</link>
			<pubDate>Mon, 26 Sep 2011 10:23:31 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">36217@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the tip Ptah.&#60;br /&#62;
However, the GRAVITY_MANAGER_URL refers to the URL in our server (so we can trust on the location of the wp-content folder). I will look at the affected files and try to use your snippet.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ptahdunbar on "Don&#039;t hardcode wp-content - bad things happen"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dont-hardcode-wp-content-bad-things-happen#post-36190</link>
			<pubDate>Sun, 25 Sep 2011 23:10:36 +0000</pubDate>
			<dc:creator>ptahdunbar</dc:creator>
			<guid isPermaLink="false">36190@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Given that WordPress allows you to move the wp-content directory, you can't hardcode it's location. There are all sorts of broken issues like not being able to preview forms because of this.&#60;/p&#62;
&#60;p&#62;Affected constants:&#60;br /&#62;
GRAVITY_MANAGER_URL, use WP_PLUGIN_URL&#60;/p&#62;
&#60;p&#62;Affected files:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;downloads.php&#60;/li&#62;
&#60;li&#62;preview.php&#60;/li&#62;
&#60;li&#62;print-entry.php&#60;/li&#62;
&#60;li&#62;select-columns.php&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;If you need access to WordPress functions, or need to find dynamic paths like wp-content, I wrote some code that allows you to do this:&#60;br /&#62;
&#60;a href=&#34;https://gist.github.com/1241505&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/1241505&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
