Changeset 2554
- Timestamp:
- 02/23/2016 01:40:44 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-wporg-plugin-directory-template.php
r2501 r2554 58 58 $raw_sections = array_unique( array_merge( $raw_sections, array( 59 59 'description', 60 'screenshots', 60 61 'stats', 61 62 'support', … … 64 65 ) ) ); 65 66 66 $sections = array();67 $title = '';68 $ url= get_permalink();67 $sections = array(); 68 $title = ''; 69 $permalink = get_permalink(); 69 70 70 71 foreach ( $raw_sections as $section_slug ) { … … 73 74 case 'description': 74 75 $title = _x( 'Description', 'plugin tab title', 'wporg-plugins' ); 76 $url = $permalink; 75 77 break; 76 78 77 79 case 'installation': 78 80 $title = _x( 'Installation', 'plugin tab title', 'wporg-plugins' ); 79 $url = trailingslashit( $ url ) . '/'. $section_slug . '/';81 $url = trailingslashit( $permalink ) . $section_slug . '/'; 80 82 break; 81 83 82 84 case 'faq': 83 85 $title = _x( 'FAQ', 'plugin tab title', 'wporg-plugins' ); 84 $url = trailingslashit( $ url ) . '/'. $section_slug . '/';86 $url = trailingslashit( $permalink ) . $section_slug . '/'; 85 87 break; 86 88 87 89 case 'screenshots': 88 90 $title = _x( 'Screenshots', 'plugin tab title', 'wporg-plugins' ); 89 $url = trailingslashit( $ url ) . '/'. $section_slug . '/';91 $url = trailingslashit( $permalink ) . $section_slug . '/'; 90 92 break; 91 93 92 94 case 'changelog': 93 95 $title = _x( 'Changelog', 'plugin tab title', 'wporg-plugins' ); 94 $url = trailingslashit( $ url ) . '/'. $section_slug . '/';96 $url = trailingslashit( $permalink ) . $section_slug . '/'; 95 97 break; 96 98 97 99 case 'stats': 98 100 $title = _x( 'Stats', 'plugin tab title', 'wporg-plugins' ); 99 $url = trailingslashit( $ url ) . '/'. $section_slug . '/';101 $url = trailingslashit( $permalink ) . $section_slug . '/'; 100 102 break; 101 103 … … 112 114 case 'developers': 113 115 $title = _x( 'Developers', 'plugin tab title', 'wporg-plugins' ); 114 $url = trailingslashit( $ url) . '/' . $section_slug . '/';116 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/'; 115 117 break; 118 119 case 'other_notes': 120 $title = _x( 'Other Notes', 'plugin tab title', 'wporg-plugins' ); 121 $url = trailingslashit( $permalink ) . '/' . $section_slug . '/'; 122 break; 123 124 default: 125 continue; 116 126 } 117 127
Note: See TracChangeset
for help on using the changeset viewer.