Changeset 37487 for trunk/src/wp-includes/class-wp-embed.php
- Timestamp:
- 05/22/2016 05:39:00 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-embed.php
r36970 r37487 44 44 * Since the [embed] shortcode needs to be run earlier than other shortcodes, 45 45 * this function removes all existing shortcodes, registers the [embed] shortcode, 46 * calls {@link do_shortcode()}, and then re-registers the old shortcodes.46 * calls do_shortcode(), and then re-registers the old shortcodes. 47 47 * 48 48 * @global array $shortcode_tags … … 89 89 90 90 /** 91 * Register an embed handler. Do not use this function directly, use {@link wp_embed_register_handler()} instead. 91 * Registers an embed handler. 92 * 93 * Do not use this function directly, use wp_embed_register_handler() instead. 94 * 92 95 * This function should probably also only be used for sites that do not support oEmbed. 93 96 * … … 105 108 106 109 /** 107 * Unregister a previously registered embed handler. Do not use this function directly, use {@link wp_embed_unregister_handler()} instead. 110 * Unregisters a previously-registered embed handler. 111 * 112 * Do not use this function directly, use wp_embed_unregister_handler() instead. 108 113 * 109 114 * @param string $id The handler ID that should be removed. … … 115 120 116 121 /** 117 * The {@link do_shortcode()} callback function. 118 * 119 * Attempts to convert a URL into embed HTML. Starts by checking the URL against the regex of the registered embed handlers. 120 * If none of the regex matches and it's enabled, then the URL will be given to the {@link WP_oEmbed} class. 122 * The do_shortcode() callback function. 123 * 124 * Attempts to convert a URL into embed HTML. Starts by checking the URL against the regex of 125 * the registered embed handlers. If none of the regex matches and it's enabled, then the URL 126 * will be given to the WP_oEmbed class. 121 127 * 122 128 * @param array $attr { … … 313 319 314 320 /** 315 * Passes any unlinked URLs that are on their own line to {@link WP_Embed::shortcode()}for potential embedding.316 * 317 * @ usesWP_Embed::autoembed_callback()321 * Passes any unlinked URLs that are on their own line to WP_Embed::shortcode() for potential embedding. 322 * 323 * @see WP_Embed::autoembed_callback() 318 324 * 319 325 * @param string $content The content to be searched. … … 332 338 333 339 /** 334 * Callback function for {@link WP_Embed::autoembed()}.340 * Callback function for WP_Embed::autoembed(). 335 341 * 336 342 * @param array $match A regex match array.
Note: See TracChangeset
for help on using the changeset viewer.