Ticket #3912: 3912.3.patch
File 3912.3.patch, 4.0 KB (added by , 6 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/search.php
87 87 public static function search_posts_orderby( $orderby, $query ) { 88 88 global $wpdb; 89 89 90 if ( $query->is_main_query() && is_search() && ! $query->get( 'exact' ) ) { 90 $search_query = $query->get( 'wp_editor_link_search' ) || ( $query->is_main_query() && is_search() ); 91 if ( $search_query && ! $query->get( 'exact' ) ) { 91 92 92 93 $search_order_by_title = $query->get( 'search_orderby_title' ); 93 94 -
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 post type and allow search filters to order the search results. 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 // Allows search filters to order the results. 234 $query['suppress_filters'] = false; 235 $query['wp_editor_link_search'] = true; 236 237 return $query; 238 } 239 240 /** 220 241 * Get the comment form arguments by context. 221 242 * 222 243 * @param WP_Comment|false $comment Comment object or false. Default false. … … 318 339 'textarea_name' => 'comment', 319 340 'textarea_rows' => 8, 320 341 'quicktags' => array( 321 'buttons' => 'strong,em,ul,ol,li '342 'buttons' => 'strong,em,ul,ol,li,link' 322 343 ), 323 344 'teeny' => true, 324 345 'tinymce' => false, … … 397 418 'textarea_name' => 'comment', 398 419 'textarea_rows' => 3, 399 420 'quicktags' => array( 400 'buttons' => 'strong,em '421 'buttons' => 'strong,em,link' 401 422 ), 402 423 'editor_css' => self::get_editor_style(), 403 424 '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 {