Skip to content

Commit

Permalink
Merge pull request #1911 from Automattic/fix/old-domains-and-wordpres…
Browse files Browse the repository at this point in the history
…s.com-references

Update old domains and WordPress.com references
  • Loading branch information
Jesus Bravo Alvarez authored Dec 15, 2020
2 parents 0691ba6 + 1a7ab73 commit 7bf6b09
Show file tree
Hide file tree
Showing 18 changed files with 49 additions and 56 deletions.
2 changes: 1 addition & 1 deletion README-PUBLIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is the mu-plugins folder for VIP Go, assembled without submodules for convenience.

Please see our documentation on setting up your [local development environment](https://vip.wordpress.com/documentation/vip-go/local-vip-go-development-environment/).
Please see our documentation on setting up your [local development environment](https://docs.wpvip.com/how-tos/set-up-a-vip-go-local-development-site/).

## Pull Requests

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VIP Go mu-plugins

This is the development repo for mu-plugins on [VIP Go](http://vip.wordpress.com/documentation/vip-go/),
This is the development repo for mu-plugins on [VIP Go](https://wpvip.com/documentation/vip-go/),

## Development

Expand Down
6 changes: 3 additions & 3 deletions cache/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# VIP Cache Personalization API

The [VIP CDN](https://vip.wordpress.com/documentation/vip-go/caching-on-vip-go/) has been designed for low-latency and high performance and achieves that by serving the same cached content to as many users as possible.
The [VIP CDN](https://docs.wpvip.com/technical-references/caching/) has been designed for low-latency and high performance and achieves that by serving the same cached content to as many users as possible.

For cases where a one-size-fits-all approach doesn't work, the [VIP Cache Personalization API](https://vip.wordpress.com/?p=33575) can help customize the caching behaviour of the CDN while still leveraging the power and scale that it provides.
For cases where a one-size-fits-all approach doesn't work, the [VIP Cache Personalization API](https://docs.wpvip.com/technical-references/caching/the-vip-cache-personalization-api/) can help customize the caching behaviour of the CDN while still leveraging the power and scale that it provides.

In this README, we go through some real-world examples on how to use the Cache Personalization API in your applications. Before reading ahead, make sure you've [read the docs](https://vip.wordpress.com/?p=33575) to get a better understanding of the API and its capabilities.
In this README, we go through some real-world examples on how to use the Cache Personalization API in your applications. Before reading ahead, make sure you've [read the docs](https://docs.wpvip.com/technical-references/caching/the-vip-cache-personalization-api/) to get a better understanding of the API and its capabilities.

## Tutorial (Cache Segmentation): Beta Opt-in

Expand Down
2 changes: 1 addition & 1 deletion gutenberg-ramp.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function wpcom_vip_load_gutenberg( $criteria = true ) {

<p><strong>Your editor of choice has not been changed</strong>.</p>

<p>Read more about the new editor below, learn about <a href="https://vip.wordpress.com/documentation/gutenberg-at-vip/" rel="noopener noreferrer" target="_blank">how it's configured on VIP</a>, or <a href="https://testgutenberg.com/" rel="noopener noreferrer" target="_blank">try it out in your browser</a>.</p>
<p>Read more about the new editor below, learn about <a href="https://docs.wpvip.com/technical-references/plugins/loading-gutenberg-on-vip/" rel="noopener noreferrer" target="_blank">how it's configured on VIP</a>, or <a href="https://testgutenberg.com/" rel="noopener noreferrer" target="_blank">try it out in your browser</a>.</p>

<?php if ( ! $is_using_gutenberg ) : ?>
<p>Need help planning your transition? The <a href="<?php echo admin_url( 'admin.php?page=vip-dashboard' ); ?>">VIP Support team is ready to help</a>!</p>
Expand Down
8 changes: 4 additions & 4 deletions lib/proxy/ip-forward.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Verify the remote proxy from a whitelist of IP addresses, and set the
* end user IP if verification succeeds.
*
* @see https://vip.wordpress.com/documentation/vip-go/reverse-proxies-and-vip-go/
* @see https://docs.wpvip.com/how-tos/configure-a-reverse-proxy/
*
* @param (string) $user_ip IP Address of the end-user passed through by the proxy.
* @param (string) $remote_proxy_ip IP Address of the remote proxy.
Expand Down Expand Up @@ -41,7 +41,7 @@ function fix_remote_address( $user_ip, $remote_proxy_ip, $proxy_ip_whitelist ) {
*
* Only two levels of proxies are supported.
*
* @see https://vip.wordpress.com/documentation/vip-go/reverse-proxies-and-vip-go/
* @see https://docs.wpvip.com/how-tos/configure-a-reverse-proxy/
*
* @param (string) $ip_trail Comma-separated list of IPs (something like `user_ip, proxy_ip`)
* @param (string|array) $proxy_ip_whitelist Whitelisted IP addresses for the remote proxy. Supports IPv4 and IPv6, including CIDR format.
Expand All @@ -63,7 +63,7 @@ function fix_remote_address_from_ip_trail( $ip_trail, $proxy_ip_whitelist ) {
* Verify the remote proxy via a secret verification key, and set the
* end user IP if verification succeeds.
*
* @see https://vip.wordpress.com/documentation/vip-go/reverse-proxies-and-vip-go/
* @see https://docs.wpvip.com/how-tos/configure-a-reverse-proxy/
*
* @param (string) $user_ip IP Address of the end-user passed through by the proxy.
* @param (string) $submitted_verification_key Verification key passed through request headers
Expand Down Expand Up @@ -92,7 +92,7 @@ function fix_remote_address_with_verification_key( $user_ip, $submitted_verifica
*
* Only two levels of proxies are supported.
*
* @see https://vip.wordpress.com/documentation/vip-go/reverse-proxies-and-vip-go/
* @see https://docs.wpvip.com/how-tos/configure-a-reverse-proxy/
*
* @param (string) $ip_trail Comma-separated list of IPs (something like `user_ip, proxy_ip`)
* @param (string) $submitted_verification_key Verification key passed through request headers
Expand Down
2 changes: 1 addition & 1 deletion phpdoc.dist.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
<title>WordPress.com VIP – VIP Go Function Documentation</title>
<title>WordPress VIP – VIP Go Function Documentation</title>
<parser>
<!-- This places the cache dirs in the root dir `/phpdoc/` for your site -->
<target>phpdoc/</target>
Expand Down
2 changes: 1 addition & 1 deletion rest-api/vip-endpoints.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: VIP REST API Endpoints
Plugin URI: https://vip.wordpress.com/
Plugin URI: https://wpvip.com
Description: Add custom REST API endpoints for VIP requests; N.B. these endpoints are subject to change without notice, and should be considered "private".
Author: Erick Hitter, Automattic
Version: 0.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public function set_facets( $facets ) {
/**
* Set any additional blogs to query along with the current blog
*
* This method accepts an array of additional blog names, in the format of vip.wordpress.com,
* This method accepts an array of additional blog names, in the format of example.com,
* that should be queried.
*
* @param array $domains The additional blogs to query
Expand Down
2 changes: 1 addition & 1 deletion vip-cache-manager/ttl-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/*
Plugin name: TTL Manager
Description: Sets cache TTLs for site responses, see https://vip.wordpress.com/documentation/vip-go/controlling-vip-go-page-cache/
Description: Sets cache TTLs for site responses, see https://docs.wpvip.com/technical-references/caching/page-cache/
Author: Automattic
Author URI: https://automattic.com/
Version: 1.0
Expand Down
6 changes: 3 additions & 3 deletions vip-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

/*
* Plugin Name: VIP Dashboard
* Plugin URI: http://vip.wordpress.com
* Plugin URI: https://wpvip.com
* Description: WordPress VIP Go Dashboard
* Author: Scott Evans, Filipe Varela
* Author: Scott Evans, Filipe Varela, WPVIP
* Version: 2.0.4
* Author URI: http://vip.wordpress.com
* Author URI: https://wpvip.com
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: vip-dashboard
Expand Down
12 changes: 6 additions & 6 deletions vip-helpers/vip-caching.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* @param string $slug Category slug
* @return object|null|bool Term Row from database. Will return null if $slug doesn't match a term. If taxonomy does not exist then false will be returned.
* @link http://vip.wordpress.com/documentation/uncached-functions/ Uncached Functions
* @link https://docs.wpvip.com/technical-references/caching/uncached-functions/ Uncached Functions
*/
function wpcom_vip_get_category_by_slug( $slug ) {
return wpcom_vip_get_term_by( 'slug', $slug, 'category' );
Expand All @@ -26,7 +26,7 @@ function wpcom_vip_get_category_by_slug( $slug ) {
* @param string $output Optional. Constant OBJECT, ARRAY_A, or ARRAY_N
* @param string $filter Optional. Default is 'raw' or no WordPress defined filter will applied.
* @return mixed|null|bool Term Row from database in the type specified by $filter. Will return false if $taxonomy does not exist or $term was not found.
* @link http://vip.wordpress.com/documentation/uncached-functions/ Uncached Functions
* @link https://docs.wpvip.com/technical-references/caching/uncached-functions/ Uncached Functions
*/
function wpcom_vip_get_term_by( $field, $value, $taxonomy, $output = OBJECT, $filter = 'raw' ) {
// ID lookups are cached
Expand Down Expand Up @@ -155,7 +155,7 @@ function wpcom_vip_get_term_link( $term, $taxonomy = null ) {
* @param string $output Optional. Output type; OBJECT*, ARRAY_N, or ARRAY_A.
* @param string $post_type Optional. Post type; default is 'page'.
* @return WP_Post|null WP_Post on success or null on failure
* @link http://vip.wordpress.com/documentation/uncached-functions/ Uncached Functions
* @link https://docs.wpvip.com/technical-references/caching/uncached-functions/ Uncached Functions
*/
function wpcom_vip_get_page_by_title( $title, $output = OBJECT, $post_type = 'page' ) {
$cache_key = $post_type . '_' . sanitize_key( $title );
Expand All @@ -181,7 +181,7 @@ function wpcom_vip_get_page_by_title( $title, $output = OBJECT, $post_type = 'pa
* @param string $output Optional. Output type; OBJECT*, ARRAY_N, or ARRAY_A.
* @param string $post_type Optional. Post type; default is 'page'.
* @return WP_Post|null WP_Post on success or null on failure
* @link http://vip.wordpress.com/documentation/uncached-functions/ Uncached Functions
* @link https://docs.wpvip.com/technical-references/caching/uncached-functions/ Uncached Functions
*/
function wpcom_vip_get_page_by_path( $page_path, $output = OBJECT, $post_type = 'page' ) {
if ( is_array( $post_type ) ) {
Expand Down Expand Up @@ -215,7 +215,7 @@ function wpcom_vip_get_page_by_path( $page_path, $output = OBJECT, $post_type =
* @param string $new_status The post's new status
* @param string $old_status The post's previous status
* @param WP_Post $post The post
* @link http://vip.wordpress.com/documentation/uncached-functions/ Uncached Functions
* @link https://docs.wpvip.com/technical-references/caching/uncached-functions/ Uncached Functions
*/
function wpcom_vip_flush_get_page_by_title_cache( $new_status, $old_status, $post ) {
if ( 'publish' === $new_status || 'publish' === $old_status ) {
Expand All @@ -231,7 +231,7 @@ function wpcom_vip_flush_get_page_by_title_cache( $new_status, $old_status, $pos
* @param string $old_status The post's previous status
* @param WP_Post $post The post
*
* @link http://vip.wordpress.com/documentation/uncached-functions/ Uncached Functions
* @link https://docs.wpvip.com/technical-references/caching/uncached-functions/ Uncached Functions
*/
function wpcom_vip_flush_get_page_by_path_cache( $new_status, $old_status, $post ) {
if ( 'publish' === $new_status || 'publish' === $old_status ) {
Expand Down
15 changes: 6 additions & 9 deletions vip-helpers/vip-deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Loads the shared VIP helper file which defines some helpful functions.
*
* @deprecated Not applicable since VIP 2.0.0
* @link http://vip.wordpress.com/documentation/development-environment/ Setting up your Development Environment
*/
function wpcom_vip_load_helper() {
_deprecated_function( __FUNCTION__, '2.0.0' );
Expand Down Expand Up @@ -230,8 +229,7 @@ function wpcom_vip_remove_polldaddy_rating() {
/**
* Removes the <media:content> tags from the RSS2 feed.
*
* You should really call this when creating a custom feed (best to leave them in your normal feed)
* For details on creating a custom feed, see http://lobby.vip.wordpress.com/custom-made/altering-feeds/
* You should really call this when creating a custom feed (best to leave them in your normal feed).
*
* @deprecated Not applicable since VIP 2.0.0
*/
Expand All @@ -250,8 +248,8 @@ function wpcom_vip_disable_postpost() {
* Outputs Open Graph tags to various pages on the site
*
* @deprecated Deprecated since VIP 2.0.0 - Use the `jetpack_enable_open_graph` filter
* @link http://vip.wordpress.com/documentation/open-graph/ Adding Open Graph Tags
* @see http://developers.facebook.com/docs/opengraph/ Open Graph
* @link https://developer.jetpack.com/hooks/jetpack_enable_open_graph/
* @see https://developers.facebook.com/docs/sharing/opengraph Open Graph
*/
function wpcom_vip_enable_opengraph() {
_deprecated_function( __FUNCTION__, '2.0.0', '`jetpack_enable_open_graph` filter' );
Expand All @@ -265,7 +263,6 @@ function wpcom_vip_enable_opengraph() {
* function forces the invitation email to match the WordPress.com user's email address.
*
* @deprecated Not applicable since VIP 2.0.0
* @link http://vip.wordpress.com/documentation/customizing-invites/ Customizing Invites
*/
function wpcom_invite_force_matching_email_address() {
_deprecated_function( __FUNCTION__, '2.0.0' );
Expand Down Expand Up @@ -515,7 +512,7 @@ function vary_cache_on_function( $function ) {
* This is the old deprecated version of wpcom_vip_file_get_contents(). Please don't use this function in any new code.
*
* @deprecated
* @link http://lobby.vip.wordpress.com/best-practices/fetching-remote-data/ Fetching Remote Data
* @link https://wpvip.com/documentation/fetching-remote-data/ Fetching Remote Data
* @param string $url URL to fetch
* @param bool $echo_content Optional. If true (the default), echo the remote file's contents. If false, return it.
* @param int $timeout Optional. The timeout limit in seconds; valid values are 1-10. Defaults to 3.
Expand Down Expand Up @@ -1120,7 +1117,7 @@ function wpcom_is_vip() {
* So even though it says "remote", you can use it for attachments hosted by us, etc.
*
* @deprecated Deprecated since 2.0.0 - use jetpack_photon_url()
* @link http://vip.wordpress.com/documentation/image-resizing-and-cropping/ Image Resizing And Cropping
* @link https://wpvip.com/documentation/image-resizing-and-cropping/ Image Resizing And Cropping
* @param string $url The raw URL to the image (URLs that redirect are currently not supported with the exception of http://foobar.wordpress.com/files/ type URLs)
* @param int $width The desired width of the final image
* @param int $height The desired height of the final image
Expand Down Expand Up @@ -1221,7 +1218,7 @@ function wpcom_vip_theme_url( $path = '', $theme = '' ) {
/**
* Return the directory path for a given VIP theme
*
* @link http://vip.wordpress.com/documentation/mobile-theme/ Developing for Mobile Phones and Tablets
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/mobile-theme/ Developing for Mobile Phones and Tablets
* @param string $theme Optional. Name of the theme folder
* @return string Path for the specified theme
*/
Expand Down
2 changes: 1 addition & 1 deletion vip-helpers/vip-newrelic.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function wpcom_vip_disable_new_relic_js() {


/**
* The following functions are for platform level changes and should only be changed after consulting with WordPress.com VIP
* The following functions are for platform level changes and should only be changed after consulting with WordPress VIP
*/

if ( extension_loaded( 'newrelic' ) ){
Expand Down
12 changes: 6 additions & 6 deletions vip-helpers/vip-permastructs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Usage: wpcom_vip_load_permastruct( '/%category%/%postname%/' );
*
* @link http://vip.wordpress.com/documentation/change-your-pretty-permalinks-or-add-custom-rewrite-rules/ Change Your Pretty Permalinks
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/pretty-permalinks-and-custom-rewrite-rules/ Change Your Pretty Permalinks
* @param string $new_permastruct
*/
function wpcom_vip_load_permastruct( $new_permastruct ) {
Expand All @@ -18,7 +18,7 @@ function wpcom_vip_load_permastruct( $new_permastruct ) {
/**
* Applies the new permalink structure to the option value
*
* @link http://vip.wordpress.com/documentation/change-your-pretty-permalinks-or-add-custom-rewrite-rules/ Change Your Pretty Permalinks
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/pretty-permalinks-and-custom-rewrite-rules/ Change Your Pretty Permalinks
* @param string $permastruct The new permastruct
* @return string The new permastruct
*/
Expand All @@ -34,7 +34,7 @@ function _wpcom_vip_filter_permalink_structure( $permastruct ) {
* wpcom_vip_load_category_base( '' );
* wpcom_vip_load_category_base( 'section' );
*
* @link http://vip.wordpress.com/documentation/change-your-pretty-permalinks-or-add-custom-rewrite-rules/ Change Your Pretty Permalinks
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/pretty-permalinks-and-custom-rewrite-rules/ Change Your Pretty Permalinks
* @param string $new_category_base New category base prefix
*/
function wpcom_vip_load_category_base( $new_category_base ) {
Expand All @@ -55,7 +55,7 @@ function wpcom_vip_load_category_base( $new_category_base ) {
/**
* Applies the new category base to the option value
*
* @link http://vip.wordpress.com/documentation/change-your-pretty-permalinks-or-add-custom-rewrite-rules/ Change Your Pretty Permalinks
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/pretty-permalinks-and-custom-rewrite-rules/ Change Your Pretty Permalinks
* @param string $category_base New category base prefix
* @return string The category base prefix
*/
Expand All @@ -70,7 +70,7 @@ function _wpcom_vip_filter_category_base( $category_base ) {
* Usage:
* wpcom_vip_load_tag_base( 'section' );
*
* @link http://vip.wordpress.com/documentation/change-your-pretty-permalinks-or-add-custom-rewrite-rules/ Change Your Pretty Permalinks
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/pretty-permalinks-and-custom-rewrite-rules/ Change Your Pretty Permalinks
* @param string $new_tag_base New tag base prefix
*/
function wpcom_vip_load_tag_base( $new_tag_base ) {
Expand All @@ -83,7 +83,7 @@ function wpcom_vip_load_tag_base( $new_tag_base ) {
/**
* Applies the new tag base to the option value
*
* @link http://vip.wordpress.com/documentation/change-your-pretty-permalinks-or-add-custom-rewrite-rules/ Change Your Pretty Permalinks
* @link https://lobby.vip.wordpress.com/wordpress-com-documentation/pretty-permalinks-and-custom-rewrite-rules/ Change Your Pretty Permalinks
* @param string $tag_base New tag base prefix
* @return string The tag base prefix
*/
Expand Down
Loading

0 comments on commit 7bf6b09

Please sign in to comment.