Changeset 12412
- Timestamp:
- 02/22/2023 12:54:20 AM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php
r12366 r12412 160 160 printf( 161 161 '<p> 162 <input type="hidden" name="can_update_block_editor_preference" value="true"> 162 163 <input name="block_editor" id="block_editor" type="checkbox" value="disabled" %s /> 163 164 <label for="block_editor">%s</label> … … 175 176 */ 176 177 public function bbp_profile_update( $user_id ) { 178 // Catch profile updates that should not be able to include the "Disable Block Editor" preference, and return early. 179 if ( ! isset( $_REQUEST['can_update_block_editor_preference'] ) ) { 180 return; 181 } 182 177 183 $disabled = ! empty( $_REQUEST['block_editor'] ) && 'disabled' === $_REQUEST['block_editor']; 178 184 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.php
r12328 r12412 73 73 /** 74 74 * Whether Also Viewing is enabled for the current user. 75 * 75 * 76 76 * @param int $user_id The user ID to check for. 77 * 77 * 78 78 * @return bool 79 79 */ … … 88 88 /** 89 89 * Whether Also Viewing is able to be activated for the current user. 90 * 90 * 91 91 * @param int $user_id The user ID to check for. 92 * 92 * 93 93 * @return bool 94 94 */ … … 110 110 /** 111 111 * The current page "slug"/"path" for refering to the current request. 112 * 112 * 113 113 * This uses the WordPress.org SEO plugin for the canonical url, or falls back to REQUEST_URI. 114 * 114 * 115 115 * @return string The path for the current page, eg. 'view/no-replies' 116 116 */ … … 131 131 /** 132 132 * Sanitizes a given string/url/path to the format used for uniquely identifying pages. 133 * 133 * 134 134 * @param string $page The strng/url/path 135 * 135 * 136 136 * @return string The sanitized $page. 137 137 */ … … 194 194 printf( 195 195 '<p> 196 <input type="hidden" name="can_update_also_viewing_preference" value="true"> 196 197 <input name="also_viewing" id="also_viewing_toggle" type="checkbox" value="yes" %s> 197 198 <label for="also_viewing_toggle">%s</label> … … 209 210 */ 210 211 function bbp_profile_update( $user_id ) { 212 // Catch profile updates that should not be able to include the Also Viewing preference, and return early. 213 if ( ! isset( $_REQUEST['can_update_also_viewing_preference'] ) ) { 214 return; 215 } 216 211 217 $enabled = ! empty( $_REQUEST['also_viewing'] ) && 'yes' === $_REQUEST['also_viewing']; 212 218 … … 222 228 /** 223 229 * Get the list of users who are currently viewing a page. 224 * 230 * 225 231 * @param string $page The page to get the userse for. 226 * 232 * 227 233 * @return array Array of user names + if they're typing. 228 234 */ … … 268 274 /** 269 275 * Get the list of OTHER users who are currently viewing a page. 270 * 276 * 271 277 * @param string $page The page to get the userse for. 272 * 278 * 273 279 * @return array Array of user names + if they're typing. 274 280 */ … … 286 292 /** 287 293 * Mark a user as currently viewing/typing on the current page. 288 * 294 * 289 295 * @param string $page The page being viewed. Default current page. 290 296 * @param bool $typing If the current user is typing. Default false. 291 297 * @param int $user_id The user ID who is viewing/typing. 292 * 298 * 293 299 * @return bool 294 300 */ … … 333 339 /** 334 340 * Mark a user as no longer viewing a page. 335 * 341 * 336 342 * @param string $page The page to no longer view. Defaults to clearing all pages. 337 343 * @param int $user_id The user ID no longer viewing the page. Default current user. … … 430 436 /** 431 437 * The table name used for storing the state of users. 432 * 438 * 433 439 * @return string 434 440 */ … … 441 447 /** 442 448 * Maybe create the database table used for this plugin. 443 * 449 * 444 450 * This only runs once per site, ever. 445 451 */
Note: See TracChangeset
for help on using the changeset viewer.