WP 6.0 zeigt keine neueren Core Updates an

Moin,

hier die functions.php:

<?php

function child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme-css', get_stylesheet_directory_uri() . '/style.css' , array('parent-style'));
//wp_enqueue_style( 'child-print-css', get_stylesheet_directory_uri() . '/print.css');
}
add_action( 'wp_enqueue_scripts', 'child_theme_styles' );
	
if ( function_exists( 'add_theme_support' ) )
add_theme_support( 'post-thumbnails' );

if ( function_exists( 'register_sidebar' ) ) {
	register_sidebar( array(
			'name'          => __( 'Sidebar Kontakt', 'dorayaki' ),
			'id'            => 'sidebar-kontakt',
			'description'   => __( 'Sidebar der Kontaktseite', 'dorayaki' ),
			'before_widget' => '<aside id="%1$s" class="widget %2$s">',
			'after_widget'  => '</aside>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
	) );
	
	register_sidebar( array(
			'name'          => __( 'Startseite Aktuelles', 'dorayaki' ),
			'id'            => 'startseite-aktuelles',
			'description'   => __( 'Aktuelle Nachrichten auf der Startseite', 'dorayaki' ),
			'before_widget' => '<li id="%1$s" class="widget %2$s">',
			'after_widget'  => '</li>',
			'before_title'  => '<h3 class="widget-title">',
			'after_title'   => '</h3>',
	) );
}



add_filter( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) );

add_filter('widget_text', 'do_shortcode');

add_filter('widget_text','execute_php',100);
function execute_php($html){
     if(strpos($html,"<"."?php")!==false){
          ob_start();
          eval("?".">".$html);
          $html=ob_get_contents();
          ob_end_clean();
     }
     return $html;
}


/*
function get_latest_posts($limit = 1)
{
	$latest_posts = get_posts('numberposts=" . $limit);

	$output = "<ul>';
	foreach($latest_posts as $post)
	{
		$post_title = $post->post_title;
		$post_permalink = get_permalink($post->ID);
		$output .= '<li><a href="' . $post_permalink . '" title="Artikel: ' . $post_title . '">';
		$output .= $thumbnail . '<span>' . $post_title . '</span></a></li>';
	}

	$output .= '</ul>';

	return $output;
}

*/
function get_latest_posts($limit = 1)
{
	$latest_posts = get_posts('numberposts=" . $limit);

	
	foreach($latest_posts as $post)
	{
		$post_title = $post->post_title;
		$post_permalink = get_permalink($post->ID);
	
    $output .= "<a href="' . $post_permalink . '" title="Artikel: ' . $post_title . '"></a>';

if ( empty( $output ) ) $output = "No pending updates found in the database.";

    wp_die( $output );
	}
}
?>

In der wp-config.php steht nicht viel drin außer die Passwörter und Berechtigungen.

/**
 * WordPress Sprachdatei
 *
 * Hier kannst du einstellen, welche Sprachdatei benutzt werden soll. Die entsprechende
 * Sprachdatei muss im Ordner wp-content/languages vorhanden sein, beispielsweise de_DE.mo
 * Wenn du nichts einträgst, wird Englisch genommen.
 */
/** define('WPLANG', 'de_DE');
*/

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Kannst Du damit was anfangen?

Danke,
Moritz

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer