Ticket #3912: 3912.2.patch
File 3912.2.patch, 3.0 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 // Restrict post types to search in for the link search panel 74 add_filter( 'wp_link_query_args', array( __CLASS__, 'wp_link_query_args' ) ); 72 75 } 73 76 74 77 /** … … 217 220 } 218 221 219 222 /** 223 * Restrict the post types for the editor link search query. 224 * 225 * @param array $query An array of WP_Query arguments. 226 */ 227 public static function wp_link_query_args( $query ) { 228 $query['post_type'] = DevHub\get_parsed_post_types(); 229 if ( $GLOBALS['wp_query']->is_handbook && function_exists( 'wporg_get_current_handbook' ) ) { 230 $query['post_type'] = wporg_get_current_handbook(); 231 } 232 233 return $query; 234 } 235 236 /** 220 237 * Get the comment form arguments by context. 221 238 * 222 239 * @param WP_Comment|false $comment Comment object or false. Default false. … … 318 335 'textarea_name' => 'comment', 319 336 'textarea_rows' => 8, 320 337 'quicktags' => array( 321 'buttons' => 'strong,em,ul,ol,li '338 'buttons' => 'strong,em,ul,ol,li,link' 322 339 ), 323 340 'teeny' => true, 324 341 'tinymce' => false, … … 397 414 'textarea_name' => 'comment', 398 415 'textarea_rows' => 3, 399 416 'quicktags' => array( 400 'buttons' => 'strong,em '417 'buttons' => 'strong,em,link' 401 418 ), 402 419 'editor_css' => self::get_editor_style(), 403 420 '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 modal window **/ 1810 1811 1812 #link-selector #link-options .link-target { 1813 display: none; 1814 } 1815 1811 1816 /** Handbook **/ 1812 1817 1813 1818 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 modal window **/ 2190 #link-selector #link-options .link-target { 2191 display: none; 2192 } 2193 2189 2194 /** Handbook **/ 2190 2195 aside[id^="handbook"] .widget-title, 2191 2196 aside[id^="nav_menu"] .widget-title {