Changeset 3003012
- Timestamp:
- 11/29/2023 01:06:45 AM (2 years ago)
- Location:
- kb-support
- Files:
-
- 6 edited
- 1 copied
-
tags/1.5.92-beta (copied) (copied from kb-support/trunk)
-
tags/1.5.92-beta/assets/js/admin-conditions-scripts.js (modified) (2 diffs)
-
tags/1.5.92-beta/includes/api/class-kbs-api.php (modified) (1 diff)
-
tags/1.5.92-beta/includes/article/article-restricted.php (modified) (1 diff)
-
trunk/assets/js/admin-conditions-scripts.js (modified) (2 diffs)
-
trunk/includes/api/class-kbs-api.php (modified) (1 diff)
-
trunk/includes/article/article-restricted.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kb-support/tags/1.5.92-beta/assets/js/admin-conditions-scripts.js
r2968800 r3003012 58 58 59 59 // Dismiss admin notices 60 $( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () {61 var notice = $( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' );60 jQuery( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () { 61 var notice = jQuery( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' ); 62 62 63 63 var postData = { … … 66 66 }; 67 67 68 $.ajax({68 jQuery.ajax({ 69 69 type: 'POST', 70 70 dataType: 'json', -
kb-support/tags/1.5.92-beta/includes/api/class-kbs-api.php
r2785393 r3003012 173 173 ), 174 174 'ticket_not_found' => sprintf( 175 esc_html__( '% not found.', 'kb-support' ),175 esc_html__( '%s not found.', 'kb-support' ), 176 176 kbs_get_article_label_singular() 177 177 ), -
kb-support/tags/1.5.92-beta/includes/article/article-restricted.php
r2785393 r3003012 134 134 } 135 135 136 if ( is_admin() || ! is_post_type_archive( 'article' ) || ! $query->is_main_query() ) { 136 global $wp_query; 137 138 if ( is_admin() 139 || ( isset( $wp_query ) && ! is_post_type_archive( 'article' ) ) 140 || ! $query->is_main_query() ) { 137 141 return; 138 142 } -
kb-support/trunk/assets/js/admin-conditions-scripts.js
r2968800 r3003012 58 58 59 59 // Dismiss admin notices 60 $( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () {61 var notice = $( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' );60 jQuery( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () { 61 var notice = jQuery( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' ); 62 62 63 63 var postData = { … … 66 66 }; 67 67 68 $.ajax({68 jQuery.ajax({ 69 69 type: 'POST', 70 70 dataType: 'json', -
kb-support/trunk/includes/api/class-kbs-api.php
r2785393 r3003012 173 173 ), 174 174 'ticket_not_found' => sprintf( 175 esc_html__( '% not found.', 'kb-support' ),175 esc_html__( '%s not found.', 'kb-support' ), 176 176 kbs_get_article_label_singular() 177 177 ), -
kb-support/trunk/includes/article/article-restricted.php
r2785393 r3003012 134 134 } 135 135 136 if ( is_admin() || ! is_post_type_archive( 'article' ) || ! $query->is_main_query() ) { 136 global $wp_query; 137 138 if ( is_admin() 139 || ( isset( $wp_query ) && ! is_post_type_archive( 'article' ) ) 140 || ! $query->is_main_query() ) { 137 141 return; 138 142 }
Note: See TracChangeset
for help on using the changeset viewer.