Changeset 59503
- Timestamp:
- 12/10/2024 11:39:06 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/html-api/class-wp-html-processor.php
r59502 r59503 1144 1144 * They always include the entire path from the root HTML node to the matched element. 1145 1145 * 1146 * @todo It could be more efficient to expose a generator-based version of this function 1147 * to avoid creating the array copy on tag iteration. If this is done, it would likely 1148 * be more useful to walk up the stack when yielding instead of starting at the top. 1149 * 1150 * Example 1146 * Example: 1151 1147 * 1152 1148 * $processor = WP_HTML_Processor::create_fragment( '<p><strong><em><img></em></strong></p>' ); … … 1156 1152 * @since 6.4.0 1157 1153 * 1158 * @return string[] |null Array of tag names representing path to matched node, if matched, otherwise NULL.1159 */ 1160 public function get_breadcrumbs(): ?array {1154 * @return string[] Array of tag names representing path to matched node. 1155 */ 1156 public function get_breadcrumbs(): array { 1161 1157 return $this->breadcrumbs; 1162 1158 }
Note: See TracChangeset
for help on using the changeset viewer.