File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -783,14 +783,14 @@ private function comment_data_from_post( $post ) {
783
783
// if the user has not set the permission for their API application.
784
784
$ author_email = null ;
785
785
if ( $ author ) {
786
- if ( isset ( $ author ['email ' ] ) ) {
787
- $ author_email = $ author ['email ' ];
788
- } elseif ( isset ( $ author ['isAnonymous ' ] ) && $ author ['isAnonymous ' ] ) {
789
- $ author_email = 'anonymized- ' . md5 ( $ author ['name ' ] ) . '@disqus.com ' ;
790
- } elseif ( isset ( $ author ['id ' ] ) ) {
791
- $ author_email = 'user- ' . $ author ['id ' ] . '@disqus.com ' ;
792
- }
793
- } else {
786
+ if ( isset ( $ author ['email ' ] ) ) {
787
+ $ author_email = $ author ['email ' ];
788
+ } elseif ( isset ( $ author ['isAnonymous ' ] ) && $ author ['isAnonymous ' ] ) {
789
+ $ author_email = 'anonymized- ' . md5 ( $ author ['name ' ] ) . '@disqus.com ' ;
790
+ } elseif ( isset ( $ author ['id ' ] ) ) {
791
+ $ author_email = 'user- ' . $ author ['id ' ] . '@disqus.com ' ;
792
+ }
793
+ } else {
794
794
$ author_email = md5 ( 'no_author_data ' ) . '@disqus.com ' ;
795
795
}
796
796
You can’t perform that action at this time.
0 commit comments