403Webshell
Server IP : 167.235.67.158  /  Your IP : 216.73.216.179
Web Server : Apache
System : Linux ubuntu-8gb-nbg1-1 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : upstairsbar.co.uk ( 982)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/pawsandpatience.co.uk/wp-content/plugins/wp-smushit/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/pawsandpatience.co.uk/wp-content/plugins/wp-smushit/core//class-string-utils.php
<?php

namespace Smush\Core;

class String_Utils {
	/**
	 * Returns the raw (untranslated) string for storage in the database.
	 * Any additional parameters should be calls to __() to ensure all strings are extracted for translation.
	 *
	 * Example usage:
	 *   $raw = (new String_Utils())->get_raw_string(
	 *     $activated ? 'CDN activated.' : 'CDN deactivated.',
	 *     __( 'CDN activated.', 'wp-smushit' ),
	 *     __( 'CDN deactivated.', 'wp-smushit' )
	 *   );
	 *
	 * @param string $raw_text The raw English string to store.
	 * @param string ...$translated_texts One or more translated strings (from __()), used only for .pot extraction.
	 * @return string The raw string for storage.
	 */
	public function get_raw_string( $raw_text, ...$translated_texts ) {
		return $raw_text;
	}

	/**
	 * Returns the translated string for display, based on the current site language.
	 *
	 * Example usage:
	 *   echo (new String_Utils())->get_translated_string( 'CDN activated.' );
	 *
	 * @param string $raw_text The raw English string stored in the database.
	 * @return string The translated string.
	 */
	public function get_translated_string( $raw_text ) {
		return translate( $raw_text, 'wp-smushit' );//phpcs:ignore.
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit