Opened 11 years ago
Closed 10 years ago
#25099 closed defect (bug) (worksforme)
Allow internal link search in wp_link_dialog to actually be hidden using wplink user setting
Reported by: | coreygilmore | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.3 |
Component: | Editor | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
$show_internal is set in class-wp-editor.php using:
$show_internal = '1' == get_user_setting( 'wplink', '0' );
And this is later checked using if( ! $show_internal )
, which is never true because $show_internal
will either be 1 or empty.
Defaulting to 1 and typecasting as an integer fixes it.
The same basic logic issues exist in wplink.dev.js, preventing the internal link search box from ever being hidden.
Attachments (2)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Related: [18498]
The patches don't look like correct SVN patches due to ANSI escape codes, could you please fix them?