Skip to content

55078 Remove Hardcoded edit-tags from ajax js#2408

Closed
johnregan3 wants to merge 21 commits intoWordPress:trunkfrom
johnregan3:55078-remove-hardcoded-edit-tags-from-ajax
Closed

55078 Remove Hardcoded edit-tags from ajax js#2408
johnregan3 wants to merge 21 commits intoWordPress:trunkfrom
johnregan3:55078-remove-hardcoded-edit-tags-from-ajax

Conversation

@johnregan3
Copy link
Copy Markdown

Removes hardcoded check for edit-tags-php body class from ajax-response.js. Instead allows for a "notice" value in the "supplemental" array.

Renamed the JS var successmsg to noticemsg to clarify its purpose as admin notice text.

Note in ajax-actions.php around ln 1118, $message is used twice. When the data value is removed from the array, tests fail in tests/phpunit/tests/ajax/AddTag.php. TBH, I can't track down exactly why.

Trac ticket: https://core.trac.wordpress.org/ticket/55078


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@peterwilsoncc
Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants