Title: aitch ref!
Author: postpostmodern
Published: <strong>2010 年 2 月 25 日</strong>
Last modified: 2018 年 1 月 29 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/aitch-ref.svg)

# aitch ref!

 作者：[postpostmodern](https://profiles.wordpress.org/postpostmodern/)

[下载](https://downloads.wordpress.org/plugin/aitch-ref.zip)

 * [详情](https://cn.wordpress.org/plugins/aitch-ref/#description)
 * [评价](https://cn.wordpress.org/plugins/aitch-ref/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/aitch-ref/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/aitch-ref/#developers)

 [支持](https://wordpress.org/support/plugin/aitch-ref/)

## 描述

Useful for switching between different development environments. Attempts to replace
any absolute urls, whether generated though WordPress option like ‘siteurl’ or ‘
home’, or through hardcoded urls in posts.

## 屏幕截图

 * [[
 * time out for you `/trunk/screenshot-1.jpg`

## 安装

 1. Place entire /aitch-ref/ directory to the /wp-content/plugins/ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Enter all possible site urls in the text box, each on a new line. Example could
    be https://wordpress.org/ , https://dev.wordpress.org/, http://dev.wordpress. Note–
    subdirectories to not currently work, so http://127.0.0.1/~wordpress/ would give
    you bad results
 4. _Important_ if SSL is used on site – each record needs an entry for ssl. For example,
    if your dev environment is http://dev.wordpress you will need to enter https://
    dev.wordpress as well even if it does not exist.
 5. Look at your source, now back to me. Now back to your source.

## 常见问题

  Installation Instructions

 1. Place entire /aitch-ref/ directory to the /wp-content/plugins/ directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Enter all possible site urls in the text box, each on a new line. Example could
    be https://wordpress.org/ , https://dev.wordpress.org/, http://dev.wordpress. Note–
    subdirectories to not currently work, so http://127.0.0.1/~wordpress/ would give
    you bad results
 4. _Important_ if SSL is used on site – each record needs an entry for ssl. For example,
    if your dev environment is http://dev.wordpress you will need to enter https://
    dev.wordpress as well even if it does not exist.
 5. Look at your source, now back to me. Now back to your source.

## 评价

此插件暂无评价。

## 贡献者及开发者

「aitch ref!」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ postpostmodern ](https://profiles.wordpress.org/postpostmodern/)
 *   [ pinecone-dot-website ](https://profiles.wordpress.org/pinecone-dot-io/)

[帮助将「aitch ref!」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/aitch-ref)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/aitch-ref/)，查看[SVN仓库](https://plugins.svn.wordpress.org/aitch-ref/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/aitch-ref/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/aitch-ref/)。

## 更新日志

#### 0.9.8

allow AITCH_REF_SERVER_URL constant, back compat

#### 0.9.7

major refactor, require php 5.4

#### .91

fixed typo in absolute filter, fix absolute check with offsite https links

#### .9

refactor to namespace

#### .86

moving to github

#### .85

fixed short tags, escape textarea

#### .8

better MU functionality

#### .75

added SSL support – for now you must add additional entries for each environment
even if a dev ssl does not exist
 added filter for `stylesheet_uri`

#### .71

added filter for `login_url`

#### .70

removed **DIR** for php 5.2 compat

#### .69

removes duplicates from url list in admin

#### .68

added filter for `wp_get_attachment_url`

#### .66

pre_post_link changed to not use absolute link, was causing double http:// on some
sites

#### .65

added aitch() helper function

#### .62

force baseurl in absolute filter

#### .61

added filter for `term_link`

#### 0.6

added filter for `style_loader_src`

#### 0.59

added filter for `content_url`

#### 0.58

    ```
    admin_url uses absolute url filter now
    ```

#### 0.55

fixed bug affecting ‘upload_dir’ filter

#### 0.53

added filter for admin scripts

#### 0.51

fixed deprecated argument in add_options_page()

#### 0.5

discovered incompatibility in wordpress 2.x, bumped minimum version to 3.0 – no 
new functionality

#### 0.49

fixed bug in self::$path, discrepancies on $_SERVER[‘DOCUMENT_ROOT’] on certain 
environments

#### 0.42

fixed bug in updating options on a multiuser install

#### 0.3

better handling of mu / single blog installs. MU uses blog #1 for all options db
storage

#### 0.2

minor code cleanups, using json_encode for options db storage, fancy graphic

#### 0.15

minor code cleanups

#### 0.1

yes, its here

## 额外信息

 *  版本 **0.9.9**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/aitch-ref/)
 * 标签
 * [href](https://cn.wordpress.org/plugins/tags/href/)[url](https://cn.wordpress.org/plugins/tags/url/)
 *  [高级视图](https://cn.wordpress.org/plugins/aitch-ref/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/aitch-ref/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/aitch-ref/reviews/)

## 贡献者

 *   [ postpostmodern ](https://profiles.wordpress.org/postpostmodern/)
 *   [ pinecone-dot-website ](https://profiles.wordpress.org/pinecone-dot-io/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/aitch-ref/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://cash.me/$EricEaglstun)