WordPress hack … just a note to myself

Hack for classes.php in line 315 (1.5.2). It allows two (sub-)pages to have the same name (slug): $temp = dirname( str_replace( ‘%2F’, ‘/’, urlencode($q[‘pagename’]))); $names = explode(‘/’, $temp); $parent = null; foreach ($names as $name) { $name = sanitize_title($name); $query = “SELECT ID ” . “FROM $wpdb->posts ” . “WHERE…