PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.12
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.12
1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 All 36 releases
← All changes | apps/my-wordpress/parts/actions.php +3 -3 1.1.11 → 1.1.12 View file →
@@ -76,10 +76,10 @@
76 76 }
77 77
78 78 /**
79 79 * Put one person's footprint over the body. The id is validated (the
80 - * payload route re-checks the viewer); the name is only ever a
81 - * breadcrumb placeholder until the payload lands.
80 + * payload route re-checks the viewer); the name is only ever breadcrumb
81 + * text, so the entities the sanitiser writes for a `<` are decoded.
82 82 *
83 83 * @param State $state State.
84 84 * @param int $user User id; 0 or unknown opens nothing.
85 85 * @param string $name Display name, or ''.
@@ -89,9 +89,9 @@
89 89 if ( $user <= 0 || false === get_userdata( $user ) ) {
90 90 return;
91 91 }
92 92 $state->set( 'footprint', $user )
93 - ->set( 'fpName', sanitize_text_field( $name ) )
93 + ->set( 'fpName', openstation_plain_text_title( sanitize_text_field( $name ) ) )
94 94 ->set( 'item', 0 )->set( 'into', 0 )->set( 'relation', '' );
95 95 }
96 96
97 97 /**