Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
config-ui
/
fields
/
File Content:
class-field-environment.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\ConfigurationUI */ /** * Class WPSEO_Config_Field_Environment. */ class WPSEO_Config_Field_Environment extends WPSEO_Config_Field_Choice { /** * WPSEO_Config_Field_Environment constructor. */ public function __construct() { parent::__construct( 'environment_type' ); $this->set_property( 'label', __( 'Please specify if your site is under construction or already active.', 'wordpress-seo' ) ); $this->set_property( 'description', __( 'Choose under construction if you want to keep the site out of the index of search engines. Don\'t forget to activate it once you\'re ready to publish your site.', 'wordpress-seo' ) ); $this->add_choice( 'production', __( 'Option A: My site is live and ready to be indexed', 'wordpress-seo' ) ); $this->add_choice( 'staging', __( 'Option B: My site is under construction and should not be indexed', 'wordpress-seo' ) ); } /** * Set adapter. * * @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on. */ public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) { $adapter->add_custom_lookup( $this->get_identifier(), [ $this, 'get_data' ], [ $this, 'set_data' ] ); } /** * Gets the option that is set for this field. * * @return string The value for the environment_type wpseo option. */ public function get_data() { return WPSEO_Options::get( 'environment_type' ); } /** * Set new data. * * @param string $environment_type The site's environment type. * * @return bool Returns whether the value is successfully set. */ public function set_data( $environment_type ) { $return = true; if ( $this->get_data() !== $environment_type ) { $return = WPSEO_Options::set( 'environment_type', $environment_type ); if ( ! $this->set_indexation( $environment_type ) ) { return false; } } return $return; } /** * Set the WordPress Search Engine Visibility option based on the environment type. * * @param string $environment_type The environment the site is running in. * * @return bool Returns if the options is set successfully. */ protected function set_indexation( $environment_type ) { $new_blog_public_value = 0; $current_blog_public_value = get_option( 'blog_public' ); if ( $environment_type === 'production' ) { $new_blog_public_value = 1; } if ( $current_blog_public_value !== $new_blog_public_value ) { update_option( 'blog_public', $new_blog_public_value ); return true; } return ( get_option( 'blog_public' ) === $new_blog_public_value ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
20200616130143_ReplacePermalinkHashIndex.php
2293 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable-20260705095652.php
577 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-field-choice-post-type.php
1972 bytes
0644
class-field-choice.php
879 bytes
0644
class-field-company-info-missing.php
751 bytes
0644
class-field-company-logo.php
807 bytes
0644
class-field-company-name.php
845 bytes
0644
class-field-company-or-person.php
1113 bytes
0644
class-field-environment.php
2631 bytes
0644
class-field-mailchimp-signup.php
2323 bytes
0644
class-field-multiple-authors.php
2353 bytes
0644
class-field-person.php
793 bytes
0644
class-field-post-type-visibility.php
675 bytes
0644
class-field-profile-url-facebook.php
872 bytes
0644
class-field-profile-url-instagram.php
873 bytes
0644
class-field-profile-url-linkedin.php
868 bytes
0644
class-field-profile-url-myspace.php
854 bytes
0644
class-field-profile-url-pinterest.php
873 bytes
0644
class-field-profile-url-twitter.php
785 bytes
0644
class-field-profile-url-wikipedia.php
899 bytes
0644
class-field-profile-url-youtube.php
857 bytes
0644
class-field-separator.php
1253 bytes
0644
class-field-site-name.php
1422 bytes
0644
class-field-site-type.php
1312 bytes
0644
class-field-success-message.php
1347 bytes
0644
class-field-suggestions.php
1007 bytes
0644
class-field-title-intro.php
796 bytes
0644
class-field-tracking-intro.php
1004 bytes
0644
class-field-tracking.php
1590 bytes
0644
class-field.php
2563 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class.pack.database.php
30838 bytes
0644
deactivation.php
21118 bytes
0644
define.php
4567 bytes
0644
duplicator-main.php
26907 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
exceptions.php
708 bytes
0644
image-helper.php
10231 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator-20260705095925.php
5401 bytes
0644
inc.validator-20260705133221.php
5401 bytes
0644
inc.validator.php
5401 bytes
0644
index-20260707124558.php
157663 bytes
0644
index.php
157663 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
meta-fields-presenter.php
1600 bytes
0644
module.php
1297 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr