Make WordPress Core

Ticket #25586: wp-sites.diff

File wp-sites.diff, 2.0 KB (added by megane9988, 10 years ago)

patch of my-sites.php

  • src/wp-admin/my-sites.php

     
    6767?>
    6868<form id="myblogs" action="" method="post">
    6969        <?php
    70         choose_primary_blog();
     70        choose_primary_blog(); 
     71        /**
     72         * Fires after displays the selectbox for choose primary blog.
     73         * @since 3.0.0
     74         */
    7175        do_action( 'myblogs_allblogs_options' );
    7276        ?>
    7377        <br clear="all" />
    7478        <table class="widefat fixed">
    7579        <?php
     80        /**
     81         * Filter the myblogs options.
     82         *
     83         * @since MU
     84         *
     85         * @param string none     Blank.
     86         * @param string 'global' The text "global".
     87        */
    7688        $settings_html = apply_filters( 'myblogs_options', '', 'global' );
    7789        if ( $settings_html != '' ) {
    7890                echo '<tr><td valign="top"><h3>' . __( 'Global Settings' ) . '</h3></td><td>';
     
    102114                        $s = $i == 3 ? '' : 'border-right: 1px solid #ccc;';
    103115                        echo "<td valign='top' style='$s'>";
    104116                        echo "<h3>{$user_blog->blogname}</h3>";
    105                         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>";
     117                        $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>";
     118                        /**
     119                         * Filter myblogs blog actions
     120                         *
     121                         * @since MU
     122                         *
     123                         * @param string $blog_actions The links of blog actions.
     124                         * @param object $user_blog    An object of user's blog.
     125                        */
     126                        echo "<p>" . apply_filters( 'myblogs_blog_actions', $blog_actions, $user_blog ) . "</p>";                                               
     127                        /**
     128                         * Filter the myblogs options.
     129                         *
     130                         * @since MU
     131                         *
     132                         * @param string none       Blank.
     133                         * @param object $user_blog An object of user's blog.
     134                        */
    106135                        echo apply_filters( 'myblogs_options', '', $user_blog );
    107136                        echo "</td>";
    108137                        $i++;