Changeset 13746
- Timestamp:
- 05/22/2024 11:19:10 PM (2 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 3 edited
-
plugins/wporg-learn/inc/sensei.php (modified) (1 diff)
-
themes/pub/wporg-learn-2024/patterns/page-learning-pathways-content.php (modified) (2 diffs)
-
themes/pub/wporg-learn-2024/style.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/sensei.php
r13229 r13746 244 244 } 245 245 add_action( 'sensei_reports_overview_before_top_filters', __NAMESPACE__ . '\wporg_learn_add_student_count_to_reports' ); 246 247 /** 248 * Get the URL of the "My Courses" page. 249 * 250 * @return string The URL of the "My Courses" page. 251 */ 252 function get_my_courses_page_url() { 253 $page_id = Sensei()->settings->get_my_courses_page_id(); 254 255 if ( ! $page_id ) { 256 return ''; 257 } 258 259 return get_permalink( $page_id ); 260 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/patterns/page-learning-pathways-content.php
r13745 r13746 6 6 */ 7 7 8 use function WPOrg_Learn\Sensei\{get_my_courses_page_url} 8 9 ?> 9 10 … … 16 17 17 18 <!-- wp:button --> 18 <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href=" /my-courses/"><?php esc_html_e( 'My Courses', 'wporg-learn' ); ?></a>19 <div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( get_my_courses_page_url() ); ?>"><?php esc_html_e( 'My Courses', 'wporg-learn' ); ?></a> 19 20 </div> 20 21 <!-- /wp:button --> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css
r13745 r13746 5 5 * Author URI: http://wordpress.org/ 6 6 * Description: A theme for learn.wordpress.org, built in 2024. 7 * Version: 1.0.0- a74bf5f7 * Version: 1.0.0-16ac699 8 8 * License: GNU General Public License v2 or later 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)