Writing wget in a post (3 posts)

  1. supercres
    Posted 6 years ago #

    I have a comment/solution/question about writing code in a post. Forgive me if this is a little "well duh", but I'm also curious why I have had to work around it.

    In a post, I was explaining how to create a cron job for automatically refreshing a page for a plugin (Fotobook). I wanted to say that I used the wget command, but I got an error every time I included the word "wget" in my post. I guess WP was trying to execute the command?

    Eventually (after trying many other, more complicated solutions), I just put pointless <strong></strong> tags in the center of the word (like so: wg<strong></strong>et) and it worked.

    Is this a bug, or is there a reason the word wget would be blocked from posts?

  2. s_ha_dum
    Posted 6 years ago #

    I just created a post with the word wget in it. No problem. I even tried system("wget ..."). No error. WordPress by default doesn't execute PHP in posts. Are you running something like ExecPHP?

  3. whooami
    Posted 6 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic