{"id":11228,"date":"2010-11-15T22:26:00","date_gmt":"2010-11-15T22:26:00","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/remove-redundant-links\/"},"modified":"2011-03-07T09:41:06","modified_gmt":"2011-03-07T09:41:06","slug":"remove-redundant-links","status":"closed","type":"plugin","link":"https:\/\/sq.wordpress.org\/plugins\/remove-redundant-links\/","author":2749838,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.7","stable_tag":"trunk","tested":"3.1.4","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Remove Redundant Links","header_author":"Thomas Scholz","header_description":"","assets_banners_color":"","last_updated":"2011-03-07 09:41:06","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/toscho.de","rating":4.6,"author_block_rating":0,"active_installs":1000,"downloads":8566,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>Doesn&#039;t touch rel=bookmark anymore<\/p>"},"ratings":{"1":0,"2":0,"3":1,"4":0,"5":4},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2236,1975,175,1753,3893],"plugin_category":[43,46],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-11228","plugin","type-plugin","status-closed","hentry","plugin_tags-filter","plugin_tags-formatting","plugin_tags-links","plugin_tags-navigation","plugin_tags-usability","plugin_category-customization","plugin_category-editor-and-writing","plugin_committers-toscho"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/remove-redundant-links.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Changes <code>&lt;a&gt;<\/code> elements pointing to the currently seen page by removing the <code>href<\/code> attribute and adding a descriptive <code>title<\/code>.<\/p>\n\n<p>Compatible with most themes. Tested with TwentyTen<\/p>\n\n<p>Example:\nIf you are on the page <code>\/about\/<\/code><\/p>\n\n<pre><code>&lt;a href='http:\/\/example.com\/about\/'&gt;About&lt;\/a&gt; \n<\/code><\/pre>\n\n<p>will be converted to<\/p>\n\n<pre><code>&lt;a title='You are here.' class='rrl current_page_item'&gt;About&lt;\/a&gt;\n<\/code><\/pre>\n\n<p>and<\/p>\n\n<pre><code>&lt;link rel='author' href='\/about\/'&gt;\n<\/code><\/pre>\n\n<p>will be removed.<\/p>\n\n<p>All changes apply to <code>GET<\/code> requests only.<\/p>\n\n<p>Send me your bug reports and suggestions via my <a href=\"http:\/\/toscho.de\/kontakt\/\">contact page<\/a>.<\/p>\n\n<!--section=installation-->\n<p>Upload the directory to your plugin directory. \nActivate the plugin through the 'Plugins' menu in WordPress.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How can I change the replaced element, the title or the class name?<\/dt>\n<dd><p>The current settings are chosen for compatibility. \nTo use other settings, you probably have to alter your theme.<\/p>\n\n<p>You may alter the settings with a filter on <code>rrl_settings<\/code> in your <code>functions.php<\/code>.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>function change_rrl_settings( $settings )\n{\n    $settings['class']     = 'my_own_class';\n    $settings['title']     = 'Here be dragons';\n    $settings['replace_a'] = 'span';\n\n    return $settings;\n}\n\nadd_filter( 'rrl_settings', 'change_rrl_settings', 10, 1 );\n<\/code><\/pre><\/dd>\n<dt>How can I prevent the stripping of the server prefix for links to other pages on the same site?<\/dt>\n<dd><p>Same as above, set <code>strip_server_prefix_on_all_links<\/code> to <code>FALSE<\/code>:<\/p>\n\n<pre><code>function rrl_prevent_server_prefix( $settings )\n{\n    $settings['strip_server_prefix_on_all_links']     = FALSE;\n    return $settings;\n}\n\nadd_filter( 'rrl_settings', 'rrl_prevent_server_prefix', 10, 1);\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<ul>\n<li>v1.0 Initial release<\/li>\n<li>v1.1 Fixed update blocker<\/li>\n<li>v1.2 Fixed regex to match links. <code>acronym<\/code> and <code>abbr<\/code> will not be matched anymore.<\/li>\n<li>v1.3 Fixed broken URIs on the frontpage.<\/li>\n<li>v1.4 Added an option <code>strip_server_prefix_on_all_links<\/code>. Defaults to <code>TRUE<\/code>. Set this to <code>FALSE<\/code> to keep absolute URIs. See the FAQ.<\/li>\n<li>v1.5 Fixed issue with <code>&lt;link rel=canonical&gt;<\/code>. Thanks to <a href=\"http:\/\/twitter.com\/eviluody\">eviluody<\/a> for testing!<\/li>\n<li>v1.6 Fixed missing space in <code>&lt;linkrel=canonical&gt;<\/code>.<\/li>\n<li>v1.7 Don\u2019t touch <code>&lt;a rel=bookmark&gt;<\/code>, the \u00bbpermalink\u00ab in TwentyTen.<\/li>\n<\/ul>","raw_excerpt":"Replaces links to the currently seen page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/11228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=11228"}],"author":[{"embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thefuxia"}],"wp:attachment":[{"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=11228"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=11228"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=11228"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=11228"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=11228"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sq.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=11228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}