PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wpml-string-translation
/
classes
/
strings-scanning
<?php class WPML_File_Name_Converter { /** * @var string */ private $home_path; /** * @param string $file * * @return string */ public function transform_realpath_to_reference( $file ) { $home_path = $this->get_home_path(); return str_replace( $home_path, '', $file ); } /** * @param string $file * * @return string */ public function transform_reference_to_realpath( $file ) { $home_path = $this->get_home_path(); return trailingslashit( $home_path ) . ltrim( $file, '/\\' ); } /** * @return string */ private function get_home_path() { if ( null === $this->home_path ) { if ( ! function_exists( 'get_home_path' ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; } $this->home_path = get_home_path(); } return $this->home_path; } }
[-] class-wpml-st-theme-plugin-hooks.php
[edit]
[-] class-wpml-st-theme-plugin-scan-files-ajax.php
[edit]
[-] class-wpml-st-strings-stats.php
[edit]
[-] class-wpml-file-name-converter.php
[edit]
[-] class-wpml-themes-and-plugins-updates.php
[edit]
[-] class-wpml-st-file-hashing.php
[edit]
[+]
factory
[-] class-wpml-themes-and-plugins-settings.php
[edit]
[-] iwpml-st-string-scanner.php
[edit]
[+]
..
[-] class-wpml-st-update-file-hash-ajax.php
[edit]
[-] wpml-st-theme-plugin-scan-dir-ajax.php
[edit]