| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | - * bbPress Admin Actions. | |
| 4 | + * bbPress Admin Actions | |
| 5 | 5 | * |
| 6 | 6 | * This file contains the actions that are used through-out bbPress Admin. They |
| 7 | 7 | * are consolidated here to make searching for them easier, and to help developers |
| 8 | 8 | * understand at a glance the order in which things occur. |
| @@ -117,9 +117,9 @@ | ||
| 117 | 117 | // Add New User |
| 118 | 118 | add_action( 'user_new_form', 'bbp_add_user_form_role_field', 10, 1 ); |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * Setup bbPress admin. | |
| 121 | + * Setup bbPress admin | |
| 122 | 122 | * |
| 123 | 123 | * @since 2.0.0 bbPress (r1000) |
| 124 | 124 | * @since 2.6.0 bbPress (r6598) Moved to actions.php |
| 125 | 125 | */ |
| @@ -128,9 +128,9 @@ | ||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * When a new site is created in a multisite installation, run the activation |
| 132 | - * routine on that site. | |
| 132 | + * routine on that site | |
| 133 | 133 | * |
| 134 | 134 | * @since 2.0.0 bbPress (r3283) |
| 135 | 135 | * |
| 136 | 136 | * @param int $blog_id |
| @@ -157,15 +157,15 @@ | ||
| 157 | 157 | bbp_restore_current_site(); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | - * Show icons in list-table column headers instead of strings. | |
| 161 | + * Show icons in list-table column headers instead of strings | |
| 162 | 162 | * |
| 163 | 163 | * @since 2.6.0 bbPress (r5833) |
| 164 | 164 | * |
| 165 | - * @param array $columns Column headers fed into list-table objects. | |
| 165 | + * @param array $columns Column headers fed into list-table objects | |
| 166 | 166 | * |
| 167 | - * @return array Possibly altered column headers. | |
| 167 | + * @return array Possibly altered column headers | |
| 168 | 168 | */ |
| 169 | 169 | function bbp_filter_column_headers( $columns = array() ) { |
| 170 | 170 | |
| 171 | 171 | // Do not filter column headers by default - maybe we'll turn it on later |
| @@ -216,14 +216,14 @@ | ||
| 216 | 216 | * Filter sample permalinks so that certain languages display properly. |
| 217 | 217 | * |
| 218 | 218 | * @since 2.0.0 bbPress (r3336) |
| 219 | 219 | * |
| 220 | - * @param string $post_link Custom post type permalink. | |
| 221 | - * @param object $_post Post data object. | |
| 220 | + * @param string $post_link Custom post type permalink | |
| 221 | + * @param object $_post Post data object | |
| 222 | 222 | * @param bool $leavename Optional, defaults to false. Whether to keep post name or page name. |
| 223 | 223 | * @param bool $sample Optional, defaults to false. Is it a sample permalink. |
| 224 | 224 | * |
| 225 | - * @return string The custom post type permalink. | |
| 225 | + * @return string The custom post type permalink | |
| 226 | 226 | */ |
| 227 | 227 | function bbp_filter_sample_permalink( $post_link, $_post, $leavename = false, $sample = false ) { |
| 228 | 228 | |
| 229 | 229 | // Bail if not on an admin page and not getting a sample permalink |
| @@ -237,9 +237,9 @@ | ||
| 237 | 237 | |
| 238 | 238 | /** Sub-Actions ***************************************************************/ |
| 239 | 239 | |
| 240 | 240 | /** |
| 241 | - * Piggy back admin_init action. | |
| 241 | + * Piggy back admin_init action | |
| 242 | 242 | * |
| 243 | 243 | * @since 2.1.0 bbPress (r3766) |
| 244 | 244 | */ |
| 245 | 245 | function bbp_admin_init() { |
| @@ -246,9 +246,9 @@ | ||
| 246 | 246 | do_action( 'bbp_admin_init' ); |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | /** |
| 250 | - * Piggy back admin_menu action. | |
| 250 | + * Piggy back admin_menu action | |
| 251 | 251 | * |
| 252 | 252 | * @since 2.1.0 bbPress (r3766) |
| 253 | 253 | */ |
| 254 | 254 | function bbp_admin_menu() { |
| @@ -255,9 +255,9 @@ | ||
| 255 | 255 | do_action( 'bbp_admin_menu' ); |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | - * Piggy back admin_head action. | |
| 259 | + * Piggy back admin_head action | |
| 260 | 260 | * |
| 261 | 261 | * @since 2.1.0 bbPress (r3766) |
| 262 | 262 | */ |
| 263 | 263 | function bbp_admin_head() { |
| @@ -264,9 +264,9 @@ | ||
| 264 | 264 | do_action( 'bbp_admin_head' ); |
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | /** |
| 268 | - * Piggy back admin_notices action. | |
| 268 | + * Piggy back admin_notices action | |
| 269 | 269 | * |
| 270 | 270 | * @since 2.1.0 bbPress (r3766) |
| 271 | 271 | */ |
| 272 | 272 | function bbp_admin_notices() { |
| @@ -273,9 +273,9 @@ | ||
| 273 | 273 | do_action( 'bbp_admin_notices' ); |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | - * Dedicated action to register bbPress importers. | |
| 277 | + * Dedicated action to register bbPress importers | |
| 278 | 278 | * |
| 279 | 279 | * @since 2.1.0 bbPress (r3766) |
| 280 | 280 | */ |
| 281 | 281 | function bbp_register_importers() { |
| @@ -282,9 +282,9 @@ | ||
| 282 | 282 | do_action( 'bbp_register_importers' ); |
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | - * Dedicated action to register admin styles. | |
| 286 | + * Dedicated action to register admin styles | |
| 287 | 287 | * |
| 288 | 288 | * @since 2.6.0 bbPress (r6912) |
| 289 | 289 | */ |
| 290 | 290 | function bbp_register_admin_styles() { |
| @@ -289,9 +289,9 @@ | ||
| 289 | 289 | */ |
| 290 | 290 | function bbp_register_admin_styles() { |
| 291 | 291 | |
| 292 | 292 | /** |
| 293 | - * Action used to register the admin styling. | |
| 293 | + * Action used to register the admin styling | |
| 294 | 294 | * |
| 295 | 295 | * @since 2.1.0 |
| 296 | 296 | * @deprecated 2.6.0 |
| 297 | 297 | */ |
| @@ -297,9 +297,9 @@ | ||
| 297 | 297 | */ |
| 298 | 298 | do_action( 'bbp_register_admin_style' ); |
| 299 | 299 | |
| 300 | 300 | /** |
| 301 | - * Action used to register all admin styling. | |
| 301 | + * Action used to register all admin styling | |
| 302 | 302 | * |
| 303 | 303 | * @since 2.6.0 |
| 304 | 304 | */ |
| 305 | 305 | do_action( 'bbp_register_admin_styles' ); |
| @@ -305,9 +305,9 @@ | ||
| 305 | 305 | do_action( 'bbp_register_admin_styles' ); |
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | /** |
| 309 | - * Dedicated action to register admin scripts. | |
| 309 | + * Dedicated action to register admin scripts | |
| 310 | 310 | * |
| 311 | 311 | * @since 2.6.0 bbPress (r6912) |
| 312 | 312 | */ |
| 313 | 313 | function bbp_register_admin_scripts() { |
| @@ -314,9 +314,9 @@ | ||
| 314 | 314 | do_action( 'bbp_register_admin_scripts' ); |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | /** |
| 318 | - * Dedicated action to register admin settings. | |
| 318 | + * Dedicated action to register admin settings | |
| 319 | 319 | * |
| 320 | 320 | * @since 2.1.0 bbPress (r3766) |
| 321 | 321 | */ |
| 322 | 322 | function bbp_register_admin_settings() { |
| @@ -323,9 +323,9 @@ | ||
| 323 | 323 | do_action( 'bbp_register_admin_settings' ); |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | /** |
| 327 | - * Dedicated action to output admin tools.php sections. | |
| 327 | + * Dedicated action to output admin tools.php sections | |
| 328 | 328 | * |
| 329 | 329 | * @since 2.6.0 bbPress (r6273) |
| 330 | 330 | */ |
| 331 | 331 | function bbp_admin_tool_box() { |
| @@ -332,9 +332,9 @@ | ||
| 332 | 332 | do_action( 'bbp_admin_tool_box' ); |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | /** |
| 336 | - * Dedicated action to hook into the current screen. | |
| 336 | + * Dedicated action to hook into the current screen | |
| 337 | 337 | * |
| 338 | 338 | * @since 2.6.0 bbPress (r6185) |
| 339 | 339 | * |
| 340 | 340 | * @param WP_Screen $current_screen |