File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ public static function render_block( $attrs ) {
166166 }
167167
168168 $ wrapper_attribute_args = [
169- 'class ' => implode ( ' ' , $ extra_classes ),
170- 'href ' => \esc_url_raw ( $ href ),
171- 'data-wp -logged-in ' => $ is_signed_in ? '1 ' : '0 ' ,
169+ 'class ' => implode ( ' ' , $ extra_classes ),
170+ 'href ' => \esc_url_raw ( $ href ),
171+ 'data-newspack -logged-in ' => $ is_signed_in ? '1 ' : '0 ' ,
172172 ];
173173 $ wrapper_attributes = \get_block_wrapper_attributes ( $ wrapper_attribute_args );
174174
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ window.newspackRAS.push( readerActivation => {
103103 const labels = JSON . parse ( link . getAttribute ( 'data-labels' ) ) ;
104104 const labelEl = link . querySelector ( '.newspack-reader__account-link__label' ) ;
105105 if ( labelEl ) {
106- const isLoggedIn = link . getAttribute ( 'data-wp-logged-in' ) === '1' ;
106+ // Change the label for the My Account button only.
107+ const isLoggedIn = link . getAttribute ( 'data-newspack-logged-in' ) === '1' ;
107108 if ( isLoggedIn ) {
108109 labelEl . textContent = labels . signedin ;
109110 return ;
You can’t perform that action at this time.
0 commit comments