Skip to content

remove double slashes in grunion module file paths#5993

Closed
diggy wants to merge 1 commit intoAutomattic:masterfrom
diggy:patch-1
Closed

remove double slashes in grunion module file paths#5993
diggy wants to merge 1 commit intoAutomattic:masterfrom
diggy:patch-1

Conversation

@diggy
Copy link
Copy Markdown

@diggy diggy commented Dec 25, 2016

plugin_dir_path() uses trailingslashit()

plugin_dir_path() uses trailingslashit()
@jeherve jeherve added [Feature] Forms [Status] Needs Review This PR is ready for review. Bug When a feature is broken and / or not performing as intended labels Jan 9, 2017
@jeherve jeherve added this to the 4.6 milestone Jan 9, 2017
@jeherve jeherve modified the milestones: 2/17 - February, 4.7.0 - March 2017 Jan 30, 2017
@samhotchkiss samhotchkiss removed this from the 4.7.0 - March 2017 milestone Feb 3, 2017
@dereksmart
Copy link
Copy Markdown
Contributor

Thanks for the patch, this LGTM and will make it into the march release (scheduled first week of March)

@dereksmart dereksmart added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Feb 3, 2017
@jeherve jeherve added [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. and removed [Status] Ready to Merge Go ahead, you can push that green button! labels Feb 3, 2017
Copy link
Copy Markdown
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thanks for the patch! Do you think you could fix another instance where this is an issue at the same time?

Thanks!

diff --git a/modules/contact-form/admin.php b/modules/contact-form/admin.php
index e0ef1db..c03740b 100644
--- a/modules/contact-form/admin.php
+++ b/modules/contact-form/admin.php
@@ -775,7 +775,7 @@ add_action( 'omnisearch_add_providers', 'grunion_omnisearch_add_providers' );
 function grunion_omnisearch_add_providers() {
 	// Feedback uses capability_type 'page'
 	if ( current_user_can( 'edit_pages' ) ) {
-		require_once( GRUNION_PLUGIN_DIR . '/grunion-omnisearch.php' );
+		require_once GRUNION_PLUGIN_DIR . 'grunion-omnisearch.php';
 		new Jetpack_Omnisearch_Grunion;
 	}
 }

@dereksmart
Copy link
Copy Markdown
Contributor

This is being replaced by #6384

@dereksmart dereksmart closed this Feb 13, 2017
@diggy diggy deleted the patch-1 branch February 13, 2017 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Feature] Forms [Pri] Low [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants