Okay
  Public Ticket #3629507
Paths
Closed

Comments

  •  1
    ClubLana-Antiage website started the conversation

    Hello!

    I am using WP HIDE plugin to securely hide real paths to plugins and themes.

    It works correct with everything except paths written in the files like manifest, firebase, etc. I could fix paths manually with bash code on cpanel. But I do not know which files except manifest and firebase have full paths to plugins, wp-include, wp-content, etc system and theme's directories and files. 


    Could you send me list with these files which include paths to files?

  • [deleted] replied

    its in vibebp plugin : 



    wp-content/plugins/vibebp/includes/class.actions.php:
      833          $site_root = get_home_path();    
      834  
      835:         if(!file_exists($site_root.'/manifest.json') || $force){
      836:             $myFile = $site_root."/manifest.json";
      837              $fh = fopen($myFile, 'w');
      838              fwrite($fh, json_encode($manifest)."\n");
    /wp-content/plugins/vibebp/includes/class.settings.php:
     2002          }
     2003          $site_root = get_home_path();    
     2004:         if(!file_exists($site_root.'/manifest.json')){
     2005              echo '<div class="notice notice-error is-dismissible"><p>Missing manifest for the PWA.<a href="https://www.youtube.com/watch?v=LSHRqf-gm14" target="_blank">Reference Video</a></p></div>';
     2006              return;
    /wp-content/plugins/vibebp/includes/shortcodes/class.shortcodes.php:
      227                          $site_root = get_home_path();                          
      228  
      229:                         if(file_exists($site_root.'/manifest.json')){
      230  
      231:                             echo '<link rel="manifest" href="'.untrailingslashit(function_exists('network_site_url') && is_multisite()?network_site_url():site_url()).'/manifest.json'.'"><meta name="theme-color" content="'.$theme_color.'"><meta name="theme-color" content="'.$theme_color.'"><meta name="msapplication-TileColor" content="'.$theme_color.'"><meta name="msapplication-config" content="none"><meta name="msapplication-navbutton-color" content="'.$theme_color.'">';
      232                          }
      233