Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#29058 closed enhancement (fixed)

Use wp_normalize_path() in plugins_url()

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

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 10 years ago.

Download all attachments as: .zip

Change History (4)

#1 @paulschreiber
10 years ago

  • Keywords has-patch added; needs-patch removed

The attached patch uses wp_normalize_path(), as requested.

#2 @SergeyBiryukov
10 years ago

  • Milestone changed from Awaiting Review to 4.0

#3 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 29375:

Use wp_normalize_path() in plugins_url().

props paulschreiber.
fixes #29058.

Note: See TracTickets for help on using tickets.