Hallo!
ich frage mich gerade, ob es so sinnvoll ist, dass die URL der author.php den Namen, mit dem man sich einloggt, verrät.
ZB: http://www.website.net/author/username
Ist das nicht ein Sicherheitsproblem? Und gibt es vielleicht eine Möglichkeit den Nickname anzeigen zu lassen?
Danke!
Änderung:
Ich habe folgenden code auf dem englischsprachigen Forum gefunden.
Ginge es daraus ein Plugin zu schreiben?
Zitat
I've used this code in a plugin, and it works OK for me:Code Alles anzeigenfunction change_author_permalinks() { global $wp_rewrite; // Change the value of the author permalink base to whatever you want here $wp_rewrite->author_base = 'artist'; $wp_rewrite->flush_rules(); } add_action('init','change_author_permalinks');This does a couple of things:
1) allows you to redefine the $author_base property in rewrite.php without actually editing that file.
2) flushes the rewrite rules so they reflect the change in teh author base, instead of you having to save your permalink structure again through the admin.You can change 'artist' to whatever you want the author permalink base to be.
Hope this helps.