Is there a better way of retrieving the path of admin.php and the url of wp-admin.css?
What I can think of is:
$adminphppath = ABSPATH . 'wp-adminadmin.php';
$admincssurl = get_bloginfo('wpurl') . '/wp-admin/css/wp-admin.css";
But, some may be changing the admin path for security. So I need a more reliable way.
[Edit] I need the system path for admin.php, not url. Because I need to include it.
You can use
admin_url()
function for wp-admin.css file and ABSPATH for admin.php.Old question I know, but this accounts for installs where wp-admin is not the admin directory