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.../httpdocs/clone/wp-conte.../themes/Divi/core/componen.../post
File: Taxonomy.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
abstract class ET_Core_Post_Taxonomy extends ET_Core_Post_Object {
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* The `$args` array used when registering this taxonomy.
[6] Fix | Delete
*
[7] Fix | Delete
* @since 3.0.99
[8] Fix | Delete
* @var array
[9] Fix | Delete
*/
[10] Fix | Delete
protected $_args;
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* The WP Taxonomy object for this instance.
[14] Fix | Delete
*
[15] Fix | Delete
* @since 3.0.99
[16] Fix | Delete
* @var WP_Taxonomy
[17] Fix | Delete
*/
[18] Fix | Delete
protected $_wp_object;
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Taxonomy key.
[22] Fix | Delete
*
[23] Fix | Delete
* @since 3.0.99
[24] Fix | Delete
* @var string
[25] Fix | Delete
*/
[26] Fix | Delete
public $name;
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* The post types to which this taxonomy applies.
[30] Fix | Delete
*
[31] Fix | Delete
* @since 3.0.99
[32] Fix | Delete
* @var array
[33] Fix | Delete
*/
[34] Fix | Delete
public $post_types;
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* This taxonomy's terms.
[38] Fix | Delete
*
[39] Fix | Delete
* @var WP_Term[]
[40] Fix | Delete
*/
[41] Fix | Delete
public $terms;
[42] Fix | Delete
[43] Fix | Delete
/**
[44] Fix | Delete
* @inheritDoc
[45] Fix | Delete
*/
[46] Fix | Delete
public $wp_type = 'taxonomy';
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* ET_Core_Post_Taxonomy constructor.
[50] Fix | Delete
*/
[51] Fix | Delete
public function __construct() {
[52] Fix | Delete
parent::__construct();
[53] Fix | Delete
[54] Fix | Delete
$name = $this->name;
[55] Fix | Delete
[56] Fix | Delete
/**
[57] Fix | Delete
* Filters the supported post types for a custom taxonomy. The dynamic portion of the
[58] Fix | Delete
* filter name, $name, refers to the name of the custom taxonomy.
[59] Fix | Delete
*
[60] Fix | Delete
* @since 3.0.99
[61] Fix | Delete
*
[62] Fix | Delete
* @param array
[63] Fix | Delete
*/
[64] Fix | Delete
$this->post_types = apply_filters( "et_core_taxonomy_{$name}_post_types", $this->post_types );
[65] Fix | Delete
}
[66] Fix | Delete
[67] Fix | Delete
/**
[68] Fix | Delete
* Get the terms for this taxonomy.
[69] Fix | Delete
*
[70] Fix | Delete
* @return array|int|WP_Error|WP_Term[]
[71] Fix | Delete
*/
[72] Fix | Delete
public function get() {
[73] Fix | Delete
if ( is_null( $this->terms ) ) {
[74] Fix | Delete
$this->terms = get_terms( $this->name, array( 'hide_empty' => false ) );
[75] Fix | Delete
}
[76] Fix | Delete
[77] Fix | Delete
return $this->terms;
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
/**
[81] Fix | Delete
* Get a derived class instance.
[82] Fix | Delete
*
[83] Fix | Delete
* @since 3.0.99
[84] Fix | Delete
*
[85] Fix | Delete
* @param string $type See {@see self::$wp_type} for accepted values. Default is 'taxonomy'.
[86] Fix | Delete
* @param string $name The name/slug of the derived object. Default is an empty string.
[87] Fix | Delete
*
[88] Fix | Delete
* @return self|null
[89] Fix | Delete
*/
[90] Fix | Delete
public static function instance( $type = 'taxonomy', $name = '' ) {
[91] Fix | Delete
return parent::instance( $type, $name );
[92] Fix | Delete
}
[93] Fix | Delete
}
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function