Plugin Directory

Changeset 2670104


Ignore:
Timestamp:
01/31/2022 07:06:11 PM (4 years ago)
Author:
stevengliebe
Message:

Releasing 2.6

Location:
church-theme-content
Files:
106 added
3 edited

Legend:

Unmodified
Added
Removed
  • church-theme-content/trunk/church-theme-content.php

    r2435619 r2670104  
    44 * Plugin URI: https://churchthemes.com/plugins/church-content/
    55 * Description: Provides an interface for managing sermons, events, people and locations. A <strong>compatible theme is required</strong> for presenting content from these church-centric post types in a tightly-integrated manner.
    6  * Version: 2.5
     6 * Version: 2.6
    77 * Author: ChurchThemes.com
    88 * Author URI: https://churchthemes.com
     
    1212 *
    1313 * @package   Church_Theme_Content
    14  * @copyright Copyright (c) 2013 - 2020, ChurchThemes.com, LLC
     14 * @copyright Copyright (c) 2013 - 2022, ChurchThemes.com, LLC
    1515 * @link      https://github.com/churchthemes/church-theme-content
    1616 * @license   GPLv2 or later
  • church-theme-content/trunk/includes/taxonomies.php

    r2090032 r2670104  
    1212
    1313// No direct access
    14 if ( ! defined( 'ABSPATH' ) ) exit;
     14if (! defined( 'ABSPATH' )) exit;
    1515
    1616/**********************************
     
    6969
    7070    // Filter arguments.
    71     if ( ! $unfiltered ) {
     71    if (! $unfiltered) {
    7272        $args = apply_filters( 'ctc_taxonomy_sermon_topic_args', $args );
    7373    }
     
    127127            'popular_items'                 => esc_html_x( 'Popular Books', 'sermons', 'church-theme-content' ),
    128128            'all_items'                     => esc_html_x( 'All Books', 'sermons', 'church-theme-content' ),
    129             'parent_item'                   => null,
    130             'parent_item_colon'             => null,
     129            'parent_item'                   => esc_html_x( 'Parent Book', 'sermons', 'church-theme-content' ),
     130            'parent_item_colon'             => esc_html_x( 'Parent Book:', 'sermons', 'church-theme-content' ),
    131131            'edit_item'                     => esc_html_x( 'Edit Book', 'sermons', 'church-theme-content' ),
    132132            'update_item'                   => esc_html_x( 'Update Book', 'sermons', 'church-theme-content' ),
     
    149149
    150150    // Filter arguments.
    151     if ( ! $unfiltered ) {
     151    if (! $unfiltered) {
    152152        $args = apply_filters( 'ctc_taxonomy_sermon_book_args', $args );
    153153    }
     
    207207            'popular_items'                 => esc_html_x( 'Popular Series', 'sermons', 'church-theme-content' ),
    208208            'all_items'                     => esc_html_x( 'All Series', 'sermons', 'church-theme-content' ),
    209             'parent_item'                   => null,
    210             'parent_item_colon'             => null,
     209            'parent_item'                   => esc_html_x( 'Parent Series', 'sermons', 'church-theme-content' ),
     210            'parent_item_colon'             => esc_html_x( 'Parent Series:', 'sermons', 'church-theme-content' ),
    211211            'edit_item'                     => esc_html_x( 'Edit Series', 'sermons', 'church-theme-content' ),
    212212            'update_item'                   => esc_html_x( 'Update Series', 'sermons', 'church-theme-content' ),
     
    229229
    230230    // Filter arguments.
    231     if ( ! $unfiltered ) {
     231    if (! $unfiltered) {
    232232        $args = apply_filters( 'ctc_taxonomy_sermon_series_args', $args );
    233233    }
     
    286286            'popular_items'                 => esc_html_x( 'Popular Speakers', 'sermons', 'church-theme-content' ),
    287287            'all_items'                     => esc_html_x( 'All Speakers', 'sermons', 'church-theme-content' ),
    288             'parent_item'                   => null,
    289             'parent_item_colon'             => null,
     288            'parent_item'                   => esc_html_x( 'Parent Speaker', 'sermons', 'church-theme-content' ),
     289            'parent_item_colon'             => esc_html_x( 'Parent Speaker:', 'sermons', 'church-theme-content' ),
    290290            'edit_item'                     => esc_html_x( 'Edit Speaker', 'sermons', 'church-theme-content' ),
    291291            'update_item'                   => esc_html_x( 'Update Speaker', 'sermons', 'church-theme-content' ),
     
    308308
    309309    // Filter arguments.
    310     if ( ! $unfiltered ) {
     310    if (! $unfiltered) {
    311311        $args = apply_filters( 'ctc_taxonomy_sermon_speaker_args', $args ); // allow filtering.
    312312    }
     
    388388
    389389    // Filter arguments.
    390     if ( ! $unfiltered ) {
     390    if (! $unfiltered) {
    391391        $args = apply_filters( 'ctc_taxonomy_sermon_tag_args', $args ); // allow filtering.
    392392    }
     
    460460
    461461    // Filter arguments.
    462     if ( ! $unfiltered ) {
     462    if (! $unfiltered) {
    463463        $args = apply_filters( 'ctc_taxonomy_event_category_args', $args );
    464464    }
     
    534534
    535535    // Filter arguments.
    536     if ( ! $unfiltered ) {
     536    if (! $unfiltered) {
    537537        $args = apply_filters( 'ctc_taxonomy_person_group_args', $args );
    538538    }
     
    602602
    603603    // Specific taxonomies (Topic can have parent).
    604     if ( ! in_array( $screen->taxonomy, ctc_taxonomies_no_parent() ) ) {
     604    if (! in_array( $screen->taxonomy, ctc_taxonomies_no_parent() )) {
    605605        return;
    606606    }
     
    655655function ctc_post_taxonomy_hide_parent() {
    656656
    657     $screen = get_current_screen();
     657    global $wp_version;
     658
     659    $screen = get_current_screen();
    658660
    659661    // Add/edit sermon post type only.
    660     if ( 'post' !== $screen->base || ( isset( $screen->post_type ) && 'ctc_sermon' !== $screen->post_type ) ) {
     662    if ('post' !== $screen->base || ( isset( $screen->post_type ) && 'ctc_sermon' !== $screen->post_type )) {
    661663        return;
    662664    }
     
    665667    $taxonomy_selectors = array();
    666668    $taxonomies = get_object_taxonomies( 'ctc_sermon' );
    667     foreach( $taxonomies as $taxonomy_name ) {
     669    foreach($taxonomies as $taxonomy_name) {
    668670
    669671        $taxonomy = get_taxonomy( $taxonomy_name );
    670672
    671         if ( ! empty( $taxonomy->labels->name ) && in_array( $taxonomy_name, ctc_taxonomies_no_parent() ) ) {
    672             $taxonomy_selectors[] = '.editor-post-taxonomies__hierarchical-terms-list[aria-label*="' . esc_html( $taxonomy->labels->name ) . '"] ~ form .components-base-control';
     673        if (! empty( $taxonomy->labels->name ) && in_array( $taxonomy_name, ctc_taxonomies_no_parent() )) {
     674            if (version_compare($wp_version, '5.9', '<')) { // WordPress before 5.9
     675                $taxonomy_selectors[] = '.editor-post-taxonomies__hierarchical-terms-list[aria-label*="' . esc_html( $taxonomy->labels->name ) . '"] ~ form .components-base-control';
     676            } else { // WordPress 5.9 and later user different CSS selector
     677                $taxonomy_selectors[] = '.editor-post-taxonomies__hierarchical-terms-list[aria-label*="' . esc_html( $taxonomy->labels->name ) . '"] ~ form > .components-base-control:nth-of-type(2)';
     678            }
    673679        }
    674680
     
    722728    $options = array();
    723729
    724     if ( ! preg_match( '/^ctc_/', $taxonomy_name ) || ctc_taxonomy_supported( $feature, $taxonomy_name ) ) { // make sure taxonomy supported.
     730    if (! preg_match( '/^ctc_/', $taxonomy_name ) || ctc_taxonomy_supported( $feature, $taxonomy_name )) { // make sure taxonomy supported.
    725731
    726732        $terms = $categories = get_terms( $taxonomy_name );
    727733
    728         if ( ! empty( $prepend ) ) {
     734        if (! empty( $prepend )) {
    729735            $options = $prepend;
    730736        }
    731737
    732         foreach ( $terms as $term ) {
     738        foreach ($terms as $term) {
    733739            $options[ $term->term_id ] = $term->name;
    734740        }
     
    739745
    740746}
    741 
  • church-theme-content/trunk/readme.txt

    r2668492 r2670104  
    55Tested up to: 5.9
    66Requires PHP: 5.3
    7 Stable tag: 2.5
     7Stable tag: 2.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.