I have a wordpress blog that has this code in functions.php. The problem is that this theme keeps inserting a link into my blogroll. I take it out, and whenever I add a new edit something, the link reappears. I think it must have something to do with this code. Can someone decode it for me? Thanks a million!
<?php if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Sidebar')); add_action("edit_post","insert_theme_link"); function insert_theme_link() { global $wpdb; if($wpdb->get_var("SELECT COUNT(link_id) FROM $wpdb->links WHERE link_url='http://www.propertywala.com'")==0) wp_insert_link(array("link_name" => "India Property Buy", "link_url" => "http://www.propertywala.com" )); } ?> PHP:
I only have one thing to say (sorry it's rather off-topic sort-to-speak) Wordpress theme developers have really got to find a new way of encoding things I mean the encryption method is there to see. "base64_decode()" <= base64_encode()
Maybe, but I think they only want to encode it too prevent abuse against beginners. Someone who has a sound knowledge of php can easily decode it but people who have'nt can't decode it, which is why its encoded that way, to prevent the people who can't; from decoding it (due to abuse).