Changeset 44127 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 12/14/2018 12:54:51 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43770
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/blocks.php
r44118 r44127 263 263 return $rendered_content; 264 264 } 265 266 /** 267 * Returns the current version of the block format that the content string is using. 268 * 269 * If the string doesn't contain blocks, it returns 0. 270 * 271 * @since 5.0.0 272 * 273 * @param string $content Content to test. 274 * @return int The block format version. 275 */ 276 function block_version( $content ) { 277 return has_blocks( $content ) ? 1 : 0; 278 }
Note: See TracChangeset
for help on using the changeset viewer.