Home / APIs / Bulk_Upgrader_Skin::after() –

Description

Usage

Bulk_Upgrader_Skin::after( $title );

Parameters

$title
( string ) optional –

Returns

void

Source

File name: wordpress/wp-admin/includes/class-bulk-upgrader-skin.php
Lines: 1 to 25 of 25

  public function after($title = '') {
    echo '</p></div>';
    if ( $this->error || ! $this->result ) {
      if ( $this->error ) {
        echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed_error'], $title, '<strong>' . $this->error . '</strong>' ) . '</p></div>';
      } else {
        echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed'], $title) . '</p></div>';
      }

      echo '<script type="text/javascript">jQuery(\'#progress-' . esc_js($this->upgrader->update_current) . '\').show();</script>';
    }
    if ( $this->result && ! is_wp_error( $this->result ) ) {
      if ( ! $this->error ) {
        echo '<div class="updated js-update-details" data-update-details="progress-' . esc_attr( $this->upgrader->update_current ) . '">' .
          '<p>' . sprintf( $this->upgrader->strings['skin_update_successful'], $title ) .
          ' <button type="button" class="hide-if-no-js button-link js-update-details-toggle" aria-expanded="false">' . __( 'Show details.' ) . '</button>' .
          '</p></div>';
      }

      echo '<script type="text/javascript">jQuery(\'.waiting-' . esc_js($this->upgrader->update_current) . '\').hide();</script>';
    }

    $this->reset();
    $this->flush_output();
  }
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 4 of 4

      • Bulk_Upgrader_Skin::error() –
      • Bulk_Upgrader_Skin::flush_output() –
      • Bulk_Upgrader_Skin::reset() –
      • esc_js() – Escape single quotes, htmlspecialchar " < > &, and fix line endings.

      Call hooks

      Function name: Bulk_Upgrader_Skin::after
      Class ref: Bulk_Upgrader_Skin
      Plugin ref: WordPress
      Version: 4.9
      Sourcefile: wp-admin/includes/class-bulk-upgrader-skin.php
      File ref: wp-admin/includes/class-bulk-upgrader-skin.php
      Deprecated?: No
      API Letters: A,B,S,U

      Published: 12th March 2017 | Last updated: 8th June 2017

      Information

      Function name: Bulk_Upgrader_Skin::after
      Class ref: Bulk_Upgrader_Skin
      Plugin ref: WordPress
      Version: 4.9
      Sourcefile: wp-admin/includes/class-bulk-upgrader-skin.php
      File ref: wp-admin/includes/class-bulk-upgrader-skin.php
      Deprecated?: No
      API Letters: A,B,S,U

      • Plugins
      • Themes
      • Shortcodes
      • APIs
      • Files
      • Hooks
      • Classes
      • Sites
      • Sitemap
      • Blog
      WooCommerce a2z WooCommerce a2z
      WooCommerce

      Site:  woocommerce.wp-a2z.org
      © Copyright WooCommerce a2z 2014-2018. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins