403Webshell
Server IP : 87.229.120.60  /  Your IP : 216.73.216.245
Web Server : Apache
System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User : server ( 1002)
PHP Version : 8.3.20
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/faktorteam/www/wp-content/plugins/wordpress-seo/admin/config-ui/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/faktorteam/www/wp-content/plugins/wordpress-seo/admin/config-ui/fields/class-field-choice.php
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\ConfigurationUI
 */

/**
 * Class WPSEO_Config_Field_Choice.
 */
class WPSEO_Config_Field_Choice extends WPSEO_Config_Field {

	/**
	 * WPSEO_Config_Field_Choice constructor.
	 *
	 * @param string $field Field name to use.
	 */
	public function __construct( $field ) {
		parent::__construct( $field, 'Choice' );

		$this->properties['choices'] = [];
	}

	/**
	 * Add a choice to the properties.
	 *
	 * @param string $value      Value op the option.
	 * @param string $label      Label to display for the value.
	 * @param string $aria_label Optional. Aria label text to use.
	 */
	public function add_choice( $value, $label, $aria_label = '' ) {
		$choice = [
			'label' => $label,
		];

		if ( $aria_label ) {
			$choice['screenReaderText'] = $aria_label;
		}

		$this->properties['choices'][ $value ] = $choice;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit