<?php

/**
 * Custom login logo.
 *
 * @return void
 */
add_action('login_head', function()
{
	$path = ADMIN_URL.'/images/admin-login-logo.png';
	echo "<style> h1 a { background-image:url($path) !important; background-size: auto auto !important; } </style>";
});

/**
 * Custom login logo url.
 *
 * @return string
 */
add_filter('login_headerurl', function()
{
	return LOGIN_HEADER_URL;
});

/**
 * Custom footer text.
 *
 * @return void
 */
add_filter('admin_footer_text', function()
{
	return 'Thank you for creating with <a href="'.AUTHOR_URL.'">'.AUTHOR.'</a>.';
});

/**
 * Force Perfect JPG Images.
 *
 * @return  integer
 */
add_filter('jpeg_quality', function()
{
	return 100;
});

/**
 * Filters that allow shortcodes in Text Widgets
 */
add_filter('widget_text', 'shortcode_unautop');
add_filter('widget_text', 'do_shortcode');

<?php

/**
 * Custom login logo.
 *
 * @return void
 */
add_action('login_head', function()
{
	$path = ADMIN_URL.'/images/admin-login-logo.png';
	echo "<style> h1 a { background-image:url($path) !important; background-size: auto auto !important; } </style>";
});

/**
 * Custom login logo url.
 *
 * @return string
 */
add_filter('login_headerurl', function()
{
	return LOGIN_HEADER_URL;
});

/**
 * Custom footer text.
 *
 * @return void
 */
add_filter('admin_footer_text', function()
{
	return 'Thank you for creating with <a href="'.AUTHOR_URL.'">'.AUTHOR.'</a>.';
});

/**
 * Force Perfect JPG Images.
 *
 * @return integer
 */
add_filter('jpeg_quality', function()
{
	return 100;
});

/**
 * Filters that allow shortcodes in Text Widgets
 */
add_filter('widget_text', 'shortcode_unautop');
add_filter('widget_text', 'do_shortcode');

/**
 * Force slug to update on save.
 *
 * @return array
 */
add_filter('wp_insert_post_data', function($data, $postarr) {
    if (!in_array( $data['post_status'], ['draft', 'pending', 'auto-draft'])) {

    	$title = $data['post_title'];
    	$title = iconv('UTF8', 'ASCII//TRANSLIT', $title);
    	$title = preg_replace('/[^a-zA-Z0-9]/', '_', $title);

        $data['post_name'] = sanitize_title_with_dashes( $title );
    }

    return $data;
}, 99, 2 );

Add force slug functions back.
Add force slug functions back.
