includes/htmlform/HTMLFormFieldCloner.php 1 location
|
@@ 64-68 (lines=5) @@
|
| 61 |
|
]; |
| 62 |
|
unset( $info['name'], $info['class'] ); |
| 63 |
|
|
| 64 |
|
if ( !isset( $info['type'] ) || $info['type'] !== 'submit' ) { |
| 65 |
|
throw new MWException( |
| 66 |
|
'HTMLFormFieldCloner delete field, if specified, must be of type "submit"' |
| 67 |
|
); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if ( !in_array( $class, explode( ' ', $info['cssclass'] ) ) ) { |
| 71 |
|
$info['cssclass'] .= " $class"; |
includes/parser/Parser.php 1 location
|
@@ 5887-5889 (lines=3) @@
|
| 5884 |
|
* @return string |
| 5885 |
|
*/ |
| 5886 |
|
public function unserializeHalfParsedText( $data ) { |
| 5887 |
|
if ( !isset( $data['version'] ) || $data['version'] != self::HALF_PARSED_VERSION ) { |
| 5888 |
|
throw new MWException( __METHOD__ . ': invalid version' ); |
| 5889 |
|
} |
| 5890 |
|
|
| 5891 |
|
# First, extract the strip state. |
| 5892 |
|
$texts = [ $data['text'] ]; |