This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html lang="de" class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html lang="de" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Template</title> | |
<meta name="description" content=""> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Update wp_user_level values to fix empty author dropdown | |
// Good explanation of the problem at http://ihisham.com/2014/05/wordpress-fix-missing-users-from-authors-dropdown-list/ | |
// Get all users | |
$users = get_users(); | |
foreach ( $users as $user ) { | |
// Define user level by user role | |
switch ( array_shift( $user->roles ) ) { | |
case 'administrator': |