-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreadme.txt
63 lines (45 loc) · 2.46 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
=== China Video Block ===
Plugin Name: China Video Block
Author: CNCF (Part of Linux Foundation)
Plugin URI: https://github.com/cncf/china-video-block
Contributors: cjyabraham, bonkerz
Tags: china, chinese, video, youtube
Version: 0.2.6
Stable tag: 0.2.6
Requires PHP: 7.4
Requires at least: 5.0
Tested up to: 6.7.1
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
🇨🇳 🎬 🧱 Automatically serve China-hosted videos to Chinese audiences while delivering YouTube videos to viewers from other regions.
== Description ==
🇨🇳 🎬 🧱 This block allows for embedding a video in a WordPress post or page. If the user who views the page is in China, a different video will show from users in the rest of the world. This is to appropriately deal with China's Internet wall which blocks YouTube and other video platforms.
The plugin has been developed for [CNCF](https://www.cncf.io/) and [The Linux Foundation](https://www.linuxfoundation.org/).
For more information on how to develop this block, please see the [github repo](https://github.com/cncf/china-video-block). PRs are welcome.
== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/china-video-block` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Settings->China Video Block screen to set the IPInfo.io token
1. Insert the block into a post or page.
== Screenshots ==
1. China Video block inserted into a post.
== Changelog ==
= 0.2.6 =
* WordPress 6.7 compatibility
* Plugin build modernisation
= 0.2.5 =
* Fixes PHP Notice "Trying to access array offset on value of type bool"
* WordPress 5.8 compatibility
= 0.2.4 =
* Loads the front-end script using wp_enqueue_script() only when the block is present on the page
= 0.2.3 =
* Fixed the ver number on the script so that the block doesn't keep breaking
= 0.2.2 =
* added a browser-busting version querystring for the front.js file so that browsers download the new file when it updates
= 0.2.1 =
* added compiled build file
= 0.2.0 =
* rewrite of the code to favor the China video; the problem was that, when favoring the non-China video, it would produce a failed request for users in China since it was loaded on page load before being changed to the China video
* when the ipinfo call produces and error, no cookie value is now set so that the call can be tried again during a subsequent page load
= 0.1.0 =
* First release