Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.

W3C - 404 Fehler

Ajax, Hijax, Microformats, RDF, Markup, HTML, PHP, CSS, MySQL, htaccess, robots.txt, CGI, Java, Javascript usw.
huah
PostRank 6
PostRank 6
Beiträge: 429
Registriert: 19.04.2007, 21:56

Beitrag von huah » 21.06.2009, 18:12

Das deutsche Wordpress Forum kann man vergessen - wirf mal einen Blick ans Ende der includes/default-filter.php ...

Anzeige von ABAKUS

von Anzeige von ABAKUS »


Hochwertiger Linkaufbau bei ABAKUS:
  • Google-konformer Linkaufbau
  • nachhaltiges Ranking
  • Linkbuilding Angebote zu fairen Preisen
  • internationale Backlinks
Wir bieten Beratung und Umsetzung.
Jetzt anfragen: 0511 / 300325-0

Dominik83
PostRank 9
PostRank 9
Beiträge: 1585
Registriert: 13.05.2009, 00:31

Beitrag von Dominik83 » 21.06.2009, 20:05

huah hat geschrieben:Das deutsche Wordpress Forum kann man vergessen - wirf mal einen Blick ans Ende der includes/default-filter.php ...
naja, also mir wurde dort schon oft geholfen und bin froh, dass es dieses Forum gibt. Das hier ist jetzt eben ein sehr eigenartiges Problem. Einer aus dem team meint, den Fehler bei W3c kann ich ignorieren, weil die "domain.de/feed" ja aufrubar sei. wenn ich sie aufrufe kommt dann in der seite ein kleines fenster in dem steht "Safari konnte diesen RSS-Feed nicht aktualisieren, da die Quelldatei nicht mehr zur Verfügung steht."

Also wenn sich das nicht negativ aufs Ranking auswirkt, dann lass ichs einfach so. Was meint ihr?

Im default-Filter.php hab ich das gefunden

Code: Alles auswählen

<?php
/**
 * Sets up the default filters and actions for most
 * of the WordPress hooks.
 *
 * If you need to remove a default hook, this file will
 * give you the priority for which to use to remove the
 * hook.
 *
 * Not all of the default hooks are found in default-filters.php
 *
 * @package WordPress
 */

// Strip, trim, kses, special chars for string saves
$filters = array&#40;'pre_term_name', 'pre_comment_author_name', 'pre_link_name', 'pre_link_target',
	'pre_link_rel', 'pre_user_display_name', 'pre_user_first_name', 'pre_user_last_name',
	'pre_user_nickname'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'strip_tags'&#41;;
	add_filter&#40;$filter, 'trim'&#41;;
	add_filter&#40;$filter, 'wp_filter_kses'&#41;;
	add_filter&#40;$filter, '_wp_specialchars', 30&#41;;
&#125;

// Kses only for textarea saves
$filters = array&#40;'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'wp_filter_kses'&#41;;
&#125;

// Email
$filters = array&#40;'pre_comment_author_email', 'pre_user_email'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'trim'&#41;;
	add_filter&#40;$filter, 'sanitize_email'&#41;;
	add_filter&#40;$filter, 'wp_filter_kses'&#41;;
&#125;

// Save URL
$filters = array&#40;'pre_comment_author_url', 'pre_user_url', 'pre_link_url', 'pre_link_image',
	'pre_link_rss'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'strip_tags'&#41;;
	add_filter&#40;$filter, 'trim'&#41;;
	add_filter&#40;$filter, 'esc_url_raw'&#41;;
	add_filter&#40;$filter, 'wp_filter_kses'&#41;;
&#125;

// Display URL
$filters = array&#40;'user_url', 'link_url', 'link_image', 'link_rss', 'comment_url'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'strip_tags'&#41;;
	add_filter&#40;$filter, 'trim'&#41;;
	add_filter&#40;$filter, 'esc_url'&#41;;
	add_filter&#40;$filter, 'wp_filter_kses'&#41;;
&#125;

// Slugs
$filters = array&#40;'pre_term_slug'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'sanitize_title'&#41;;
&#125;

// Keys
$filters = array&#40;'pre_post_type'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'sanitize_user'&#41;;
&#125;

// Places to balance tags on input
$filters = array&#40;'content_save_pre', 'excerpt_save_pre', 'comment_save_pre', 'pre_comment_content'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40; $filter, 'balanceTags', 50&#41;;
&#125;

// Format strings for display.
$filters = array&#40;'comment_author', 'term_name', 'link_name', 'link_description',
	'link_notes', 'bloginfo', 'wp_title', 'widget_title'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'wptexturize'&#41;;
	add_filter&#40;$filter, 'convert_chars'&#41;;
	add_filter&#40;$filter, 'esc_html'&#41;;
&#125;

// Format text area for display.
$filters = array&#40;'term_description'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'wptexturize'&#41;;
	add_filter&#40;$filter, 'convert_chars'&#41;;
	add_filter&#40;$filter, 'wpautop'&#41;;
&#125;

// Format for RSS
$filters = array&#40;'term_name_rss'&#41;;
foreach &#40; $filters as $filter &#41; &#123;
	add_filter&#40;$filter, 'convert_chars'&#41;;
&#125;

// Display filters
add_filter&#40;'the_title', 'wptexturize'&#41;;
add_filter&#40;'the_title', 'convert_chars'&#41;;
add_filter&#40;'the_title', 'trim'&#41;;

add_filter&#40;'the_content', 'wptexturize'&#41;;
add_filter&#40;'the_content', 'convert_smilies'&#41;;
add_filter&#40;'the_content', 'convert_chars'&#41;;
add_filter&#40;'the_content', 'wpautop'&#41;;
add_filter&#40;'the_content', 'prepend_attachment'&#41;;

add_filter&#40;'the_excerpt', 'wptexturize'&#41;;
add_filter&#40;'the_excerpt', 'convert_smilies'&#41;;
add_filter&#40;'the_excerpt', 'convert_chars'&#41;;
add_filter&#40;'the_excerpt', 'wpautop'&#41;;
add_filter&#40;'get_the_excerpt', 'wp_trim_excerpt'&#41;;

add_filter&#40;'comment_text', 'wptexturize'&#41;;
add_filter&#40;'comment_text', 'convert_chars'&#41;;
add_filter&#40;'comment_text', 'make_clickable', 9&#41;;
add_filter&#40;'comment_text', 'force_balance_tags', 25&#41;;
add_filter&#40;'comment_text', 'convert_smilies', 20&#41;;
add_filter&#40;'comment_text', 'wpautop', 30&#41;;

add_filter&#40;'comment_excerpt', 'convert_chars'&#41;;

add_filter&#40;'list_cats', 'wptexturize'&#41;;
add_filter&#40;'single_post_title', 'wptexturize'&#41;;

add_filter&#40;'wp_sprintf', 'wp_sprintf_l', 10, 2&#41;;

// RSS filters
add_filter&#40;'the_title_rss', 'strip_tags'&#41;;
add_filter&#40;'the_title_rss', 'ent2ncr', 8&#41;;
add_filter&#40;'the_title_rss', 'esc_html'&#41;;
add_filter&#40;'the_content_rss', 'ent2ncr', 8&#41;;
add_filter&#40;'the_excerpt_rss', 'convert_chars'&#41;;
add_filter&#40;'the_excerpt_rss', 'ent2ncr', 8&#41;;
add_filter&#40;'comment_author_rss', 'ent2ncr', 8&#41;;
add_filter&#40;'comment_text_rss', 'ent2ncr', 8&#41;;
add_filter&#40;'comment_text_rss', 'esc_html'&#41;;
add_filter&#40;'bloginfo_rss', 'ent2ncr', 8&#41;;
add_filter&#40;'the_author', 'ent2ncr', 8&#41;;

// Misc filters
add_filter&#40;'option_ping_sites', 'privacy_ping_filter'&#41;;
add_filter&#40;'option_blog_charset', '_wp_specialchars'&#41;; // IMPORTANT&#58; This must not be wp_specialchars&#40;&#41; or esc_html&#40;&#41; or it'll cause an infinite loop
add_filter&#40;'option_home', '_config_wp_home'&#41;;
add_filter&#40;'option_siteurl', '_config_wp_siteurl'&#41;;
add_filter&#40;'tiny_mce_before_init', '_mce_set_direction'&#41;;
add_filter&#40;'pre_kses', 'wp_pre_kses_less_than'&#41;;
add_filter&#40;'sanitize_title', 'sanitize_title_with_dashes'&#41;;
add_action&#40;'check_comment_flood', 'check_comment_flood_db', 10, 3&#41;;
add_filter&#40;'comment_flood_filter', 'wp_throttle_comment_flood', 10, 3&#41;;
add_filter&#40;'pre_comment_content', 'wp_rel_nofollow', 15&#41;;
add_filter&#40;'comment_email', 'antispambot'&#41;;
add_filter&#40;'option_tag_base', '_wp_filter_taxonomy_base'&#41;;
add_filter&#40;'option_category_base', '_wp_filter_taxonomy_base'&#41;;
add_filter&#40; 'the_posts', '_close_comments_for_old_posts' &#41;;
add_filter&#40; 'comments_open', '_close_comments_for_old_post', 10, 2 &#41;;
add_filter&#40; 'pings_open', '_close_comments_for_old_post', 10, 2 &#41;;
add_filter&#40; 'editable_slug', 'urldecode' &#41;;

// Atom SSL support
add_filter&#40;'atom_service_url','atom_service_url_filter'&#41;;

// Actions
add_action&#40;'wp_head', 'wp_enqueue_scripts', 1&#41;;
add_action&#40;'wp_head', 'feed_links_extra', 3&#41;;
add_action&#40;'wp_head', 'rsd_link'&#41;;
add_action&#40;'wp_head', 'wlwmanifest_link'&#41;;
add_action&#40;'wp_head', 'index_rel_link'&#41;;
add_action&#40;'wp_head', 'parent_post_rel_link', 10, 0&#41;;
add_action&#40;'wp_head', 'start_post_rel_link', 10, 0&#41;;
add_action&#40;'wp_head', 'adjacent_posts_rel_link', 10, 0&#41;;
add_action&#40;'wp_head', 'locale_stylesheet'&#41;;
add_action&#40;'publish_future_post', 'check_and_publish_future_post', 10, 1&#41;;
add_action&#40;'wp_head', 'noindex', 1&#41;;
add_action&#40;'wp_head', 'wp_print_styles', 8&#41;;
add_action&#40;'wp_head', 'wp_print_head_scripts', 9&#41;;
add_action&#40;'wp_head', 'wp_generator'&#41;;
add_action&#40;'wp_footer', 'wp_print_footer_scripts'&#41;;
if&#40;!defined&#40;'DOING_CRON'&#41;&#41;
	add_action&#40;'sanitize_comment_cookies', 'wp_cron'&#41;;
add_action&#40;'do_feed_rdf', 'do_feed_rdf', 10, 1&#41;;
add_action&#40;'do_feed_rss', 'do_feed_rss', 10, 1&#41;;
add_action&#40;'do_feed_rss2', 'do_feed_rss2', 10, 1&#41;;
add_action&#40;'do_feed_atom', 'do_feed_atom', 10, 1&#41;;
add_action&#40;'do_pings', 'do_all_pings', 10, 1&#41;;
add_action&#40;'do_generic_ping', 'generic_ping', 10, 1&#41;;
add_action&#40;'do_robots', 'do_robots'&#41;;
add_action&#40;'sanitize_comment_cookies', 'sanitize_comment_cookies'&#41;;
add_action&#40;'admin_print_scripts', 'print_head_scripts', 20&#41;;
add_action&#40;'admin_print_footer_scripts', 'print_footer_scripts', 20&#41;;
add_action&#40;'admin_print_styles', 'print_admin_styles', 20&#41;;
add_action&#40;'init', 'smilies_init', 5&#41;;
add_action&#40; 'plugins_loaded', 'wp_maybe_load_widgets', 0 &#41;;
add_action&#40; 'shutdown', 'wp_ob_end_flush_all', 1&#41;;
add_action&#40; 'pre_post_update', 'wp_save_post_revision' &#41;;
add_action&#40;'publish_post', '_publish_post_hook', 5, 1&#41;;
add_action&#40;'future_post', '_future_post_hook', 5, 2&#41;;
add_action&#40;'future_page', '_future_post_hook', 5, 2&#41;;
add_action&#40;'save_post', '_save_post_hook', 5, 2&#41;;
add_action&#40;'transition_post_status', '_transition_post_status', 5, 3&#41;;
add_action&#40;'comment_form', 'wp_comment_form_unfiltered_html_nonce'&#41;;
// Redirect Old Slugs
add_action&#40;'template_redirect', 'wp_old_slug_redirect'&#41;;
add_action&#40;'edit_post', 'wp_check_for_changed_slugs'&#41;;
add_action&#40;'edit_form_advanced', 'wp_remember_old_slug'&#41;;
add_action&#40;'init', '_show_post_preview'&#41;;

add_filter&#40;'pre_option_gmt_offset','wp_timezone_override_offset'&#41;;

?>

Dominik83
PostRank 9
PostRank 9
Beiträge: 1585
Registriert: 13.05.2009, 00:31

Beitrag von Dominik83 » 26.06.2009, 23:15

Ich weiß jetzt wo der Fehler liegt, beim löschen hab ich nie was falsch gemacht.

Ich hab das Projekt jetzt noch mal neu installiert und bei jedem Schritt den w3c Link-checker zur hand genommen,

Nach dem ich die Permalink-Struktur gerändert habe (Wordpress-Einstellungen-Permalink) und dort /%postname%/ eingegeben habe, weil das ja dann viel schöner im Browserfeld aussieht, (es erscheinen dann keine nichtssagenden Zahlen oder Buchstaben, sondern der name der Seite auf der ich mich gerade befinde)

Kann ich den Feed-Fehler dann ignorieren, oder muss ich auf /%postname%/ verzichten und bei den hässlichen Strukturen wie

Domain*de/?p=123 bleiben?

Antworten
  • Vergleichbare Themen
    Antworten
    Zugriffe
    Letzter Beitrag