├── .editorconfig ├── .github └── workflows │ └── stale.yml ├── .gitignore ├── 001-working-with-git └── README.md ├── 10-security ├── README.md ├── input-sanitization.php ├── js-dom-insertion.js ├── js-dynamic.php ├── mysql-prepare.php ├── nonce-ajax.php ├── nonce-editpost.php ├── nonce-url.php └── output-escaping.php ├── 110-jetpack-search ├── README.md └── jetpack-search.php ├── 120-images ├── README.md └── images-filtering.php ├── 130-filesystem ├── README.md └── strip-metadata │ ├── PEL-library │ ├── README.md │ ├── img │ │ └── DSCN0012.jpeg │ ├── pel-remove-all-exif-metadata.php │ └── pel-remove-exif-gps-metadata.php │ ├── README.md │ └── pixie-js-library │ ├── .prettierrc │ ├── README.md │ ├── package-lock.json │ ├── package.json │ └── src │ ├── index.html │ ├── main.js │ └── piexif.js ├── 140-restricting-site-access ├── partial-restriction-by-ip.php └── partial-restriction-by-uri.php ├── 20-preventing-bad-things ├── README.md ├── prevention-fatal.php └── prevention-warnings.php ├── 30-basics └── README.md ├── 40-customizing ├── README.md └── creating-roles.php ├── 60-query-optimization ├── README.md ├── query-frequent-filtering.php └── query-optimization-filtering.php ├── 70-basic-caching └── README.md ├── 80-advanced-caching ├── README.md └── cache-via-cron.php ├── 999-misc ├── README.md ├── jetpack-sync-cron-only.php └── serve-html.php ├── CONTRIBUTING.md ├── LICENSE ├── README.md └── phpcs.xml /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .DS_Store -------------------------------------------------------------------------------- /001-working-with-git/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/001-working-with-git/README.md -------------------------------------------------------------------------------- /10-security/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/README.md -------------------------------------------------------------------------------- /10-security/input-sanitization.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/input-sanitization.php -------------------------------------------------------------------------------- /10-security/js-dom-insertion.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/js-dom-insertion.js -------------------------------------------------------------------------------- /10-security/js-dynamic.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/js-dynamic.php -------------------------------------------------------------------------------- /10-security/mysql-prepare.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/mysql-prepare.php -------------------------------------------------------------------------------- /10-security/nonce-ajax.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/nonce-ajax.php -------------------------------------------------------------------------------- /10-security/nonce-editpost.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/nonce-editpost.php -------------------------------------------------------------------------------- /10-security/nonce-url.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/nonce-url.php -------------------------------------------------------------------------------- /10-security/output-escaping.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/10-security/output-escaping.php -------------------------------------------------------------------------------- /110-jetpack-search/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/110-jetpack-search/README.md -------------------------------------------------------------------------------- /110-jetpack-search/jetpack-search.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/110-jetpack-search/jetpack-search.php -------------------------------------------------------------------------------- /120-images/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/120-images/README.md -------------------------------------------------------------------------------- /120-images/images-filtering.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/120-images/images-filtering.php -------------------------------------------------------------------------------- /130-filesystem/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/PEL-library/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/PEL-library/README.md -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/PEL-library/img/DSCN0012.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/PEL-library/img/DSCN0012.jpeg -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/PEL-library/pel-remove-all-exif-metadata.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/PEL-library/pel-remove-all-exif-metadata.php -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/PEL-library/pel-remove-exif-gps-metadata.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/PEL-library/pel-remove-exif-gps-metadata.php -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/README.md -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/.prettierrc -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/README.md -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/package-lock.json -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/package.json -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/src/index.html -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/src/main.js -------------------------------------------------------------------------------- /130-filesystem/strip-metadata/pixie-js-library/src/piexif.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/130-filesystem/strip-metadata/pixie-js-library/src/piexif.js -------------------------------------------------------------------------------- /140-restricting-site-access/partial-restriction-by-ip.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/140-restricting-site-access/partial-restriction-by-ip.php -------------------------------------------------------------------------------- /140-restricting-site-access/partial-restriction-by-uri.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/140-restricting-site-access/partial-restriction-by-uri.php -------------------------------------------------------------------------------- /20-preventing-bad-things/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/20-preventing-bad-things/README.md -------------------------------------------------------------------------------- /20-preventing-bad-things/prevention-fatal.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/20-preventing-bad-things/prevention-fatal.php -------------------------------------------------------------------------------- /20-preventing-bad-things/prevention-warnings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/20-preventing-bad-things/prevention-warnings.php -------------------------------------------------------------------------------- /30-basics/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/30-basics/README.md -------------------------------------------------------------------------------- /40-customizing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/40-customizing/README.md -------------------------------------------------------------------------------- /40-customizing/creating-roles.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/40-customizing/creating-roles.php -------------------------------------------------------------------------------- /60-query-optimization/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/60-query-optimization/README.md -------------------------------------------------------------------------------- /60-query-optimization/query-frequent-filtering.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/60-query-optimization/query-frequent-filtering.php -------------------------------------------------------------------------------- /60-query-optimization/query-optimization-filtering.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/60-query-optimization/query-optimization-filtering.php -------------------------------------------------------------------------------- /70-basic-caching/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/70-basic-caching/README.md -------------------------------------------------------------------------------- /80-advanced-caching/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/80-advanced-caching/README.md -------------------------------------------------------------------------------- /80-advanced-caching/cache-via-cron.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/80-advanced-caching/cache-via-cron.php -------------------------------------------------------------------------------- /999-misc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/999-misc/README.md -------------------------------------------------------------------------------- /999-misc/jetpack-sync-cron-only.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/999-misc/jetpack-sync-cron-only.php -------------------------------------------------------------------------------- /999-misc/serve-html.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/999-misc/serve-html.php -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/README.md -------------------------------------------------------------------------------- /phpcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Automattic/vip-code-samples/HEAD/phpcs.xml --------------------------------------------------------------------------------