[wp-trac] [WordPress Trac] #34190: Function Reference/wp check filetype
WordPress Trac
noreply at wordpress.org
Wed Oct 7 12:06:10 UTC 2015
#34190: Function Reference/wp check filetype
-------------------------+-------------------------------------------------
Reporter: lpkapil | Owner:
Type: defect | Status: new
(bug) | Milestone: Awaiting Review
Priority: normal | Version: 4.3.1
Component: | Resolution:
Administration | Focuses: accessibility, docs,
Severity: critical | administration, multisite, performance
Keywords: needs-patch |
-------------------------+-------------------------------------------------
Comment (by lpkapil):
'''We can patch this using code below, return the file extension only or
create file information array using get file info:'''
$fileNameArr = explode(".", $path);
return end($fileNameArr);
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34190#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list