Title: wildcomputations's Replies | WordPress.org

---

# wildcomputations

  [  ](https://wordpress.org/support/users/wildcomputations/)

 *   [Profile](https://wordpress.org/support/users/wildcomputations/)
 *   [Topics Started](https://wordpress.org/support/users/wildcomputations/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wildcomputations/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wildcomputations/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wildcomputations/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wildcomputations/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wildcomputations/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP GPX Maps] Only admin can upload, not editor.](https://wordpress.org/support/topic/only-admin-can-upload-not-editor/)
 *  [wildcomputations](https://wordpress.org/support/users/wildcomputations/)
 * (@wildcomputations)
 * [7 years ago](https://wordpress.org/support/topic/only-admin-can-upload-not-editor/#post-11480041)
 * Agreed, I too am experiencing this issue. In my case, I only have authors on 
   my site, no editors, but I didn’t want them changing the global settings. Here
   are the changes I made to let authors upload GPS tracks.
 *     ```
       --- wp-gpx-maps.php_orig	2019-04-29 21:42:35.000000000 -0400
       +++ wp-gpx-maps.php	2019-04-29 21:43:24.000000000 -0400
       @@ -41,7 +41,12 @@
            // check to make sure we are on the correct plugin
            if ($file == $this_plugin) {
                // the anchor tag and href to the URL we want. For a "Settings" link, this needs to be the url of your settings page
       -        $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/options-general.php?page=WP-GPX-Maps">Settings</a>';
       +        if ( current_user_can('manage_options') ) {
       +            $menu_root = "options-general.php";
       +        } else if ( current_user_can('publish_posts') ) {
       +            $menu_root = "admin.php";
       +        }
       +        $settings_link = '<a href="' . get_bloginfo('wpurl') . '/wp-admin/' . $menu_root . '?page=WP-GPX-Maps">Settings</a>';
                // add the link to the list
                array_unshift($links, $settings_link);
            }
       --- wp-gpx-maps_admin_tracks.php_orig	2019-04-29 21:28:13.000000000 -0400
       +++ wp-gpx-maps_admin_tracks.php	2019-04-29 21:48:06.000000000 -0400
       @@ -3,12 +3,17 @@
        	if ( !(is_admin()) )
        		return;
   
       -	$is_admin = current_user_can( 'manage_options' );
       +	$is_admin = current_user_can( 'publish_posts' );
   
        	if ( $is_admin != 1 )
        		return;
   
        	$gpxRegEx = '/.gpx$/i';
       +        if ( current_user_can('manage_options') ){
       +            $menu_root = "options-general.php";
       +        } else if ( current_user_can('publish_posts') ){
       +            $menu_root = "admin.php";
       +        }
   
        	if ( isset($_POST['clearcache']) )
        	{
       @@ -29,7 +34,8 @@
        	?>
   
        		<div class="tablenav top">
       -			<form enctype="multipart/form-data" method="POST" style="float:left; margin:5px 20px 0 0" action="/wp-admin/options-general.php?page=WP-GPX-Maps">
       +<?php
       +            echo '<form enctype="multipart/form-data" method="POST" style="float:left; margin:5px 20px 0 0" action="' . get_bloginfo('wpurl') . '/wp-admin/' . $menu_root . '?page=WP-GPX-Maps">'; ?>
        				Choose a file to upload: <input name="uploadedfile[]" type="file" onchange="submitgpx(this);" multiple />
        				<?php
        					if ( isset($_FILES['uploadedfile']) )
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EU Cookie Law for GDPR/CCPA] Page not refreshing in Chrome after accept](https://wordpress.org/support/topic/page-not-refreshing-in-chrome-after-accept/)
 *  Thread Starter [wildcomputations](https://wordpress.org/support/users/wildcomputations/)
 * (@wildcomputations)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/page-not-refreshing-in-chrome-after-accept/#post-10403426)
 * P.S. I’ve temporarily modified `scripts.js` on my installation to always `location.
   reload(true);` and that makes Chrome behave correctly.

Viewing 2 replies - 1 through 2 (of 2 total)