The default for reverse_top_level
is null
. Now let’s take a look at the function source:
if ( null === $r['reverse_top_level'] )
$r['reverse_top_level'] = ( 'desc' == get_option('comment_order') );
As you can see, it takes the value from the comment_order
option. And that is either desc
or asc
. If the value is desc
, then it will be set to true
. Now Walker_Comment
, which extends Walker
, retrieves the parsed arguments $r
as last argument for paged_walk()
. And that method is a method of the Walker
class. Let’s look at its source. And there we can see the following:
if ( ! empty( $args[0]['reverse_top_level'] ) )
$elements = array_reverse( $elements );
// does other stuff here
As empty
evaluates false
equal to null
or ! isset
, this part won’t trigger. That’s it.
Related Posts:
- Is There a Plugin Life Cycle Documentation?
- Writing a plugin that notify my friends of new post that mentions(@) them
- Authoritative answer on which boots first – Plugins or Themes?
- How can i list current author’s categories?
- Why are two functions over-riding each other?
- Whats the difference between blog_info(‘stylesheet_url’) difference get_stylesheet_uri()
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- comment_email hook doesn’t seem to work for comment editor field
- Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
- Show comments fields in two columns
- preprocess_comment array doesn’t have comment_ID
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- How to use WP_Term with (menu) argument in the wp_nav_menu?
- Can wp_list_comments output into variable?
- Comments do not respect display_name setting, how to make plugin to overcome this
- How to integrate CLEditor to comment system?
- Get attachments from a post
- Codex Version Focus on Production or Nightly?
- is pre_get_comments not working?
- How to replace default comments with custom HTML?
- Custom avatars in wordpress comments?
- how to load the comment template from a plugin
- How to get the number of pages when paginating comments?
- How does “Your comment is awaiting moderation” work?
- how to get the top 10 popular blogs
- disable defaault wordpress comments from a plugin
- How to show comments from different Plugins to same post type?
- How to check if `comment_meta` exists before inserting the comment?
- How to get the `comment_post_ID`?
- Email content as comment
- Stop theme displaying comments
- Get Commentor IP When Marking Comment As Spam
- isset($_POST[‘submit’]) ignored on comment submission
- Plugin – create a page without it appearing in the side menu
- Is wp-content/install.php a Drop-in?
- How to write testable classes in WordPress
- get_template_part from plugin
- Edit or Remove Plugin .htaccess Using The Admin Panel
- WordPress scheduled task is called but not executed
- How to create collections that are edited in admin?
- How can I call “preview post” from wp_remote_get with authentication?
- When is it too late to call the action wp_enqueue_scripts?
- Use js script from one plugin in another plugin
- Rest Api How to get results of child categories with one api call
- Build dynamic page from cURL (HTML page) response with plugin
- How to store accumulate multiple option values in a single array using Options_API
- template_redirect for single posts w/ custom fields
- can I prevent WP users (even admin) from deleting custom categories?
- How to deal with equal & similar arguments for a function?
- What parameter should I pass to wp_enqueue_style to depend on the themes stylesheet?
- How do I obtain a list of categories assigned to the current post?
- need to get user ID after a user logs in
- Callback is not called in add_settings_field() when passed as part of an array, but recognises that it’s there. It’s passed Class to Class using OOP
- Plugin translations not installed but… strings are translated!
- Auto gallery from folder contents
- Adding (blog-specific) links to “My Sites” admin page
- How to enable sorting in custom media uploader in plugin
- How do I apply a custom discount to individual product total prices depending on their categories on the cart and checkout pages of WooCommerce? [closed]
- Unit testing a plugin with a theme dependency
- Update problem with update_option() in combination with register_setting()
- Why does my widget break other widgets?
- How do I add a text field under the activity texarea? [closed]
- Help writing custom function with rewrite endpoint that generates a page from dynamic content
- How to make “upgrade safe” theme for a plugin?
- Function/Class to list categories with checkboxes
- Is it possible to enable and disable wp debug from functions.php?
- Default settings aren’t used
- Remove an action by extending class and replacing it
- Is hint for translator compulsory while internationalizing a string containing variables?
- Settings API: Setting default option via ‘get_option’ fails
- Setting a JSON web token from a secondary api as a secure cookie on WordPress
- How to use nonce
- WP Still Generating 150×150 Thumbnail Size Even After Un-Setting Small Size in Functions.php
- How do I validate extra pin field on my WordPress login form page?
- Does WordPress default CSS have Grids?
- Plugin to create Posts and Forums then choose category and parent forum
- Adding Permalink to Slides with ‘Simple Nivo Slider’ plugin?
- Make a php array load faster
- Count products with custom metadata field in an order
- Adding the image selector/uploader to an admin back page
- setTimeout not working in jquery
- Woocommerce Product finder feature on home page
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?
- Javascript scroll eventHandler only working when I’m logged in in WordPress
- WordPress Reset password Strength set to medium
- Add language localisation to javascript alert?
- redirect_to how to make it simply work with get parameter or similar?
- cancel place order proccess
- How I can give access to my custom plugin for editor roles user?
- Testing Plugins for Multisite
- Filter get_user_by instead of replace function
- WP: adding Javascript to specific woo commerce pages
- How to create a custom search form and handler?
- Method to retrieve category names and IDs only as an array?
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Fixing plugin for wpdb::prepare
- Using “add_image_size” to register custom image sizes inside plugins not working
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?
- Elementor Top-Bar
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?