tollmanz / ostrichcize

A WordPress plugin to hide PHP errors for specified plugins or themes
26 stars 2 forks source link

Slashes depend on settings #6

Closed franz-josef-kaiser closed 11 years ago

franz-josef-kaiser commented 11 years ago

Not every blog has a trailing slash, like used here.

$paths[] = user_trailingslashit( trailingslashit( $dir ) . $slug );

user_trailingslashit() considers that fact.

tollmanz commented 11 years ago

The trailing slash is not added to the end of a URL. It is added to a path of a plugin. For instance, it changes: /Users/me/Sites/my-site/wp-content/plugins/buddypress to /Users/me/Sites/my-site/wp-content/plugins/buddypress/. The reason I elected to add the slash is to ensure that incorrect plugins are not ostrichcized. For instance, without the slash, a buddypress plugin that has the following path may be silenced: /Users/me/Sites/my-site/wp-content/plugins/buddypress-like-button. I think the slash is necessary and thus I'm closing the issue for now.