Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/wordpres.../src/integrat...
File: estimated-reading-time.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Integrations;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Conditionals\Admin\Estimated_Reading_Time_Conditional;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Estimated reading time class.
[7] Fix | Delete
*/
[8] Fix | Delete
class Estimated_Reading_Time implements Integration_Interface {
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* Returns the conditionals based in which this loadable should be active.
[12] Fix | Delete
*
[13] Fix | Delete
* @return array
[14] Fix | Delete
*/
[15] Fix | Delete
public static function get_conditionals() {
[16] Fix | Delete
return [ Estimated_Reading_Time_Conditional::class ];
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Initializes the integration.
[21] Fix | Delete
*
[22] Fix | Delete
* This is the place to register hooks and filters.
[23] Fix | Delete
*
[24] Fix | Delete
* @return void
[25] Fix | Delete
*/
[26] Fix | Delete
public function register_hooks() {
[27] Fix | Delete
\add_filter( 'wpseo_metabox_entries_general', [ $this, 'add_estimated_reading_time_hidden_fields' ] );
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Adds an estimated-reading-time hidden field.
[32] Fix | Delete
*
[33] Fix | Delete
* @param array $field_defs The $fields_defs.
[34] Fix | Delete
*
[35] Fix | Delete
* @return array
[36] Fix | Delete
*/
[37] Fix | Delete
public function add_estimated_reading_time_hidden_fields( $field_defs ) {
[38] Fix | Delete
if ( \is_array( $field_defs ) ) {
[39] Fix | Delete
$field_defs['estimated-reading-time-minutes'] = [
[40] Fix | Delete
'type' => 'hidden',
[41] Fix | Delete
'title' => 'estimated-reading-time-minutes',
[42] Fix | Delete
];
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
return $field_defs;
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function