Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/ajax/UpdatePlugin.php

    r46586 r47122  
    11<?php
    22/**
    3  * Admin ajax functions to be tested
     3 * Admin Ajax functions to be tested.
    44 */
    55require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
     
    2323        $_POST['slug']        = 'foo';
    2424
    25         // Make the request
     25        // Make the request.
    2626        try {
    2727            $this->_handleAjax( 'update-plugin' );
     
    4949        $_POST['plugin']      = 'foo/bar.php';
    5050
    51         // Make the request
     51        // Make the request.
    5252        try {
    5353            $this->_handleAjax( 'update-plugin' );
     
    7676        $_POST['slug']        = 'foo';
    7777
    78         // Make the request
     78        // Make the request.
    7979        try {
    8080            $this->_handleAjax( 'update-plugin' );
     
    107107        $_POST['slug']        = 'foo';
    108108
    109         // Make the request
     109        // Make the request.
    110110        try {
    111111            $this->_handleAjax( 'update-plugin' );
     
    138138        $_POST['slug']        = 'hello-dolly';
    139139
    140         // Make the request
     140        // Make the request.
    141141        try {
    142             // Prevent wp_update_plugins() from running
     142            // Prevent wp_update_plugins() from running.
    143143            wp_installing( true );
    144144            $this->_handleAjax( 'update-plugin' );
Note: See TracChangeset for help on using the changeset viewer.