[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
rocket-lazy-load
/
src
/
Dependencies
/
LaunchpadOptions
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Interfaces
SET
[ DEL ]
📁 Traits
SET
[ DEL ]
📄 Options.php
1,936 B
SET
[ EDIT ]
|
[ DEL ]
📄 Set.php
3,015 B
SET
[ EDIT ]
|
[ DEL ]
📄 Settings.php
2,703 B
SET
[ EDIT ]
|
[ DEL ]
📄 SiteOptions.php
1,890 B
SET
[ EDIT ]
|
[ DEL ]
📄 Transients.php
1,641 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Options.php
<?php namespace RocketLazyLoadPlugin\Dependencies\LaunchpadOptions; use RocketLazyLoadPlugin\Dependencies\LaunchpadOptions\Interfaces\OptionsInterface; use RocketLazyLoadPlugin\Dependencies\LaunchpadOptions\Traits\PrefixedKeyTrait; /** * Manages single site options using the WordPress options API. */ class Options implements OptionsInterface { use PrefixedKeyTrait; /** * Constructor * * @param string $prefix options prefix. */ public function __construct( string $prefix = '' ) { $this->prefix = $prefix; } /** * Gets the option for the given name. Returns the default value if the value does not exist. * * @param string $name Name of the option to get. * @param mixed $default Default value to return if the value does not exist. * * @return mixed */ public function get( string $name, $default = null ) { $option = get_option( $this->get_full_key( $name ), $default ); if ( is_array( $default ) && ! is_array( $option ) ) { $option = (array) $option; } return $option; } /** * Sets the value of an option. Update the value if the option for the given name already exists. * * @param string $name Name of the option to set. * @param mixed $value Value to set for the option. * * @return void */ public function set( string $name, $value ) { update_option( $this->get_full_key( $name ), $value ); } /** * Deletes the option with the given name. * * @param string $name Name of the option to delete. * * @return void */ public function delete( string $name ) { delete_option( $this->get_full_key( $name ) ); } /** * Gets the option name used to store the option in the WordPress database. * * @param string $name Unprefixed name of the option. * @deprecated Only for WP Rocket backward compatibility. * @return string */ public function get_option_name( string $name ): string { return $this->get_full_key( $name ); } }