Changeset 2517074
- Timestamp:
- 04/18/2021 09:42:02 AM (5 years ago)
- Location:
- wpm-floc
- Files:
-
- 6 added
- 18 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from wpm-floc/trunk)
-
tags/1.1.0/inc/FLoC/Component.php (modified) (2 diffs)
-
tags/1.1.0/inc/Plugin.php (modified) (1 diff)
-
tags/1.1.0/inc/WPSC (added)
-
tags/1.1.0/inc/WPSC/Component.php (added)
-
tags/1.1.0/inc/WPSC/wpsc.php (added)
-
tags/1.1.0/readme.txt (modified) (3 diffs)
-
tags/1.1.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.0/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
tags/1.1.0/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/1.1.0/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.1.0/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.1.0/wpmfloc.php (modified) (3 diffs)
-
trunk/inc/FLoC/Component.php (modified) (2 diffs)
-
trunk/inc/Plugin.php (modified) (1 diff)
-
trunk/inc/WPSC (added)
-
trunk/inc/WPSC/Component.php (added)
-
trunk/inc/WPSC/wpsc.php (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wpmfloc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpm-floc/tags/1.1.0/inc/FLoC/Component.php
r2516863 r2517074 9 9 use WpMunich\wpmfloc\Component_Interface; 10 10 use function add_action; 11 use function add_filter; 11 12 12 13 /** … … 40 41 */ 41 42 public function disable( $headers, $wp ) { 42 if ( isset( $headers['Permissions-Policy'] ) && ! empty( $headers['Permissions-Policy'] ) && strpos( $headers['Permission-Policy'], 'interest-cohort' ) === false ) { 43 if ( 44 isset( $headers['Permissions-Policy'] ) && 45 ! empty( $headers['Permissions-Policy'] ) && 46 strpos( $headers['Permission-Policy'], 'interest-cohort' ) === false 47 ) { 43 48 $headers['Permissions-Policy'] = $headers['Permissions-Policy'] . ', interest-cohort=()'; 44 49 } else { 45 50 $headers['Permissions-Policy'] = 'interest-cohort=()'; 46 51 } 52 47 53 return $headers; 48 54 } -
wpm-floc/tags/1.1.0/inc/Plugin.php
r2516816 r2517074 132 132 new i18n\Component(), 133 133 new FLoC\Component(), 134 new WPSC\Component(), 134 135 ); 135 136 -
wpm-floc/tags/1.1.0/readme.txt
r2516865 r2517074 7 7 License: GPLv2 8 8 License URI: https://www.gnu.de/documents/gpl-2.0.html 9 Stable tag: 1. 0.09 Stable tag: 1.1.0 10 10 11 11 A simple zero-config plugin to opt-out of Google "Federated Learning of Cohorts" (FLoC). … … 29 29 - [**Brave Browser** - Why Brave disables FLoC](https://brave.com/why-brave-disables-floc/) 30 30 - [The **WICG** Draft for FLoC](https://wicg.github.io/floc/) 31 32 ## Compatibility with Cache Plugins 33 This plugin relies on the ability to deliver HTTP headers to the browser. Some Cache Plugins actively strip these HTTP headers and therefore invalidate the purpose of this plugin. 34 35 These cache plugins are known to be compatible: 36 37 - [**WP Super Cache**](https://wordpress.org/plugins/wp-super-cache/) - You have to activate the "*Cache HTTP headers with page content.*" checkbox in the Advanced Tab of the WP Super Cache Settings. 31 38 32 39 == Installation == … … 53 60 54 61 == Changelog == 62 = 1.1.0 = 63 * Added compatibility for [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/) 64 55 65 = 1.0.0 = 56 66 * Initial release -
wpm-floc/tags/1.1.0/vendor/autoload.php
r2516865 r2517074 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce71::getLoader();7 return ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706::getLoader(); -
wpm-floc/tags/1.1.0/vendor/composer/InstalledVersions.php
r2516865 r2517074 31 31 array ( 32 32 ), 33 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',33 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 34 34 'name' => 'wpmunich/lhbpp', 35 35 ), … … 52 52 array ( 53 53 ), 54 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',54 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 55 55 ), 56 56 ), -
wpm-floc/tags/1.1.0/vendor/composer/autoload_real.php
r2516865 r2517074 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce715 class ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce71', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce71', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 45d744ab1c5ee12ae00922ba2e6fce71($fileIdentifier, $file);59 composerRequire15c96bdaccb1113f6490774f61f0a706($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire 45d744ab1c5ee12ae00922ba2e6fce71($fileIdentifier, $file)66 function composerRequire15c96bdaccb1113f6490774f61f0a706($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wpm-floc/tags/1.1.0/vendor/composer/autoload_static.php
r2516865 r2517074 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce717 class ComposerStaticInit15c96bdaccb1113f6490774f61f0a706 8 8 { 9 9 public static $files = array ( … … 32 32 { 33 33 return \Closure::bind(function () use ($loader) { 34 $loader->prefixLengthsPsr4 = ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$prefixLengthsPsr4;35 $loader->prefixDirsPsr4 = ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$prefixDirsPsr4;36 $loader->classMap = ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$classMap;34 $loader->prefixLengthsPsr4 = ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$prefixLengthsPsr4; 35 $loader->prefixDirsPsr4 = ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$prefixDirsPsr4; 36 $loader->classMap = ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$classMap; 37 37 38 38 }, null, ClassLoader::class); -
wpm-floc/tags/1.1.0/vendor/composer/installed.php
r2516865 r2517074 7 7 array ( 8 8 ), 9 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',9 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 10 10 'name' => 'wpmunich/lhbpp', 11 11 ), … … 28 28 array ( 29 29 ), 30 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',30 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 31 31 ), 32 32 ), -
wpm-floc/tags/1.1.0/wpmfloc.php
r2516865 r2517074 4 4 * 5 5 * @package wpmfloc 6 * @version 1. 0.06 * @version 1.1.0 7 7 * 8 8 * Plugin Name: Disable FLoC … … 11 11 * Author: WP Munich 12 12 * Author URI: https://www.wp-munich.com 13 * Version: 1. 0.013 * Version: 1.1.0 14 14 * Text Domain: wpm-floc 15 15 */ … … 25 25 26 26 if ( ! defined( 'WPMFLOC_VERSION' ) ) { 27 define( 'WPMFLOC_VERSION', '1. 0.0' );27 define( 'WPMFLOC_VERSION', '1.1.0' ); 28 28 } 29 29 -
wpm-floc/trunk/inc/FLoC/Component.php
r2516863 r2517074 9 9 use WpMunich\wpmfloc\Component_Interface; 10 10 use function add_action; 11 use function add_filter; 11 12 12 13 /** … … 40 41 */ 41 42 public function disable( $headers, $wp ) { 42 if ( isset( $headers['Permissions-Policy'] ) && ! empty( $headers['Permissions-Policy'] ) && strpos( $headers['Permission-Policy'], 'interest-cohort' ) === false ) { 43 if ( 44 isset( $headers['Permissions-Policy'] ) && 45 ! empty( $headers['Permissions-Policy'] ) && 46 strpos( $headers['Permission-Policy'], 'interest-cohort' ) === false 47 ) { 43 48 $headers['Permissions-Policy'] = $headers['Permissions-Policy'] . ', interest-cohort=()'; 44 49 } else { 45 50 $headers['Permissions-Policy'] = 'interest-cohort=()'; 46 51 } 52 47 53 return $headers; 48 54 } -
wpm-floc/trunk/inc/Plugin.php
r2516816 r2517074 132 132 new i18n\Component(), 133 133 new FLoC\Component(), 134 new WPSC\Component(), 134 135 ); 135 136 -
wpm-floc/trunk/readme.txt
r2516865 r2517074 7 7 License: GPLv2 8 8 License URI: https://www.gnu.de/documents/gpl-2.0.html 9 Stable tag: 1. 0.09 Stable tag: 1.1.0 10 10 11 11 A simple zero-config plugin to opt-out of Google "Federated Learning of Cohorts" (FLoC). … … 29 29 - [**Brave Browser** - Why Brave disables FLoC](https://brave.com/why-brave-disables-floc/) 30 30 - [The **WICG** Draft for FLoC](https://wicg.github.io/floc/) 31 32 ## Compatibility with Cache Plugins 33 This plugin relies on the ability to deliver HTTP headers to the browser. Some Cache Plugins actively strip these HTTP headers and therefore invalidate the purpose of this plugin. 34 35 These cache plugins are known to be compatible: 36 37 - [**WP Super Cache**](https://wordpress.org/plugins/wp-super-cache/) - You have to activate the "*Cache HTTP headers with page content.*" checkbox in the Advanced Tab of the WP Super Cache Settings. 31 38 32 39 == Installation == … … 53 60 54 61 == Changelog == 62 = 1.1.0 = 63 * Added compatibility for [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/) 64 55 65 = 1.0.0 = 56 66 * Initial release -
wpm-floc/trunk/vendor/autoload.php
r2516865 r2517074 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce71::getLoader();7 return ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706::getLoader(); -
wpm-floc/trunk/vendor/composer/InstalledVersions.php
r2516865 r2517074 31 31 array ( 32 32 ), 33 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',33 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 34 34 'name' => 'wpmunich/lhbpp', 35 35 ), … … 52 52 array ( 53 53 ), 54 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',54 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 55 55 ), 56 56 ), -
wpm-floc/trunk/vendor/composer/autoload_real.php
r2516865 r2517074 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce715 class ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce71', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 45d744ab1c5ee12ae00922ba2e6fce71', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit15c96bdaccb1113f6490774f61f0a706', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 45d744ab1c5ee12ae00922ba2e6fce71($fileIdentifier, $file);59 composerRequire15c96bdaccb1113f6490774f61f0a706($fileIdentifier, $file); 60 60 } 61 61 … … 64 64 } 65 65 66 function composerRequire 45d744ab1c5ee12ae00922ba2e6fce71($fileIdentifier, $file)66 function composerRequire15c96bdaccb1113f6490774f61f0a706($fileIdentifier, $file) 67 67 { 68 68 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wpm-floc/trunk/vendor/composer/autoload_static.php
r2516865 r2517074 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce717 class ComposerStaticInit15c96bdaccb1113f6490774f61f0a706 8 8 { 9 9 public static $files = array ( … … 32 32 { 33 33 return \Closure::bind(function () use ($loader) { 34 $loader->prefixLengthsPsr4 = ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$prefixLengthsPsr4;35 $loader->prefixDirsPsr4 = ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$prefixDirsPsr4;36 $loader->classMap = ComposerStaticInit 45d744ab1c5ee12ae00922ba2e6fce71::$classMap;34 $loader->prefixLengthsPsr4 = ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$prefixLengthsPsr4; 35 $loader->prefixDirsPsr4 = ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$prefixDirsPsr4; 36 $loader->classMap = ComposerStaticInit15c96bdaccb1113f6490774f61f0a706::$classMap; 37 37 38 38 }, null, ClassLoader::class); -
wpm-floc/trunk/vendor/composer/installed.php
r2516865 r2517074 7 7 array ( 8 8 ), 9 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',9 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 10 10 'name' => 'wpmunich/lhbpp', 11 11 ), … … 28 28 array ( 29 29 ), 30 'reference' => '7 62f081c60db7d87af86c5c069fca916cfc900f1',30 'reference' => '7088495962ce89d777e5db25646a70b5e615558a', 31 31 ), 32 32 ), -
wpm-floc/trunk/wpmfloc.php
r2516865 r2517074 4 4 * 5 5 * @package wpmfloc 6 * @version 1. 0.06 * @version 1.1.0 7 7 * 8 8 * Plugin Name: Disable FLoC … … 11 11 * Author: WP Munich 12 12 * Author URI: https://www.wp-munich.com 13 * Version: 1. 0.013 * Version: 1.1.0 14 14 * Text Domain: wpm-floc 15 15 */ … … 25 25 26 26 if ( ! defined( 'WPMFLOC_VERSION' ) ) { 27 define( 'WPMFLOC_VERSION', '1. 0.0' );27 define( 'WPMFLOC_VERSION', '1.1.0' ); 28 28 } 29 29
Note: See TracChangeset
for help on using the changeset viewer.