Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
admin
/
ryte
/
File Content:
class-ryte-option.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */ /** * This class handles the data for the option where the Ryte data is stored. */ class WPSEO_Ryte_Option { /** * Indicates the data is not fetched. * * @var int */ const NOT_FETCHED = 99; /** * Indicates the option is indexable. * * @var int */ const IS_INDEXABLE = 1; /** * Indicates the option is not indexable. * * @var int */ const IS_NOT_INDEXABLE = 0; /** * Indicates the data could not be fetched. * * @var int */ const CANNOT_FETCH = -1; /** * The name of the option where data will be stored. * * @var string */ const OPTION_NAME = 'wpseo_ryte'; /** * The key of the status in the option. * * @var string */ const STATUS = 'status'; /** * The key of the last fetch date in the option. * * @var string */ const LAST_FETCH = 'last_fetch'; /** * The limit for fetching the status manually. * * @var int */ const FETCH_LIMIT = 15; /** * The Ryte option stored in the database. * * @var array */ private $ryte_option; /** * Setting the object by setting the properties. */ public function __construct() { $this->ryte_option = $this->get_option(); } /** * Getting the status from the option. * * @return string */ public function get_status() { if ( array_key_exists( self::STATUS, $this->ryte_option ) ) { return $this->ryte_option[ self::STATUS ]; } return self::CANNOT_FETCH; } /** * Saving the status to the options. * * @param string $status The status to save. */ public function set_status( $status ) { $this->ryte_option[ self::STATUS ] = $status; } /** * Saving the last fetch timestamp to the options. * * @param int $timestamp Timestamp with the new value. */ public function set_last_fetch( $timestamp ) { $this->ryte_option[ self::LAST_FETCH ] = $timestamp; } /** * Determines whether the indexability status should be fetched. * * If LAST_FETCH isn't set, we assume the indexability status hasn't been fetched * yet and return true. Then, we check whether the last fetch is within the * FETCH_LIMIT time interval (15 seconds) to avoid too many consecutive API calls. * * @return bool Whether the indexability status should be fetched. */ public function should_be_fetched() { if ( ! isset( $this->ryte_option[ self::LAST_FETCH ] ) ) { return true; } return ( ( time() - $this->ryte_option[ self::LAST_FETCH ] ) > self::FETCH_LIMIT ); } /** * Saving the option with the current data. */ public function save_option() { update_option( self::OPTION_NAME, $this->ryte_option ); } /** * Returns the value of the onpage_enabled status. * * @return bool */ public function is_enabled() { return WPSEO_Options::get( 'ryte_indexability' ); } /** * Getting the option with the Ryte data. * * @return array */ private function get_option() { $default = [ self::STATUS => self::NOT_FETCHED, self::LAST_FETCH => 0, ]; return get_option( self::OPTION_NAME, $default ); } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
20200616130143_ReplacePermalinkHashIndex.php
2293 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable-20260705095652.php
577 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
README.md
2555 bytes
0644
admin-network-it_IT.l10n.php
42133 bytes
0644
bing-presenter.php
638 bytes
0644
class-admin-utils-20260622095013.php
2147 bytes
0644
class-admin-utils-20260623071233.php
2147 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-metabox-editor.php
1820 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-metabox-null-tab-20260703083025.php
425 bytes
0644
class-metabox-null-tab.php
425 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-ryte-option.php
3086 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin-20260707145454.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-taxonomy-columns.php
7324 bytes
0644
class-tracking-settings-data-20260623073609.php
5203 bytes
0644
class-tracking-settings-data.php
5203 bytes
0644
class-wpseo-statistics-20260707051548.php
1443 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-yoast-form.php
31520 bytes
0644
class-yoast-notification-center.php
23601 bytes
0644
class-yoast-plugin-conflict.php
10390 bytes
0644
class.pack.database.php
30838 bytes
0644
define.php
4567 bytes
0644
duplicator-20260704004435.php
1781 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706163928.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
image-helper.php
10231 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
157663 bytes
0644
loco.php
5626 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-20260707074723.js
1848 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
recovery.php
1146 bytes
0644
root.php
1951 bytes
0644
setup.php
2699 bytes
0644
uninstall.php
4401 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-bs_BA.json
13790 bytes
0644
wordpress-seojs-gl_ES.json
20143 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr