Plugin Directory

Changeset 3003012


Ignore:
Timestamp:
11/29/2023 01:06:45 AM (2 years ago)
Author:
Jack Kitterhing
Message:

Update to version 1.5.92-beta from GitHub

Location:
kb-support
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kb-support/tags/1.5.92-beta/assets/js/admin-conditions-scripts.js

    r2968800 r3003012  
    5858
    5959// Dismiss admin notices
    60 $( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () {
    61     var notice = $( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' );
     60jQuery( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () {
     61    var notice = jQuery( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' );
    6262
    6363    var postData         = {
     
    6666    };
    6767
    68     $.ajax({
     68    jQuery.ajax({
    6969               type: 'POST',
    7070               dataType: 'json',
  • kb-support/tags/1.5.92-beta/includes/api/class-kbs-api.php

    r2785393 r3003012  
    173173            ),
    174174            'ticket_not_found'   => sprintf(
    175                 esc_html__( '% not found.', 'kb-support' ),
     175                esc_html__( '%s not found.', 'kb-support' ),
    176176                kbs_get_article_label_singular()
    177177            ),
  • kb-support/tags/1.5.92-beta/includes/article/article-restricted.php

    r2785393 r3003012  
    134134    }
    135135
    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() ) {
    137141        return;
    138142    }
  • kb-support/trunk/assets/js/admin-conditions-scripts.js

    r2968800 r3003012  
    5858
    5959// Dismiss admin notices
    60 $( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () {
    61     var notice = $( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' );
     60jQuery( document ).on( 'click', '.notice-kbs-dismiss .notice-dismiss', function () {
     61    var notice = jQuery( this ).closest( '.notice-kbs-dismiss' ).data( 'notice' );
    6262
    6363    var postData         = {
     
    6666    };
    6767
    68     $.ajax({
     68    jQuery.ajax({
    6969               type: 'POST',
    7070               dataType: 'json',
  • kb-support/trunk/includes/api/class-kbs-api.php

    r2785393 r3003012  
    173173            ),
    174174            'ticket_not_found'   => sprintf(
    175                 esc_html__( '% not found.', 'kb-support' ),
     175                esc_html__( '%s not found.', 'kb-support' ),
    176176                kbs_get_article_label_singular()
    177177            ),
  • kb-support/trunk/includes/article/article-restricted.php

    r2785393 r3003012  
    134134    }
    135135
    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() ) {
    137141        return;
    138142    }
Note: See TracChangeset for help on using the changeset viewer.