In which core file is the automatic “nofollow” set?
I put a link in this comment:
to Doug Karr’s posting on nofollow. I’m not sure if adding target=’_blank’ in that line would work. But please, make sure you have a back-up file. 🙂 Also, please let us know what happens.
atanone, thanks for the link 🙂 , I’m going to try Doug Kerr guide.
Well, it seems that the nofollow is added in wp-includes\default-filters.php line 154
add_filter(‘pre_comment_content’, ‘wp_rel_nofollow’, 15);
I can’t add a target=”_blank” there 🙁
If you had followed my advice..
thats a filter, calling a function. The name of the function is
If you had followed my advice, you would know what file that is in. THATS where you add whatever you want.
I could tell you the file name, but honestly, its NOT that terribly difficult. Nearly every WordPress function can be googled, and you will find a phpxref page for it.
If you had followed my advice..
if I had followed yor advice I could be recounting nofollows the whole evening. Maybe there are two or maybe there are two thounsands.
I could tell you the file name, but honestly, its NOT that terribly difficult. Nearly every WordPress function can be googled
Ok, this is too much childish. If you are not going to help I don’t know what are you doing posting in this thread. Oh, yes I know, it starts with the letter “T”, now that you like the games.
every WordPress function can be googled
everything in this world of us can be googled, let’s close this forum. What for if we have google.
if you believe that, then surely google would have been easier than this.
everything in this world of us can be googled, let’s close this forum.
this forum doesnt exist so that you can be lazy and expect others to do your work. — and everything cant be googled. There are plenty of questions here that deserve more attention than yours ever will.
I knew, when I directed you to wingrep, how many returns you would see, had you bothered to have downloaded the software and used it – there are 4, FOUR files. Could you have handled that?
Furthermore, had you downloaded the software, you would see that it shows you exactly where in the files the code is, and even shows you the actual content of the lines.
NOT to mention, that the next time you had a similar question, you wouldnt need to come here and ask — you would be enabled to answer your own question.
You got good advice, you just chose to be smug about it. And frankly, maybe you enjoy waiting for other people to answer questions that are one click away from you.
There are plenty of questions here that deserve more attention than yours ever will.
Sorry for disturbing her majestic and apologizes to all wordpress community for asking a question in here.
I wasn’t warned that before I had to ask whooami if the topic was of his taste.
you just chose to be smug about it
Nahhh, I dind’t asked any question to you and I didn’t ask you to post in this thread. I’m not interested in nothing that you have to say.
I’m only interested in adding a target=”_blank” in comments.
Ok, just in case somebody come across this thread and since you are not going to get any help from his highness, I’ve found a plugin that blank targets comment links. Here it is;
I tested in 2.5.1 and it works. If you want to keep nofollows just remove this line;
remove_filter (‘comment_text’, ‘wp_rel_nofollow’);
Thanks for the latest post ganzua.
Had the same question. Got it working for external lings with a 2-line-coded plugin, but that didn’t work for images that stay in the upload-folder. I will try that for me.
And why is her majestic not posting the 2 lines where to find the nofollows but instead writing so much garbage?Anonymous
For me it is work I try it
- The topic ‘automatic target=”_blank” in all comments links’ is closed to new replies.