add wrapper for new functions due to compability on older wp
Dieser Commit ist enthalten in:
Ursprung
4f9fb51468
Commit
bba75e1a1a
2 geänderte Dateien mit 10 neuen und 3 gelöschten Zeilen
|
|
@ -84,4 +84,11 @@ if(class_exists("Upgrademe")) {
|
|||
return 'http://www.php-backoffice.de/updates/test/semr_update.php';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
// function wrappers for older wp versions
|
||||
if(!function_exists("plugin_dir_path")) {
|
||||
function plugin_dir_path($file) {
|
||||
return trailingslashit(dirname($file));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren