Plugin rename
This commit is contained in:
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
* @param array $mimes Allowed mime types.
|
||||
* @return array Modified mime types.
|
||||
*/
|
||||
function mystat_add_gpx_mime_type( $mimes ) {
|
||||
function statpress_add_gpx_mime_type( $mimes ) {
|
||||
$mimes['gpx'] = 'application/gpx+xml';
|
||||
return $mimes;
|
||||
}
|
||||
@@ -24,7 +24,7 @@ function mystat_add_gpx_mime_type( $mimes ) {
|
||||
* @param array $mimes Mime types.
|
||||
* @return array Modified file data.
|
||||
*/
|
||||
function mystat_fix_gpx_upload_permission( $data, $file, $filename, $mimes ) {
|
||||
function statpress_fix_gpx_upload_permission( $data, $file, $filename, $mimes ) {
|
||||
if ( strtolower( pathinfo( $filename, PATHINFO_EXTENSION ) ) === 'gpx' ) {
|
||||
$data['ext'] = 'gpx';
|
||||
$data['type'] = 'application/gpx+xml';
|
||||
|
||||
Reference in New Issue
Block a user