Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select2 Upgrade/Exclude List #855

Merged
merged 39 commits into from
Jun 28, 2016
Merged

Select2 Upgrade/Exclude List #855

merged 39 commits into from
Jun 28, 2016

Conversation

tylerhcarter
Copy link
Contributor

@tylerhcarter tylerhcarter commented Jun 8, 2016

Moves towards using <select> boxes in the entire exclude interface.

@lukecarbis Please give feedback on any bugs you see.

See #852

@lukecarbis
Copy link
Contributor

lukecarbis commented Jun 14, 2016

Some issues I've found:

  • Context Menu
    • Top level items should be bold
    • Filtering by top level items doesn't show the item pre-selected in the menu
    • Indents, instead of dashes, for secondary level items
    • Items with the same name (e.g. Installer > Plugins and Editor > Plugins) cause problems
  • Need to strip params from the _wp_http_referer before the form is submitted, otherwise you end up with really long URLs really quick
  • Exclude Rules default state should be "Any Author", "Any Context", etc.
  • Exclude Rules don't actually have any effect (Tested with Context: Comments and Action: Approved)
  • IP Address field
    • Too high (doesn't match other fields)
    • Highlight state doesn't match
    • Doesn't allow inputting custom IPs

return $output;
}

public function render_as_table() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to render_fields_table()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docblock

Luke Carbis and others added 6 commits June 14, 2016 13:55
Change render_all to render_fields
Change render_as_table to render_fields_table
Consolidate render_field wp_parse_args calls
Rename prepare_data_string to prepare_data_attributes_string
Add documentation
@tylerhcarter
Copy link
Contributor Author

@lukecarbis There were a couple incongruencies that I was unable to figure out.

Need to strip params from the _wp_http_referer before the form is submitted, otherwise you end up with really long URLs really quick

After monitoring the _wp_http_referer parameter, it never is any longer than /wp-admin/admin.php?page=wp_stream_settings.

Top level items should be bold
Indents, instead of dashes, for secondary level items

Looking at the exclude page, I do not see the problems you are talking about. See below:

screen1

I'll be looking to see if there is a way to reproduce the problems you're finding.

tylerhcarter and others added 12 commits June 20, 2016 09:59
This makes it simpler to grab a top level item and its children, as the
ID always contains the top level item.
This doesn’t work for ‘Sites’ as the ID for sites is actually blogs.
Removes clearAll button due to CSS issues.
Processing prevents multiple values
@lukecarbis
Copy link
Contributor

In regards to the _wp_http_referer param, you can replicate by filtering by action, then changing the action filter and pressing the Filter button again. Repeat 4 - 5 times and you will get a URL too long error.

@lukecarbis
Copy link
Contributor

In regards to the Top level items should be bold, Indents, instead of dashes… This occurs in the filters on the Stream screen.

@lukecarbis
Copy link
Contributor

@Chacha Please review all the code, and test. This should now fix everything.

@tylerhcarter
Copy link
Contributor Author

@lukecarbis Looks great.

@lukecarbis lukecarbis merged commit fe9a17d into develop Jun 28, 2016
@lukecarbis lukecarbis deleted the bugfix/issue-852 branch June 28, 2016 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants