thuduc.us

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();’;}
🌼 thuduc.us
thuduc.us

Xin chào

Mình tên Anh Thư, bạn cũng có thể gọi mình là Lala nha. Mình thích khám phá và học hỏi từ những dung dị cuộc đời, vậy nên mình tạo một góc nhỏ để ghi lại những niềm vui đơn sơ, những điều thú vị mình học được và gửi những câu chữ thật an lành đến bạn mỗi khi có dịp ghé thăm nơi đây.

Bài viết mới