WordPress plugin intelligence profile

Absolute-to-Relative URLs

A function() for use in shortening URL links. This plugin is meant for dev work and does not automatically shorten URLs.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.4
Current version0.3.4
WordPress coverageTested up to WordPress 3.4
Minimum stackWP 3.2 · PHP —
Directory statusactive
Last directory update28 Mar 201313y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Absolute-to-Relative URLs version 0.3.4 as active, updated 13y ago and tested up to WordPress 3.4.

Overview

About this plugin

com/test/testing/, you would get results like these:

-

  • Before: http;//example.com/test/another-test/#anchor
  • After:../another-test/#anchor

-

  • Before: http;//example.com/wp-content/themes/twentyten/style.css
  • After: /wp-content/themes/twentyten/style.css

-

  • Before: http s;//example.com/wp-content/themes/twentyten/style.css
  • After: http s;//example.com/wp-content/themes/twentyten/style.css

-

  • Before: http;//google.com/test/
  • After: //google.com/test/

-

  • Before:../../../../../../../../#anchor
  • After: /#anchor
  • After ( $output_type=1 ):../../#anchor

All string parsing. No directory browsing.

If you’re looking for a plugin that will automatically convert all URLs on your WordPress site, instead check out my other plugin, WP-HTML-Compression.

Before you copy this code and add it into your own, keep in mind that there will probably be future updates. Keeping the code within an installed plugin will make sure that you’re notified.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • absolute
  • function
  • link
  • links
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.4

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.4.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.4
Minimum requirementsWordPress 3.2 · PHP not listed
Update activity28 Mar 201313y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.