Plugin rename

This commit is contained in:
2026-02-12 22:34:54 +01:00
parent 0e5be7b590
commit d303a55638
16 changed files with 279 additions and 282 deletions
+2 -2
View File
@@ -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';