Changeset 31601 for trunk/src/wp-admin/includes/class-wp-press-this.php
- Timestamp:
- 03/02/2015 11:40:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31597 r31601 32 32 */ 33 33 public function site_settings() { 34 $html = '<p class="press-this-suggested-source">' . _x( 'Source:', 'Used in Press This to indicate where the content comes from.' ) . 35 ' <cite><a href="%1$s">%2$s</a></cite></p>'; 34 $default_html = array( 35 'quote' => '<blockquote>%1$s</blockquote>', 36 'link' => '<p>' . _x( 'Source:', 'Used in Press This to indicate where the content comes from.' ) . 37 ' <em><a href="%1$s">%2$s</a></em></p>', 38 ); 36 39 37 40 return array( … … 50 53 51 54 /** 52 * Filter the HTML for the Press This source attribution.55 * Filter the default HTML for the Press This editor. 53 56 * 54 57 * @since 4.2.0 55 58 * 56 * @param string $html Default HTML, %1$s is link href, %2$s is link text. 59 * @param array $default_html Associative array with two keys: 'quote' where %1$s is replaced with the site description 60 * or the selected content, and 'link' there %1$s is link href, %2$s is link text. 57 61 */ 58 ' suggestedHTML' => apply_filters( 'press_this_suggested_html', $html ),62 'html' => apply_filters( 'press_this_suggested_html', $default_html ), 59 63 ); 60 64 }
Note: See TracChangeset
for help on using the changeset viewer.