Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#46729 closed defect (bug) (fixed)

Site Health: use `wp_get_upload_dir` instead of `wp_upload_dir`

Reported by: m_uysl's profile m_uysl Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.2 Priority: normal
Severity: normal Version: 5.2
Component: Site Health Keywords: has-patch site-health
Focuses: Cc:

Description

I think using the lightweight edition of the wp_upload_dir can be more accurate in WP_Debug_Data::debug_data()

Attachments (1)

46729.patch (971 bytes) - added by m_uysl 6 years ago.
this patch also removes an unnecessary call to wp_upload_dir

Download all attachments as: .zip

Change History (6)

@m_uysl
6 years ago

this patch also removes an unnecessary call to wp_upload_dir

#1 @m_uysl
6 years ago

  • Keywords has-patch added

#2 @xkon
6 years ago

  • Keywords site-health added

#3 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 5.2

#4 @SergeyBiryukov
6 years ago

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

In 45108:

Site Health: Use wp_get_upload_dir() instead of wp_upload_dir(), remove duplicate call.

Props m_uysl.
Fixes #46729.

#5 @spacedmonkey
6 years ago

  • Component changed from Administration to Site Health
Note: See TracTickets for help on using tickets.