第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

未定義的變量:atts

未定義的變量:atts

PHP
嗶嗶one 2022-12-30 17:38:24
如何修復(fù)此通知,它出現(xiàn)在 wordpress 網(wǎng)站上,它是關(guān)于將某些插件的現(xiàn)有短代碼更改為具有相同功能的另一個(gè)插件以及一些附加內(nèi)容錯(cuò)誤位置 wp-content/plugins/n-custom-point/n_custom_point.php:864第864行是    'user_id'    => 'current',這部分的一些行/*add_action('wp_head','override_cs_user_login');function override_cs_user_login() {    remove_shortcode(MYCRED_SLUG . '_my_balance');    add_shortcode(MYCRED_SLUG . '_my_balance', 'mycred_my_balance_n');}*/add_shortcode('n_point_my_balance', 'mycred_my_balance_n');function mycred_my_balance_n() {    extract( shortcode_atts( array(line 864    'user_id'    => 'current',            'title'      => '',            'title_el'   => 'h1',            'balance_el' => 'div',            'wrapper'    => 1,            'formatted'  => 1,            'type'       => MYCRED_DEFAULT_TYPE_KEY        ), $atts, MYCRED_SLUG . '_my_balance' ) );        $output = '';        $total_point = 0;        // Not logged in        if ( ! is_user_logged_in() && $user_id == 'current' )            return $content;        // Get user ID        $user_id = mycred_get_user_id( $user_id );
查看完整描述

1 回答

?
LEATH

TA貢獻(xiàn)1936條經(jīng)驗(yàn) 獲得超7個(gè)贊

$atts變量應(yīng)按如下方式提供給簡(jiǎn)碼函數(shù):

function mycred_my_balance_n($atts) {
  ...
}

當(dāng)您使用短代碼時(shí),您可以使用變量對(duì)其進(jìn)行設(shè)置。您設(shè)置的任何變量都將覆蓋您在數(shù)組中設(shè)置的默認(rèn)值。


查看完整回答
反對(duì) 回復(fù) 2022-12-30
  • 1 回答
  • 0 關(guān)注
  • 100 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)