Changeset 9716 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php
- Timestamp:
- 04/13/2020 11:29:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php
r9433 r9716 70 70 // Adds hidden fields to a comment form for editing 71 71 add_filter( 'comment_form_submit_field', array( __CLASS__, 'add_hidden_fields' ), 10, 2 ); 72 73 // Disable the search query in the insert link modal window 74 add_filter( 'wp_link_query_args', array( __CLASS__, 'disable_link_query' ) ); 72 75 } 73 76 … … 215 218 216 219 return $submit_field . self::get_edit_fields( $comment_id, $instance = 0 ); 220 } 221 222 /** 223 * Disable the search query in the insert link modal window. 224 * 225 * The search query field in the link modal is hidden with CSS. 226 * 227 * @param array $query An array of WP_Query arguments. 228 */ 229 public static function disable_link_query( $query ) { 230 $query['post__in'] = array(0); 231 return $query; 217 232 } 218 233 … … 319 334 'textarea_rows' => 8, 320 335 'quicktags' => array( 321 'buttons' => 'strong,em,ul,ol,li '336 'buttons' => 'strong,em,ul,ol,li,link' 322 337 ), 323 338 'teeny' => true, … … 398 413 'textarea_rows' => 3, 399 414 'quicktags' => array( 400 'buttons' => 'strong,em '415 'buttons' => 'strong,em,link' 401 416 ), 402 417 'editor_css' => self::get_editor_style(),
Note: See TracChangeset
for help on using the changeset viewer.