Changeset 2670104
- Timestamp:
- 01/31/2022 07:06:11 PM (4 years ago)
- Location:
- church-theme-content
- Files:
-
- 106 added
- 3 edited
-
tags/2.6 (added)
-
tags/2.6/church-theme-content.php (added)
-
tags/2.6/css (added)
-
tags/2.6/css/dashboard.css (added)
-
tags/2.6/css/map-after-fields.css (added)
-
tags/2.6/css/settings.css (added)
-
tags/2.6/css/style.css (added)
-
tags/2.6/includes (added)
-
tags/2.6/includes/add-ons.php (added)
-
tags/2.6/includes/admin (added)
-
tags/2.6/includes/admin/admin-add-ons.php (added)
-
tags/2.6/includes/admin/admin-enqueue-scripts.php (added)
-
tags/2.6/includes/admin/admin-enqueue-styles.php (added)
-
tags/2.6/includes/admin/admin-event-fields.php (added)
-
tags/2.6/includes/admin/admin-helpers.php (added)
-
tags/2.6/includes/admin/admin-location-fields.php (added)
-
tags/2.6/includes/admin/admin-maps.php (added)
-
tags/2.6/includes/admin/admin-menu.php (added)
-
tags/2.6/includes/admin/admin-person-fields.php (added)
-
tags/2.6/includes/admin/admin-posts.php (added)
-
tags/2.6/includes/admin/admin-sermon-fields.php (added)
-
tags/2.6/includes/admin/admin-support.php (added)
-
tags/2.6/includes/admin/dashboard.php (added)
-
tags/2.6/includes/admin/edd-license.php (added)
-
tags/2.6/includes/admin/editor.php (added)
-
tags/2.6/includes/admin/import.php (added)
-
tags/2.6/includes/admin/migrate-risen.php (added)
-
tags/2.6/includes/admin/notices.php (added)
-
tags/2.6/includes/admin/upgrade.php (added)
-
tags/2.6/includes/classes (added)
-
tags/2.6/includes/classes/CTC_Dashboard_News.php (added)
-
tags/2.6/includes/classes/CTC_EDD_SL_Plugin_Updater.php (added)
-
tags/2.6/includes/event-fields.php (added)
-
tags/2.6/includes/helpers.php (added)
-
tags/2.6/includes/libraries (added)
-
tags/2.6/includes/libraries/ct-meta-box (added)
-
tags/2.6/includes/libraries/ct-meta-box/css (added)
-
tags/2.6/includes/libraries/ct-meta-box/css/ct-meta-box.css (added)
-
tags/2.6/includes/libraries/ct-meta-box/css/datepicker.min.css (added)
-
tags/2.6/includes/libraries/ct-meta-box/css/jquery.timepicker.css (added)
-
tags/2.6/includes/libraries/ct-meta-box/ct-meta-box.php (added)
-
tags/2.6/includes/libraries/ct-meta-box/js (added)
-
tags/2.6/includes/libraries/ct-meta-box/js/ct-meta-box.js (added)
-
tags/2.6/includes/libraries/ct-meta-box/js/datepicker.min.js (added)
-
tags/2.6/includes/libraries/ct-meta-box/js/jquery.timepicker.min.js (added)
-
tags/2.6/includes/libraries/ct-meta-box/license.txt (added)
-
tags/2.6/includes/libraries/ct-plugin-settings (added)
-
tags/2.6/includes/libraries/ct-plugin-settings/css (added)
-
tags/2.6/includes/libraries/ct-plugin-settings/css/ct-plugin-settings.css (added)
-
tags/2.6/includes/libraries/ct-plugin-settings/ct-plugin-settings.php (added)
-
tags/2.6/includes/libraries/ct-plugin-settings/js (added)
-
tags/2.6/includes/libraries/ct-plugin-settings/js/ct-plugin-settings.js (added)
-
tags/2.6/includes/libraries/ct-plugin-settings/license.txt (added)
-
tags/2.6/includes/libraries/ct-recurrence (added)
-
tags/2.6/includes/libraries/ct-recurrence/ct-recurrence-compat.php (added)
-
tags/2.6/includes/libraries/ct-recurrence/ct-recurrence-load.php (added)
-
tags/2.6/includes/libraries/ct-recurrence/ct-recurrence.php (added)
-
tags/2.6/includes/libraries/ct-recurrence/license.txt (added)
-
tags/2.6/includes/libraries/ct-recurrence/php-rrule (added)
-
tags/2.6/includes/libraries/ct-recurrence/php-rrule/RRule.php (added)
-
tags/2.6/includes/libraries/ct-recurrence/php-rrule/RRuleInterface.php (added)
-
tags/2.6/includes/libraries/ct-recurrence/php-rrule/RSet.php (added)
-
tags/2.6/includes/libraries/ct-recurrence/php-rrule/RfcParser.php (added)
-
tags/2.6/includes/mime-types.php (added)
-
tags/2.6/includes/podcast.php (added)
-
tags/2.6/includes/post-types.php (added)
-
tags/2.6/includes/schedule.php (added)
-
tags/2.6/includes/settings.php (added)
-
tags/2.6/includes/support.php (added)
-
tags/2.6/includes/taxonomies.php (added)
-
tags/2.6/js (added)
-
tags/2.6/js/lib (added)
-
tags/2.6/js/lib/clipboard.min.js (added)
-
tags/2.6/js/map-after-fields.js (added)
-
tags/2.6/js/settings.js (added)
-
tags/2.6/languages (added)
-
tags/2.6/languages/church-theme-content-af.mo (added)
-
tags/2.6/languages/church-theme-content-af.po (added)
-
tags/2.6/languages/church-theme-content-da_DK.mo (added)
-
tags/2.6/languages/church-theme-content-da_DK.po (added)
-
tags/2.6/languages/church-theme-content-de_DE.mo (added)
-
tags/2.6/languages/church-theme-content-de_DE.po (added)
-
tags/2.6/languages/church-theme-content-es_ES.mo (added)
-
tags/2.6/languages/church-theme-content-es_ES.po (added)
-
tags/2.6/languages/church-theme-content-es_MX.mo (added)
-
tags/2.6/languages/church-theme-content-es_MX.po (added)
-
tags/2.6/languages/church-theme-content-fr_FR.mo (added)
-
tags/2.6/languages/church-theme-content-fr_FR.po (added)
-
tags/2.6/languages/church-theme-content-nb_NO.mo (added)
-
tags/2.6/languages/church-theme-content-nb_NO.po (added)
-
tags/2.6/languages/church-theme-content-nl_NL.mo (added)
-
tags/2.6/languages/church-theme-content-nl_NL.po (added)
-
tags/2.6/languages/church-theme-content-nn_NO.mo (added)
-
tags/2.6/languages/church-theme-content-nn_NO.po (added)
-
tags/2.6/languages/church-theme-content-pt_BR.mo (added)
-
tags/2.6/languages/church-theme-content-pt_BR.po (added)
-
tags/2.6/languages/church-theme-content-sk_SK.mo (added)
-
tags/2.6/languages/church-theme-content-sk_SK.po (added)
-
tags/2.6/languages/church-theme-content-sr_RS.mo (added)
-
tags/2.6/languages/church-theme-content-sr_RS.po (added)
-
tags/2.6/languages/church-theme-content-sv_SE.mo (added)
-
tags/2.6/languages/church-theme-content-sv_SE.po (added)
-
tags/2.6/languages/church-theme-content.pot (added)
-
tags/2.6/languages/important.txt (added)
-
tags/2.6/license.txt (added)
-
tags/2.6/readme.txt (added)
-
trunk/church-theme-content.php (modified) (2 diffs)
-
trunk/includes/taxonomies.php (modified) (16 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
church-theme-content/trunk/church-theme-content.php
r2435619 r2670104 4 4 * Plugin URI: https://churchthemes.com/plugins/church-content/ 5 5 * 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. 56 * Version: 2.6 7 7 * Author: ChurchThemes.com 8 8 * Author URI: https://churchthemes.com … … 12 12 * 13 13 * @package Church_Theme_Content 14 * @copyright Copyright (c) 2013 - 202 0, ChurchThemes.com, LLC14 * @copyright Copyright (c) 2013 - 2022, ChurchThemes.com, LLC 15 15 * @link https://github.com/churchthemes/church-theme-content 16 16 * @license GPLv2 or later -
church-theme-content/trunk/includes/taxonomies.php
r2090032 r2670104 12 12 13 13 // No direct access 14 if ( ! defined( 'ABSPATH' )) exit;14 if (! defined( 'ABSPATH' )) exit; 15 15 16 16 /********************************** … … 69 69 70 70 // Filter arguments. 71 if ( ! $unfiltered) {71 if (! $unfiltered) { 72 72 $args = apply_filters( 'ctc_taxonomy_sermon_topic_args', $args ); 73 73 } … … 127 127 'popular_items' => esc_html_x( 'Popular Books', 'sermons', 'church-theme-content' ), 128 128 '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' ), 131 131 'edit_item' => esc_html_x( 'Edit Book', 'sermons', 'church-theme-content' ), 132 132 'update_item' => esc_html_x( 'Update Book', 'sermons', 'church-theme-content' ), … … 149 149 150 150 // Filter arguments. 151 if ( ! $unfiltered) {151 if (! $unfiltered) { 152 152 $args = apply_filters( 'ctc_taxonomy_sermon_book_args', $args ); 153 153 } … … 207 207 'popular_items' => esc_html_x( 'Popular Series', 'sermons', 'church-theme-content' ), 208 208 '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' ), 211 211 'edit_item' => esc_html_x( 'Edit Series', 'sermons', 'church-theme-content' ), 212 212 'update_item' => esc_html_x( 'Update Series', 'sermons', 'church-theme-content' ), … … 229 229 230 230 // Filter arguments. 231 if ( ! $unfiltered) {231 if (! $unfiltered) { 232 232 $args = apply_filters( 'ctc_taxonomy_sermon_series_args', $args ); 233 233 } … … 286 286 'popular_items' => esc_html_x( 'Popular Speakers', 'sermons', 'church-theme-content' ), 287 287 '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' ), 290 290 'edit_item' => esc_html_x( 'Edit Speaker', 'sermons', 'church-theme-content' ), 291 291 'update_item' => esc_html_x( 'Update Speaker', 'sermons', 'church-theme-content' ), … … 308 308 309 309 // Filter arguments. 310 if ( ! $unfiltered) {310 if (! $unfiltered) { 311 311 $args = apply_filters( 'ctc_taxonomy_sermon_speaker_args', $args ); // allow filtering. 312 312 } … … 388 388 389 389 // Filter arguments. 390 if ( ! $unfiltered) {390 if (! $unfiltered) { 391 391 $args = apply_filters( 'ctc_taxonomy_sermon_tag_args', $args ); // allow filtering. 392 392 } … … 460 460 461 461 // Filter arguments. 462 if ( ! $unfiltered) {462 if (! $unfiltered) { 463 463 $args = apply_filters( 'ctc_taxonomy_event_category_args', $args ); 464 464 } … … 534 534 535 535 // Filter arguments. 536 if ( ! $unfiltered) {536 if (! $unfiltered) { 537 537 $args = apply_filters( 'ctc_taxonomy_person_group_args', $args ); 538 538 } … … 602 602 603 603 // 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() )) { 605 605 return; 606 606 } … … 655 655 function ctc_post_taxonomy_hide_parent() { 656 656 657 $screen = get_current_screen(); 657 global $wp_version; 658 659 $screen = get_current_screen(); 658 660 659 661 // 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 )) { 661 663 return; 662 664 } … … 665 667 $taxonomy_selectors = array(); 666 668 $taxonomies = get_object_taxonomies( 'ctc_sermon' ); 667 foreach( $taxonomies as $taxonomy_name) {669 foreach($taxonomies as $taxonomy_name) { 668 670 669 671 $taxonomy = get_taxonomy( $taxonomy_name ); 670 672 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 } 673 679 } 674 680 … … 722 728 $options = array(); 723 729 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. 725 731 726 732 $terms = $categories = get_terms( $taxonomy_name ); 727 733 728 if ( ! empty( $prepend )) {734 if (! empty( $prepend )) { 729 735 $options = $prepend; 730 736 } 731 737 732 foreach ( $terms as $term) {738 foreach ($terms as $term) { 733 739 $options[ $term->term_id ] = $term->name; 734 740 } … … 739 745 740 746 } 741 -
church-theme-content/trunk/readme.txt
r2668492 r2670104 5 5 Tested up to: 5.9 6 6 Requires PHP: 5.3 7 Stable tag: 2. 57 Stable tag: 2.6 8 8 License: GPLv2 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.