* @param WP_Term|object $term Term object. */ public function __construct( $term ) { foreach ( get_object_vars( $term ) as $key => $value ) { $this->$key = $value; } } /** * Sanitizes term fields, according to the filter type provided. * * @since 4.4.0 * * @param string $filter Filter context. Accepts 'edit', 'db', 'display', 'attribute', 'js', 'rss', or 'raw'. */ public function filter( $filter ) { sanitize_term( $this, $this->taxonomy, $filter ); } /** * Converts an object to array. * * @since 4.4.0 * * @return array Object as array. */ public function to_array() { return get_object_vars( $this ); } /** * Getter. * * @since 4.4.0 * * @param string $key Property to get. * @return mixed Property value. */ public function __get( $key ) { switch ( $key ) { case 'data': $data = new stdClass(); $columns = array( 'term_id', 'name', 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 'parent', 'count' ); foreach ( $columns as $column ) { $data->{$column} = isset( $this->{$column} ) ? $this->{$column} : null; } return sanitize_term( $data, $data->taxonomy, 'raw' ); } } }
Fatal error: require(): Failed opening required '/home/arasetne/public_html/wp-includes/media.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/arasetne/public_html/wp-settings.php on line 249

Fatal error: Uncaught Error: Call to a member function set() on null in /home/arasetne/public_html/wp-includes/l10n.php:854 Stack trace: #0 /home/arasetne/public_html/wp-includes/l10n.php(957): load_textdomain('default', '/home/arasetne/...', 'fa_IR') #1 /home/arasetne/public_html/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /home/arasetne/public_html/wp-includes/l10n.php on line 854