Changeset 49135 for trunk/src/wp-includes/class-wp-block-parser.php
- Timestamp:
- 10/13/2020 01:07:23 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-block-parser.php (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-parser.php
r46586 r49135 11 11 * Holds the block structure in memory 12 12 * 13 * @since 3.8.013 * @since 5.0.0 14 14 */ 15 15 class WP_Block_Parser_Block { … … 19 19 * @example "core/paragraph" 20 20 * 21 * @since 3.8.021 * @since 5.0.0 22 22 * @var string 23 23 */ … … 30 30 * @example array( 'columns' => 3 ) 31 31 * 32 * @since 3.8.032 * @since 5.0.0 33 33 * @var array|null 34 34 */ … … 38 38 * List of inner blocks (of this same class) 39 39 * 40 * @since 3.8.040 * @since 5.0.0 41 41 * @var WP_Block_Parser_Block[] 42 42 */ … … 49 49 * @example "...Just <!-- wp:test /--> testing..." -> "Just testing..." 50 50 * 51 * @since 3.8.051 * @since 5.0.0 52 52 * @var string 53 53 */ … … 73 73 * Will populate object properties from the provided arguments. 74 74 * 75 * @since 3.8.075 * @since 5.0.0 76 76 * 77 77 * @param string $name Name of block. … … 96 96 * 97 97 * @internal 98 * @since 3.8.098 * @since 5.0.0 99 99 */ 100 100 class WP_Block_Parser_Frame { … … 102 102 * Full or partial block 103 103 * 104 * @since 3.8.0104 * @since 5.0.0 105 105 * @var WP_Block_Parser_Block 106 106 */ … … 110 110 * Byte offset into document for start of parse token 111 111 * 112 * @since 3.8.0112 * @since 5.0.0 113 113 * @var int 114 114 */ … … 118 118 * Byte length of entire parse token string 119 119 * 120 * @since 3.8.0120 * @since 5.0.0 121 121 * @var int 122 122 */ … … 127 127 * (used during reconstruction of stack into parse production) 128 128 * 129 * @since 3.8.0129 * @since 5.0.0 130 130 * @var int 131 131 */ … … 135 135 * Byte offset into document where leading HTML before token starts 136 136 * 137 * @since 3.8.0137 * @since 5.0.0 138 138 * @var int 139 139 */ … … 145 145 * Will populate object properties from the provided arguments. 146 146 * 147 * @since 3.8.0147 * @since 5.0.0 148 148 * 149 149 * @param WP_Block_Parser_Block $block Full or partial block. … … 167 167 * Parses a document and constructs a list of parsed block objects 168 168 * 169 * @since 3.8.0169 * @since 5.0.0 170 170 * @since 4.0.0 returns arrays not objects, all attributes are arrays 171 171 */ … … 176 176 * @example "Pre-text\n<!-- wp:paragraph -->This is inside a block!<!-- /wp:paragraph -->" 177 177 * 178 * @since 3.8.0178 * @since 5.0.0 179 179 * @var string 180 180 */ … … 184 184 * Tracks parsing progress through document 185 185 * 186 * @since 3.8.0186 * @since 5.0.0 187 187 * @var int 188 188 */ … … 192 192 * List of parsed blocks 193 193 * 194 * @since 3.8.0194 * @since 5.0.0 195 195 * @var WP_Block_Parser_Block[] 196 196 */ … … 200 200 * Stack of partially-parsed structures in memory during parse 201 201 * 202 * @since 3.8.0202 * @since 5.0.0 203 203 * @var WP_Block_Parser_Frame[] 204 204 */ … … 220 220 * return an error on invalid inputs. 221 221 * 222 * @since 3.8.0222 * @since 5.0.0 223 223 * 224 224 * @param string $document Input document being parsed. … … 250 250 * 251 251 * @internal 252 * @since 3.8.0252 * @since 5.0.0 253 253 * @return bool 254 254 */ … … 395 395 * 396 396 * @internal 397 * @since 3.8.0397 * @since 5.0.0 398 398 * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments 399 399 * @return array … … 483 483 * 484 484 * @internal 485 * @since 3.8.0485 * @since 5.0.0 486 486 * @param null $length how many bytes of document text to output. 487 487 */ … … 501 501 * 502 502 * @internal 503 * @since 3.8.0503 * @since 5.0.0 504 504 * @param WP_Block_Parser_Block $block The block to add to the output. 505 505 * @param int $token_start Byte offset into the document where the first token for the block starts. … … 525 525 * 526 526 * @internal 527 * @since 3.8.0527 * @since 5.0.0 528 528 * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML. 529 529 */
Note: See TracChangeset
for help on using the changeset viewer.