Bị lỗi Warning: sprintf(): Too few arguments khi cài plugin trên wordpress

B

Dòng code bị lỗi :

ROOT/wp-admin/includes/class-bulk-upgrader-skin.php

Old Code:

if ( $this->result && ! is_wp_error( $this->result ) ) {if ( $this->result && ! is_wp_error( $this->result ) ) { if ( ! $this->error ) { echo ‘upgrader->update_current ) . ‘”>’ . ‘

‘ . sprintf( $this->upgrader->strings[‘skin_update_successful’], $title ) . ‘ ‘ . __( ‘Show details.’ ) . ” . ‘

‘; }
echo ‘jQuery(\’.waiting-‘ . esc_js($this->upgrader->update_current) . ‘\’).hide();’;}

Chuyển lại thành:

if ( $this->result && ! is_wp_error( $this->result ) ) {if ( $this->result && ! is_wp_error( $this->result ) ) { if ( ! $this->error ) echo ‘

‘ . sprintf($this->upgrader->strings[‘skin_update_successful’], $title, ‘jQuery(\’#progress-‘ . esc_js($this->upgrader->update_current) . ‘\’).toggle();jQuery(\’span\’, this).toggle(); return false;’) . ‘

‘; echo ‘jQuery(\’.waiting-‘ . esc_js($this->upgrader->update_current) . ‘\’).hide();’;}

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Follow Me on Facebook

Bài viết mới nhất

Blog Rating

Average blog rating:

9.7