Ticket #3912: 3912.patch
File 3912.patch, 3.1 KB (added by , 6 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/user-content.php
69 69 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 74 77 /** … … 217 220 } 218 221 219 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; 232 } 233 234 /** 220 235 * Get the comment form arguments by context. 221 236 * 222 237 * @param WP_Comment|false $comment Comment object or false. Default false. … … 318 333 'textarea_name' => 'comment', 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, 324 339 'tinymce' => false, … … 397 412 'textarea_name' => 'comment', 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(), 403 418 'teeny' => true, -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss
1807 1807 } 1808 1808 } 1809 1809 1810 /** WP editor link button modal **/ 1810 1811 1812 #link-selector { 1813 #search-panel, 1814 #wplink-link-existing-content, 1815 #link-options .link-target { 1816 display: none; 1817 } 1818 } 1819 1811 1820 /** Handbook **/ 1812 1821 1813 1822 aside[id^="handbook"] .widget-title, -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css
2186 2186 } 2187 2187 } 2188 2188 2189 /** WP editor link button modal **/ 2190 #link-selector #search-panel, 2191 #link-selector #wplink-link-existing-content, 2192 #link-selector #link-options .link-target { 2193 display: none; 2194 } 2195 2189 2196 /** Handbook **/ 2190 2197 aside[id^="handbook"] .widget-title, 2191 2198 aside[id^="nav_menu"] .widget-title {