Conditions | 4 |
Paths | 4 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** global: GLSR, jQuery */ |
||
23 | buildNonce_: function( el ) { // HTMLElement|null |
||
24 | if( this.request.nonce )return; |
||
25 | if( GLSR.nonce[this.request.action] ) { |
||
26 | this.request.nonce = GLSR.nonce[this.request.action]; |
||
27 | return; |
||
28 | } |
||
29 | if( !el )return; |
||
30 | this.request.nonce = el.closest( 'form' ).find( '#_wpnonce' ).val(); |
||
31 | }, |
||
32 | |||
62 |