Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#29058 closed enhancement (fixed)

Use wp_normalize_path() in plugins_url()

Reported by: SergeyBiryukov Owned by: SergeyBiryukov
Priority: normal Milestone: 4.0
Component: Plugins Version:
Severity: normal Keywords: good-first-bug has-patch
Cc: Focuses:

Description

We do a bunch of string replacements in plugins_url(), see [28739].

We can use wp_normalize_path() instead (introduced in [27158]), like we do in plugin_basename() and a few other places.

Attachments (1)

29058.patch​ (1.4 KB ) - added by paulschreiber 12 years ago.

Download all attachments as: .zip

Change History (4)

#1 @paulschreiber
12 years ago

  • Keywords has-patch added; needs-patch removed

The attached patch uses wp_normalize_path(), as requested.

#2 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review → 4.0

#3 @SergeyBiryukov
12 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 29375:

Use wp_normalize_path() in plugins_url().

props paulschreiber.
fixes #29058.

Note: See TracTickets for help on using tickets.