Plugin Directory

Changeset 2523719


Ignore:
Timestamp:
04/29/2021 08:09:54 PM (5 years ago)
Author:
steinrein
Message:

## 1.1.1
### Bug fixes

  • fixed posts per page was unable to change on glossary archives
  • fixed orderby was set wrong in some situations
Location:
wppedia
Files:
210 added
13 edited

Legend:

Unmodified
Added
Removed
  • wppedia/trunk/.git/FETCH_HEAD

    r2523688 r2523719  
    1 0d46ee74d0678a91817db770113e5ebe93f25531        branch 'master' of https://github.com/bfiessinger/wppedia
     1a3b6a36550b94072b8fd38feb68c4b0163fc42ef        branch 'master' of https://github.com/bfiessinger/wppedia
  • wppedia/trunk/.git/ORIG_HEAD

    r2523688 r2523719  
    1 f6435655cc85b1ec024ff57d4a9b395125f23514
     10d46ee74d0678a91817db770113e5ebe93f25531
  • wppedia/trunk/.git/logs/HEAD

    r2523688 r2523719  
    110000000000000000000000000000000000000000 f6435655cc85b1ec024ff57d4a9b395125f23514 Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1618395211 +0200    clone: from https://github.com/bfiessinger/wppedia.git
    22f6435655cc85b1ec024ff57d4a9b395125f23514 0d46ee74d0678a91817db770113e5ebe93f25531 Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1619721620 +0200    pull origin master: Fast-forward
     30d46ee74d0678a91817db770113e5ebe93f25531 a3b6a36550b94072b8fd38feb68c4b0163fc42ef Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1619726857 +0200    pull origin master: Fast-forward
  • wppedia/trunk/.git/logs/refs/heads/master

    r2523688 r2523719  
    110000000000000000000000000000000000000000 f6435655cc85b1ec024ff57d4a9b395125f23514 Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1618395211 +0200    clone: from https://github.com/bfiessinger/wppedia.git
    22f6435655cc85b1ec024ff57d4a9b395125f23514 0d46ee74d0678a91817db770113e5ebe93f25531 Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1619721620 +0200    pull origin master: Fast-forward
     30d46ee74d0678a91817db770113e5ebe93f25531 a3b6a36550b94072b8fd38feb68c4b0163fc42ef Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1619726857 +0200    pull origin master: Fast-forward
  • wppedia/trunk/.git/logs/refs/remotes/origin/master

    r2523688 r2523719  
    11f6435655cc85b1ec024ff57d4a9b395125f23514 0d46ee74d0678a91817db770113e5ebe93f25531 Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1619721620 +0200    pull origin master: fast-forward
     20d46ee74d0678a91817db770113e5ebe93f25531 a3b6a36550b94072b8fd38feb68c4b0163fc42ef Bastian Fießinger <41627893+bfiessinger@users.noreply.github.com> 1619726857 +0200    pull origin master: fast-forward
  • wppedia/trunk/.git/refs/heads/master

    r2523688 r2523719  
    1 0d46ee74d0678a91817db770113e5ebe93f25531
     1a3b6a36550b94072b8fd38feb68c4b0163fc42ef
  • wppedia/trunk/.git/refs/remotes/origin/master

    r2523688 r2523719  
    1 0d46ee74d0678a91817db770113e5ebe93f25531
     1a3b6a36550b94072b8fd38feb68c4b0163fc42ef
  • wppedia/trunk/CHANGELOG.md

    r2523688 r2523719  
    11# Changelog
     2
     3## 1.1.1
     4### Bug fixes
     5- fixed posts per page was unable to change on glossary archives
     6- fixed orderby was set wrong in some situations
    27
    38## 1.1.0
  • wppedia/trunk/core/classes/query_control.php

    r2523688 r2523719  
    9494   */
    9595  function default_wiki_entries_orderby( $query ) {
    96 
    97     if( ! $query->is_main_query() || ! is_wppedia_page() )
     96    if(!$query->is_main_query() || $query->get('post_type') !== wppedia_get_post_type())
    9897      return $query;
    9998 
     
    107106       
    108107        return $query;
    109 
    110108    }
    111109
     
    116114     */
    117115    function default_posts_per_page( $query ) {
    118 
    119         if ( ! is_admin() && $query->is_main_query() && $query->is_archive() )
     116        if (!is_admin() && $query->is_main_query() && $query->is_archive() && ($query->get('post_type') === wppedia_get_post_type() || $query->get('wppedia_initial_letter') !== ''))
    120117            $query->set( 'posts_per_page', get_option('wppedia_posts_per_page', 25) );
    121118
    122119        return $query;
    123 
    124120    }
    125121
  • wppedia/trunk/core/inc/page-functions.php

    r2523688 r2523719  
    7575 */
    7676function is_wppedia_archive() {
    77     return is_post_type_archive(wppedia_get_post_type());
     77    return (is_post_type_archive(wppedia_get_post_type()) || (is_tax() && get_post_type() === wppedia_get_post_type()));
    7878}
    7979
  • wppedia/trunk/readme.txt

    r2523688 r2523719  
    22Contributors: bastianfiessinger
    33Tested up to: 5.7.1
    4 Stable tag: 1.1.0
     4Stable tag: 1.1.1
    55Tags: glossary, encyclopedia, wiki, vocabulary, dictionary, tooltip, lexicon, clavis
    66License: GPLv3 or later
     
    124124== Changelog ==
    125125
     126= 1.1.1 =
     127### Bug fixes
     128- fixed posts per page was unable to change on glossary archives
     129- fixed orderby was set wrong in some situations
     130
    126131= 1.1.0 =
    127132### New Features
  • wppedia/trunk/wppedia.php

    r2523688 r2523719  
    33/**
    44 * WPPedia - The most advanced Glossary solution for WordPress!
    5  *
    6  * @since               1.1.0
    75 *
    86 * @wordpress-plugin
     
    1210 * Author:          Bastian Fießinger
    1311 * AuthorURI:   https://github.com/bfiessinger/
    14  * Version:         1.1.0
     12 * Version:         1.1.1
    1513 * Text Domain: wppedia
    1614 */
     
    6664    private function define_constants() {
    6765
    68         wppedia_maybe_define_constant('wpPediaPluginVersion', '1.1.0');
     66        wppedia_maybe_define_constant('wpPediaPluginVersion', '1.1.1');
    6967
    7068        // Path Constants
Note: See TracChangeset for help on using the changeset viewer.