Changeset 28919 for trunk/src/wp-includes/class-wp-embed.php
- Timestamp:
- 06/30/2014 05:48:16 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-embed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-embed.php
r28559 r28919 12 12 public $usecache = true; 13 13 public $linkifunknown = true; 14 15 /** 16 * When an URL cannot be embedded, return false instead of returning a link 17 * or the URL. Bypasses the 'embed_maybe_make_link' filter. 18 */ 19 public $return_false_on_fail = false; 14 20 15 21 /** … … 323 329 */ 324 330 public function maybe_make_link( $url ) { 331 if ( $this->return_false_on_fail ) { 332 return false; 333 } 334 325 335 $output = ( $this->linkifunknown ) ? '<a href="' . esc_url($url) . '">' . esc_html($url) . '</a>' : $url; 326 336
Note: See TracChangeset
for help on using the changeset viewer.