Plugin / Absolute Relative URLs

Andrew Patterson

Changelog

Changelog

1.6.0

  • Fixed things so that urls are converted to absolute urls when editing content using the block editor
  • Added feature to remove and restore the ‘sites/’ part of the upload path when running in a multi-site environment
  • Added ability to disable either relative or absolute conversions
  • Restructured the code where filters are set, in part to simplify and in part to make it easier to disable relative or absolute conversions
  • Added ability to convert related sites in real time
  • Dropped the ability to filter ‘all’ options, now only supports identifying options to be filtered (this was always the default)
  • We now parse ‘data-link’ urls used by the gallery in the block editor

1.5.6

  • Fixed problems displaying urls when WordPress Address and Site Address in General Settings are not the same url

1.5.5

  • Fixed array definition to use array() instead of square brackets and be compatible with php prior to version 5.4
  • Updated Description documentation

1.5.4

  • Add related sites to list of urls that can be saved as relative urls (thanks @tythewebguy)
  • Reinstated conversion of urls that are the only content in a field (affects things like header image urls)
  • Reduced both save and view conversions to run in a single grep_replace
  • Put copy on github in case anyone wants to fork or contribute, https://github.com/intuitart/Absolute-Relative-URLs
  • Tested WordPress version 4.9.x

1.5.3

  • Ignore // at beginning of url when displaying urls as this is sometimes used for schema relative urls (thanks @ublac)
  • Ignore urls in content that is not prefixed by src, href, etc. when saving urls (thanks @timbobo)
  • Created a single pattern that is used for all save and display filters
  • Appended a / when saving a url and a domain without a trailing slash was used
  • Tested WordPress version 4.8

1.5.2

  • Tweaked algorithm that generates absolute urls to better catch edge cases.
  • Move WP options, for exclusion from ‘all’ options, into separate file.
  • Moved derivation of 1st and 2nd urls required when creating absolute urls so it only runs once, on class init().

1.5.1

  • Enable ‘all’ options filter wasn’t working. Fixed.
  • Added filter to allow additional option exclusions when ‘all’ options are enabled.
  • Updated readme.txt.

1.5.0

  • Tested up to WP 4.7
  • Wrapped code in a class.
  • Added a couple more editor option hooks to catch more urls.
  • Included img ‘srcset’ attribute when viewing content.
  • Added filters to allow additional view/save hooks or options to be added.
  • Added ability to filter all options, with exclusions, instead of filtering specific options. This is not enabled by default. Excluded are the built in WordPress options.

1.4.2

  • Tested up to WP 4.6.1
  • Updated readme.txt
  • Added icon to display on plugins page

1.4.1

  • Updated readme.txt to include wordpress.org installation and format correctly in validator
  • Renamed plugin file and folder to match plugin name submitted to WordPress

1.4

  • Added function to more reliably determine site’s base upload path (typically ‘wp-content/uploads’)
  • Distinguished between wordpress and site urls so that wordpress can run separate from domain root
  • Tested and confirmed the following scenarios work, all from the same database:
    • WordPress and site urls are the same and running from root (http or https)
    • WordPress and site urls are the same and running from a subdirectory (e.g ~/wordpress)
    • WordPress url is subdirectory and site url is root directory

1.3

  • Cleaned up to meet wordpress.org coding standards
  • Tweaked the code to use trailingslashit($string) rather than hard code $string . ‘/’

1.2

  • Add filters for ‘stylesheet’ and ‘template’ options to catch things like header image
  • Moved view filter for tinymce to option so save and view are at the same level
  • Added ability to parse object data types when saving and viewing
  • Explicitly handle string data type rather than assuming string
  • Return content unfiltered for data types other than array, object and string
  • Put view, save and options filters in arrays to document and make it easier to add/remove filters
  • Updated description and installation

1.1

  • Added updates to the excerpt field when it is entered separately from the content

1.0

  • First release, catches post_content and widget_black-studio-tinymce updates

Ratings

5
3 reviews

Rating breakdown

Details Information

Version

1.6.0

First Released

11 Mar, 2016

Total Downloads

13,307

Wordpress Version

4.4.0 or higher

Tested up to:

5.1.3

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.