Make WordPress Core

Changeset 26284


Ignore:
Timestamp:
11/20/2013 03:35:38 AM (13 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/my-sites.php.

Props megane9988, kpdesign.
Fixes #25586.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/my-sites.php

    r25616 r26284  
    6969        <?php
    7070        choose_primary_blog();
     71        /**
     72         * Fires before the sites table on the My Sites screen.
     73         *
     74         * @since 3.0.0
     75         */
    7176        do_action( 'myblogs_allblogs_options' );
    7277        ?>
     
    7479        <table class="widefat fixed">
    7580        <?php
     81        /**
     82         * Enable the Global Settings section on the My Sites screen.
     83         *
     84         * By default, the Global Settings section is hidden. Passing a non-empty
     85         * string to this filter will enable the section, and allow new settings
     86         * to be added, either globally or for specific sites.
     87         *
     88         * @since MU
     89         *
     90         * @param string $settings_html The settings HTML markup. Default empty.
     91         * @param object $context       Context of the setting (global or site-specific). Default 'global'.
     92         */
    7693        $settings_html = apply_filters( 'myblogs_options', '', 'global' );
    7794        if ( $settings_html != '' ) {
     
    103120                        echo "<td valign='top' style='$s'>";
    104121                        echo "<h3>{$user_blog->blogname}</h3>";
     122                        /**
     123                         * Filter the row links displayed for each site on the My Sites screen.
     124                         *
     125                         * @since MU
     126                         *
     127                         * @param string $string    The HTML site link markup.
     128                         * @param object $user_blog An object containing the site data.
     129                         */
    105130                        echo "<p>" . apply_filters( 'myblogs_blog_actions', "<a href='" . esc_url( get_home_url( $user_blog->userblog_id ) ). "'>" . __( 'Visit' ) . "</a> | <a href='" . esc_url( get_admin_url( $user_blog->userblog_id ) ) . "'>" . __( 'Dashboard' ) . "</a>", $user_blog ) . "</p>";
     131                        /** This filter is documented in wp-admin/my-sites.php */
    106132                        echo apply_filters( 'myblogs_options', '', $user_blog );
    107133                        echo "</td>";
Note: See TracChangeset for help on using the changeset viewer.