Changeset 12316 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 12/12/2022 03:14:07 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r12309 r12316 349 349 'support', 350 350 'reviews', 351 'installation', 351 352 'developers', 352 353 ); … … 362 363 363 364 $sections = array(); 364 $title = $url ='';365 $title = ''; 365 366 $permalink = get_permalink(); 366 367 … … 370 371 case 'description': 371 372 $title = _x( 'Description', 'plugin tab title', 'wporg-plugins' ); 372 $url = $permalink;373 373 break; 374 374 375 375 case 'installation': 376 376 $title = _x( 'Installation', 'plugin tab title', 'wporg-plugins' ); 377 $url = trailingslashit( $permalink ) . $section_slug . '/';378 377 break; 379 378 380 379 case 'faq': 381 380 $title = _x( 'FAQ', 'plugin tab title', 'wporg-plugins' ); 382 $url = trailingslashit( $permalink ) . $section_slug . '/';383 381 break; 384 382 385 383 case 'screenshots': 386 384 $title = _x( 'Screenshots', 'plugin tab title', 'wporg-plugins' ); 387 $url = trailingslashit( $permalink ) . $section_slug . '/';388 385 break; 389 386 390 387 case 'changelog': 391 388 $title = _x( 'Changelog', 'plugin tab title', 'wporg-plugins' ); 392 $url = trailingslashit( $permalink ) . $section_slug . '/';393 389 break; 394 390 395 391 case 'stats': 396 392 $title = _x( 'Stats', 'plugin tab title', 'wporg-plugins' ); 397 $url = trailingslashit( $permalink ) . $section_slug . '/';398 393 break; 399 394 400 395 case 'support': 401 396 $title = _x( 'Support', 'plugin tab title', 'wporg-plugins' ); 402 $url = 'https://wordpress.org/support/plugin/' . $plugin->post_name . '/';403 397 break; 404 398 405 399 case 'reviews': 406 400 $title = _x( 'Reviews', 'plugin tab title', 'wporg-plugins' ); 407 $url = 'https://wordpress.org/support/plugin/' . $plugin->post_name . '/reviews/';408 401 break; 409 402 410 403 case 'developers': 411 404 $title = _x( 'Contributors & Developers', 'plugin tab title', 'wporg-plugins' ); 412 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/';413 405 break; 414 406 415 407 case 'other_notes': 416 408 $title = _x( 'Other Notes', 'plugin tab title', 'wporg-plugins' ); 417 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/';418 409 break; 419 410 420 411 case 'blocks': 421 412 $title = _x( 'Blocks', 'plugin tab title', 'wporg-plugins' ); 422 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/';423 413 break; 424 414 … … 430 420 $sections[] = array( 431 421 'slug' => $section_slug, 432 'url' => $url,433 422 'title' => $title, 434 423 );
Note: See TracChangeset
for help on using the changeset viewer.