This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace-FileString.ps1 | |
# Written by Bill Stewart (bstewart@iname.com) | |
# Modified by Matthew Steeples (matthew@mercuryit.co.uk) to enable using the | |
# -Recurse flag on Get-ChildItem and piping in | |
# | |
# Replaces strings in files using a regular expression. Supports | |
# multi-line searching and replacing. | |
#requires -version 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL ^ E_NOTICE); | |
define( 'WXR_VERSION', '1.2' ); | |
/** | |
* Generates the WXR export file for download | |
* | |
* @since 2.1.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* InputTextMask script used for mask/regexp operations. | |
* Mask Individual Character Usage: | |
* 9 - designates only numeric values | |
* L - designates only uppercase letter values | |
* l - designates only lowercase letter values | |
* A - designates only alphanumeric values | |
* X - denotes that a custom client script regular expression is specified</li> | |
* All other characters are assumed to be "special" characters used to mask the input component. | |
* Example 1: |