GithubHelp home page GithubHelp logo

comment-hierarchy-adjust's People

Contributors

bradyvercher avatar norcross avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

wordpressdev

comment-hierarchy-adjust's Issues

Honor the comment depth setting

It looks like WordPress takes care of collapsing the tree as necessary on the front end depending on the thread_comments_depth setting, but removing comments that couldn't be a parent because they're at the last depth could simplify the dropdown and prevent confusion.

Pad the dropdown to indicate hierarchy

Using spaces to pad the comments in the dropdown to indicate their depth in the comment tree would probably make it a little easier to scan the list to find the new parent.

Use a different hook for registering/adding the meta box

Rather than admin_init, try add_meta_boxes or add_meta_boxes_comment instead. It probably won't make much of a functional difference in this case, since you're not removing something, but it's more sensible/semantic/whatever.

Sort the comments in the dropdown

I noticed after changing the parent for a couple of comments, they maintained their position in the dropdown and weren't sorted correctly. Using the wp_list_comment() function with a callback to customize the output would probably help here. It'd also allow you to filter trackbacks out of the dropdown and do any calculations based on the depth.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.