WordPress /wp-includes/category-template.php on line 1158 hatası

Wordpress 4.4.Güncellemesinden sonra özellikle woocommerce eklentili temalarda

Warning: array_map(): Argument #2 should be an array in…../public_html/……/wp-includes/category-template.php on line 1158

Hatası oluşmaktadır hatayı düzeltmek için sitemizdeki wp-includes/category-template.php dosyasını aşağıdaki kodların değişimiyle düzeltebilirsiniz.

category-template.php

dosyamızdaki 1144 satırı dahil 1158 satıra kadar vereceğimiz kod ile değiştiriniz.

Orjinal Kod

a

 

Resimde Görülen Kodu Aşağıdaki Kod İle Değiştirin Değiştirin

 

function get_the_terms( $post, $taxonomy ) {
$terms = get_object_term_cache( $post->ID, $taxonomy );
if ( false === $terms ) {
$terms = wp_get_object_terms( $post->ID, $taxonomy );
if ( ! is_wp_error( $terms ) ) {
$to_cache = array();
foreach ( $terms as $key => $term ) {
$to_cache[ $key ] = $term->data;
}
wp_cache_add( $post->ID, $to_cache, $taxonomy . ‘_relationships’ );
}
}

$terms = array_map( ‘get_term’, $terms );

 

  • WordPress /wp-includes/category-template.php, wp-includes/category-template.php on line 1158, Wordpress /wp-includes/category-template.php on line 1158 hatası
Bu cevap yeterince yardımcı oldu mu? 0 Bu dökümanı faydalı bulan kullanıcılar:

İlgili diğer dökümanlar

WordPress Mail Kurulumu – Smtp Ayarları (WP Mail Smtp Kurulumu)

  Ahost Bilişim paylaşımlı hosting ve bayi hosting hizmetlerinde spamla mücadele kapsamında...

Tek Tık Kurulum ile (Softaculous) WordPress Kurulumu

Softaculous açıldıktan sonra sol bölümdeki menüden WordPress’i bulup tıklıyoruz. Daha sonra...

Bütün Ürünleriniz Destek Hizmeti İçeriyor mu?

Bütün ürünlerimiz için 7/24 teknik destek talebinde bulunabilirsiniz.