Changeset 9716
- Timestamp:
- 04/13/2020 11:29:39 PM (5 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 3 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(), -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss
r9645 r9716 1861 1861 } 1862 1862 1863 /** WP editor link button modal **/ 1864 1865 #wp-link-wrap { 1866 height: 210px !important; 1867 margin-top: -125px !important; 1868 1869 @media screen and (max-height: 520px) { 1870 margin-top: inherit !important; 1871 } 1872 } 1873 1874 #link-selector { 1875 #search-panel, 1876 #wplink-link-existing-content, 1877 #link-options .link-target { 1878 display: none; 1879 } 1880 } 1863 1881 1864 1882 /** Handbook **/ -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css
r9645 r9716 2242 2242 } 2243 2243 2244 /** WP editor link button modal **/ 2245 #wp-link-wrap { 2246 height: 210px !important; 2247 margin-top: -125px !important; 2248 } 2249 2250 @media screen and (max-height: 520px) { 2251 #wp-link-wrap { 2252 margin-top: inherit !important; 2253 } 2254 } 2255 2256 #link-selector #search-panel, 2257 #link-selector #wplink-link-existing-content, 2258 #link-selector #link-options .link-target { 2259 display: none; 2260 } 2261 2244 2262 /** Handbook **/ 2245 2263 aside[id^="handbook"] .widget-title,
Note: See TracChangeset
for help on using the changeset viewer.