PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
← All changes | modules/logs/classes/class-log-author.php +10 -0 6.0.12 → 6.2.1 View file →
@@ -114,8 +114,18 @@
114 114 }
115 115 if ( empty( $fullname ) && ! empty( $this->meta['display_name'] ) ) {
116 116 $fullname = esc_html( $this->meta['display_name'] );
117 117 }
118 +
119 + if ( empty( $fullname ) && isset( $this->meta['first_name'] ) && isset( $this->meta['last_name'] ) ) {
120 + $first_name = trim( (string) $this->meta['first_name'] );
121 + $last_name = trim( (string) $this->meta['last_name'] );
122 + $full_name = trim( $first_name . ' ' . $last_name );
123 + if ( '' !== $full_name ) {
124 + $fullname = esc_html( $full_name );
125 + }
126 + }
127 +
118 128 if ( empty( $fullname ) && ! empty( $this->meta['username'] ) ) {
119 129 $fullname = esc_html( $this->meta['username'] );
120 130 }
121 131 return $fullname;