Plugin Directory

Changeset 2758670


Ignore:
Timestamp:
07/19/2022 02:44:55 PM (4 years ago)
Author:
bostonu
Message:

Update to version 1.1.4 from GitHub

Location:
bu-learning-blocks
Files:
2 added
2 deleted
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bu-learning-blocks/tags/1.1.4/bu-learning-blocks.php

    r2518565 r2758670  
    1010 * Text Domain: bu-learning-blocks
    1111 * Domain Path: /languages
    12  * Version: 1.1.3
     12 * Version: 1.1.4
    1313 * License: GPL2+
    1414 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
  • bu-learning-blocks/tags/1.1.4/languages/bu-learning-blocks.pot

    r2518565 r2758670  
    1 # Copyright (C) 2021 Boston University: Web Applications
    2 # This file is distributed under the same license as the BU Learning Blocks plugin.
     1# Copyright (C) 2022 Boston University: Web Applications
     2# This file is distributed under the GPL2+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: BU Learning Blocks v1.1.3\n"
     5"Project-Id-Version: BU Learning Blocks 1.1.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bu-learning-blocks\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2021-03-09T22:14:20+00:00\n"
     12"POT-Creation-Date: 2022-07-18T17:16:56-04:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.4.0\n"
     14"X-Generator: WP-CLI 2.6.0\n"
    1515"X-Domain: bu-learning-blocks\n"
    1616
     
    3535msgstr ""
    3636
    37 #: bu-learning-blocks.php:39
     37#: bu-learning-blocks.php:41
    3838msgid "BULB Error: BU Learning Blocks requires either WordPress 5.0.0, or the Gutenberg plugin to be installed and activated on any version previous to 5.0.0."
    3939msgstr ""
    4040
    41 #: bu-learning-blocks.php:42
     41#: bu-learning-blocks.php:44
    4242msgid "Please install and activate the Gutenberg plugin to use BU Learning Blocks."
    4343msgstr ""
    4444
    45 #: src/init.php:38
     45#: src/init.php:41
    4646#: src/blocks/bulb-cn/index.js:22
    4747#: src/blocks/bulb-fitb/index.js:22
     
    5353msgstr ""
    5454
    55 #: src/init.php:101
     55#: src/init.php:104
    5656msgid "<strong>Welcome to BU Learning Blocks</strong>"
    5757msgstr ""
    5858
    59 #: src/init.php:109
     59#: src/init.php:112
    6060msgid "Install Blocks and Pages"
    6161msgstr ""
    6262
    63 #: src/init.php:115
     63#: src/init.php:118
    6464msgid "Install Blocks Only"
    6565msgstr ""
    6666
    67 #: src/learning-module-cpt.php:17
     67#: src/learning-module-cpt.php:19
    6868msgctxt "Taxonomy General Name"
    6969msgid "Lessons"
    7070msgstr ""
    7171
    72 #: src/learning-module-cpt.php:18
     72#: src/learning-module-cpt.php:20
    7373msgctxt "Taxonomy Singular Name"
    7474msgid "Lesson"
    7575msgstr ""
    7676
    77 #: src/learning-module-cpt.php:19
     77#: src/learning-module-cpt.php:21
    7878msgid "Lessons"
    7979msgstr ""
    8080
    81 #: src/learning-module-cpt.php:20
     81#: src/learning-module-cpt.php:22
    8282msgid "All Lessons"
    8383msgstr ""
    8484
    85 #: src/learning-module-cpt.php:21
     85#: src/learning-module-cpt.php:23
    8686msgid "View Lesson"
    8787msgstr ""
    8888
    89 #: src/learning-module-cpt.php:22
     89#: src/learning-module-cpt.php:24
    9090msgid "Parent Lesson"
    9191msgstr ""
    9292
    93 #: src/learning-module-cpt.php:23
     93#: src/learning-module-cpt.php:25
    9494msgid "Parent Lesson:"
    9595msgstr ""
    9696
    97 #: src/learning-module-cpt.php:24
     97#: src/learning-module-cpt.php:26
    9898msgid "New Lesson Name"
    9999msgstr ""
    100100
    101 #: src/learning-module-cpt.php:25
    102 msgid "Create Lesson"
    103 msgstr ""
    104 
    105 #: src/learning-module-cpt.php:26
     101#: src/learning-module-cpt.php:27
     102msgid "Include in Lesson (start typing name of Lesson)"
     103msgstr ""
     104
     105#: src/learning-module-cpt.php:28
    106106msgid "Edit Lesson"
    107107msgstr ""
    108108
    109 #: src/learning-module-cpt.php:27
     109#: src/learning-module-cpt.php:29
    110110msgid "Update Lesson"
    111111msgstr ""
    112112
    113 #: src/learning-module-cpt.php:28
     113#: src/learning-module-cpt.php:30
    114114msgid "Separate lessons with commas"
    115115msgstr ""
    116116
    117 #: src/learning-module-cpt.php:29
     117#: src/learning-module-cpt.php:31
    118118msgid "Search Lessons"
    119119msgstr ""
    120120
    121 #: src/learning-module-cpt.php:30
     121#: src/learning-module-cpt.php:32
    122122msgid "Add or remove lessons"
    123123msgstr ""
    124124
    125 #: src/learning-module-cpt.php:31
     125#: src/learning-module-cpt.php:33
    126126msgid "Choose from the most used lessons"
    127127msgstr ""
    128128
    129 #: src/learning-module-cpt.php:32
     129#: src/learning-module-cpt.php:34
    130130msgid "Not Found"
    131131msgstr ""
    132132
    133 #: src/learning-module-cpt.php:62
     133#: src/learning-module-cpt.php:64
    134134msgid "Lesson Pages"
    135135msgstr ""
    136136
    137 #: src/learning-module-cpt.php:63
     137#: src/learning-module-cpt.php:65
    138138msgid "Lesson Page"
    139139msgstr ""
    140140
    141 #: src/learning-module-cpt.php:64
     141#: src/learning-module-cpt.php:66
    142142msgid "BULB Lessons"
    143143msgstr ""
    144144
    145 #: src/learning-module-cpt.php:65
    146 #: src/learning-module-cpt.php:66
     145#: src/learning-module-cpt.php:67
     146#: src/learning-module-cpt.php:68
     147#: src/learning-module-cpt.php:71
     148msgid "New Lesson Page"
     149msgstr ""
     150
    147151#: src/learning-module-cpt.php:69
    148 msgid "New Lesson Page"
    149 msgstr ""
    150 
    151 #: src/learning-module-cpt.php:67
    152152msgid "Edit Lesson Page"
    153153msgstr ""
    154154
    155 #: src/learning-module-cpt.php:68
     155#: src/learning-module-cpt.php:70
    156156msgid "Update Lesson Page"
    157157msgstr ""
    158158
    159 #: src/learning-module-cpt.php:70
     159#: src/learning-module-cpt.php:72
    160160msgid "All Lesson Pages"
    161161msgstr ""
    162162
    163 #: src/learning-module-cpt.php:71
     163#: src/learning-module-cpt.php:73
    164164msgid "View Lesson Page"
    165165msgstr ""
    166166
    167 #: src/learning-module-cpt.php:72
     167#: src/learning-module-cpt.php:74
    168168msgid "View Lesson Pages"
    169169msgstr ""
    170170
    171 #: src/learning-module-cpt.php:73
     171#: src/learning-module-cpt.php:75
    172172msgid "Lesson Page Attributes"
    173173msgstr ""
    174174
    175 #: src/learning-module-cpt.php:74
     175#: src/learning-module-cpt.php:76
    176176msgid "Search Lesson Pages"
    177177msgstr ""
    178178
    179 #: src/learning-module-cpt.php:75
     179#: src/learning-module-cpt.php:77
    180180msgid "No Lesson Pages found"
    181181msgstr ""
    182182
    183 #: src/learning-module-cpt.php:76
     183#: src/learning-module-cpt.php:78
    184184msgid "No Lessons Pages found in Trash"
    185185msgstr ""
    186186
    187 #: src/learning-module-cpt.php:77
     187#: src/learning-module-cpt.php:79
    188188msgid "Lesson Page Archives"
    189189msgstr ""
    190190
    191 #: src/learning-module-cpt.php:78
     191#: src/learning-module-cpt.php:80
    192192msgid "Parent Lesson Page:"
    193193msgstr ""
    194194
    195 #: src/learning-module-cpt.php:87
     195#: src/learning-module-cpt.php:89
    196196msgid "lesson"
    197197msgstr ""
    198198
    199 #: src/learning-module-cpt.php:89
     199#: src/learning-module-cpt.php:91
    200200msgid "Holds our Lessons"
    201 msgstr ""
    202 
    203 #: build/blocks/blocks.build.js:1
    204 #: src/components/QuestionHeader.js:7
    205 msgid "Question"
    206 msgstr ""
    207 
    208 #: build/blocks/blocks.build.js:1
    209 #: src/components/QuestionHeader.js:8
    210 msgid "Question Header"
    211 msgstr ""
    212 
    213 #: build/blocks/blocks.build.js:1
    214 #: src/components/QuestionHeader.js:11
    215 msgid "Enter Question Header"
    216201msgstr ""
    217202
     
    331316msgid "Enter Incorrect Feedback"
    332317msgstr ""
     318
     319#: src/components/QuestionHeader.js:7
     320msgid "Question"
     321msgstr ""
     322
     323#: src/components/QuestionHeader.js:8
     324msgid "Question Header"
     325msgstr ""
     326
     327#: src/components/QuestionHeader.js:11
     328msgid "Enter Question Header"
     329msgstr ""
  • bu-learning-blocks/tags/1.1.4/package.json

    r2518565 r2758670  
    11{
    22    "name": "bu-learning-blocks",
    3     "version": "1.1.3",
     3    "version": "1.1.4",
    44    "private": true,
    55    "scripts": {
  • bu-learning-blocks/tags/1.1.4/readme.txt

    r2518565 r2758670  
    33Tags: learning, teaching, education, online courses, boston university, bu
    44Requires at least: 5.3.2
    5 Tested up to: 5.7
    6 Stable tag: 1.1.3
     5Tested up to: 6.0
     6Stable tag: 1.1.4
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 1.1.4 =
     43* Patch issues with 5.8 and 5.9 compatibility
     44
    4245= 1.1.3 =
    4346* Add Github publish action
  • bu-learning-blocks/tags/1.1.4/src/init.php

    r2518565 r2758670  
    2727require_once BULB_PLUGIN_DIR_PATH . 'src/blocks/bulb-mat/index.php';
    2828
    29 
     29// To support versions before and after 5.8, check the WordPress version and use the newer 'block_categories_all' tag if it's 5.8 or newer.
     30$block_category_filter = ( version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) ? 'block_categories_all' : 'block_categories';
    3031
    3132// Add BULB custom block category.
    3233add_filter(
    33     'block_categories',
     34    $block_category_filter,
    3435    function( $categories, $post ) {
    3536        return array_merge(
  • bu-learning-blocks/tags/1.1.4/src/learning-module-cpt.php

    r2518565 r2758670  
    2525        'parent_item_colon'          => __( 'Parent Lesson:', 'bu-learning-blocks' ),
    2626        'new_item_name'              => __( 'New Lesson Name', 'bu-learning-blocks' ),
    27         'add_new_item'               => __( 'Create Lesson', 'bu-learning-blocks' ),
     27        'add_new_item'               => __( 'Include in Lesson (start typing name of Lesson)', 'bu-learning-blocks' ),
    2828        'edit_item'                  => __( 'Edit Lesson', 'bu-learning-blocks' ),
    2929        'update_item'                => __( 'Update Lesson', 'bu-learning-blocks' ),
     
    229229
    230230/**
    231  * Load script to customize the taxonomy menu in the lesson page editor.
     231 * Loads a script to customize the bu-courses taxonomy label.
     232 *
     233 * This used to modify the label of the taxonomy panel in the block editor.  Changes in the block editor made this
     234 * much more difficult, so now the default label is the string that is used in the block editor.  This script
     235 * customizes the taxonomy page instead, to what the default label used to be.
     236 *
     237 * Activated by the 'bulb-courses_add_form_fields' action, which is fired when the bu-courses taxonomy form is loaded.
    232238 *
    233239 * @since 0.0.7
    234  */
    235 function bulb_add_admin_scripts() {
     240 *
     241 * @param string $hook_suffix The name of the hook that was activated.
     242 */
     243function bulb_add_admin_scripts( $hook_suffix ) {
     244    // Double check that we're on the bulb taxonomy page, and bail if not.
     245    if ( 'bulb-courses' !== $hook_suffix ) {
     246        return;
     247    }
     248
     249    // If we are on the bulb taxonomy page, enqueue the script to customize the label.
    236250    wp_enqueue_script(
    237         'customize_tax_panel',
    238         BULB_PLUGIN_URL . 'src/customize_tax_panel.js',
     251        'customize_tax_label',
     252        BULB_PLUGIN_URL . 'src/customize_tax_label.js',
    239253        array(),
    240         filemtime( plugin_dir_path( __DIR__ ) . 'src/customize_tax_panel.js' ), // Gets file modification time for cache busting.
     254        filemtime( plugin_dir_path( __DIR__ ) . 'src/customize_tax_label.js' ), // Gets file modification time for cache busting.
    241255        true // Enqueue the script in the footer.
    242256    );
    243257}
    244 add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\bulb_add_admin_scripts' );
     258add_action( 'bulb-courses_add_form_fields', __NAMESPACE__ . '\bulb_add_admin_scripts' );
  • bu-learning-blocks/trunk/bu-learning-blocks.php

    r2518565 r2758670  
    1010 * Text Domain: bu-learning-blocks
    1111 * Domain Path: /languages
    12  * Version: 1.1.3
     12 * Version: 1.1.4
    1313 * License: GPL2+
    1414 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
  • bu-learning-blocks/trunk/languages/bu-learning-blocks.pot

    r2518565 r2758670  
    1 # Copyright (C) 2021 Boston University: Web Applications
    2 # This file is distributed under the same license as the BU Learning Blocks plugin.
     1# Copyright (C) 2022 Boston University: Web Applications
     2# This file is distributed under the GPL2+.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: BU Learning Blocks v1.1.3\n"
     5"Project-Id-Version: BU Learning Blocks 1.1.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bu-learning-blocks\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2021-03-09T22:14:20+00:00\n"
     12"POT-Creation-Date: 2022-07-18T17:16:56-04:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.4.0\n"
     14"X-Generator: WP-CLI 2.6.0\n"
    1515"X-Domain: bu-learning-blocks\n"
    1616
     
    3535msgstr ""
    3636
    37 #: bu-learning-blocks.php:39
     37#: bu-learning-blocks.php:41
    3838msgid "BULB Error: BU Learning Blocks requires either WordPress 5.0.0, or the Gutenberg plugin to be installed and activated on any version previous to 5.0.0."
    3939msgstr ""
    4040
    41 #: bu-learning-blocks.php:42
     41#: bu-learning-blocks.php:44
    4242msgid "Please install and activate the Gutenberg plugin to use BU Learning Blocks."
    4343msgstr ""
    4444
    45 #: src/init.php:38
     45#: src/init.php:41
    4646#: src/blocks/bulb-cn/index.js:22
    4747#: src/blocks/bulb-fitb/index.js:22
     
    5353msgstr ""
    5454
    55 #: src/init.php:101
     55#: src/init.php:104
    5656msgid "<strong>Welcome to BU Learning Blocks</strong>"
    5757msgstr ""
    5858
    59 #: src/init.php:109
     59#: src/init.php:112
    6060msgid "Install Blocks and Pages"
    6161msgstr ""
    6262
    63 #: src/init.php:115
     63#: src/init.php:118
    6464msgid "Install Blocks Only"
    6565msgstr ""
    6666
    67 #: src/learning-module-cpt.php:17
     67#: src/learning-module-cpt.php:19
    6868msgctxt "Taxonomy General Name"
    6969msgid "Lessons"
    7070msgstr ""
    7171
    72 #: src/learning-module-cpt.php:18
     72#: src/learning-module-cpt.php:20
    7373msgctxt "Taxonomy Singular Name"
    7474msgid "Lesson"
    7575msgstr ""
    7676
    77 #: src/learning-module-cpt.php:19
     77#: src/learning-module-cpt.php:21
    7878msgid "Lessons"
    7979msgstr ""
    8080
    81 #: src/learning-module-cpt.php:20
     81#: src/learning-module-cpt.php:22
    8282msgid "All Lessons"
    8383msgstr ""
    8484
    85 #: src/learning-module-cpt.php:21
     85#: src/learning-module-cpt.php:23
    8686msgid "View Lesson"
    8787msgstr ""
    8888
    89 #: src/learning-module-cpt.php:22
     89#: src/learning-module-cpt.php:24
    9090msgid "Parent Lesson"
    9191msgstr ""
    9292
    93 #: src/learning-module-cpt.php:23
     93#: src/learning-module-cpt.php:25
    9494msgid "Parent Lesson:"
    9595msgstr ""
    9696
    97 #: src/learning-module-cpt.php:24
     97#: src/learning-module-cpt.php:26
    9898msgid "New Lesson Name"
    9999msgstr ""
    100100
    101 #: src/learning-module-cpt.php:25
    102 msgid "Create Lesson"
    103 msgstr ""
    104 
    105 #: src/learning-module-cpt.php:26
     101#: src/learning-module-cpt.php:27
     102msgid "Include in Lesson (start typing name of Lesson)"
     103msgstr ""
     104
     105#: src/learning-module-cpt.php:28
    106106msgid "Edit Lesson"
    107107msgstr ""
    108108
    109 #: src/learning-module-cpt.php:27
     109#: src/learning-module-cpt.php:29
    110110msgid "Update Lesson"
    111111msgstr ""
    112112
    113 #: src/learning-module-cpt.php:28
     113#: src/learning-module-cpt.php:30
    114114msgid "Separate lessons with commas"
    115115msgstr ""
    116116
    117 #: src/learning-module-cpt.php:29
     117#: src/learning-module-cpt.php:31
    118118msgid "Search Lessons"
    119119msgstr ""
    120120
    121 #: src/learning-module-cpt.php:30
     121#: src/learning-module-cpt.php:32
    122122msgid "Add or remove lessons"
    123123msgstr ""
    124124
    125 #: src/learning-module-cpt.php:31
     125#: src/learning-module-cpt.php:33
    126126msgid "Choose from the most used lessons"
    127127msgstr ""
    128128
    129 #: src/learning-module-cpt.php:32
     129#: src/learning-module-cpt.php:34
    130130msgid "Not Found"
    131131msgstr ""
    132132
    133 #: src/learning-module-cpt.php:62
     133#: src/learning-module-cpt.php:64
    134134msgid "Lesson Pages"
    135135msgstr ""
    136136
    137 #: src/learning-module-cpt.php:63
     137#: src/learning-module-cpt.php:65
    138138msgid "Lesson Page"
    139139msgstr ""
    140140
    141 #: src/learning-module-cpt.php:64
     141#: src/learning-module-cpt.php:66
    142142msgid "BULB Lessons"
    143143msgstr ""
    144144
    145 #: src/learning-module-cpt.php:65
    146 #: src/learning-module-cpt.php:66
     145#: src/learning-module-cpt.php:67
     146#: src/learning-module-cpt.php:68
     147#: src/learning-module-cpt.php:71
     148msgid "New Lesson Page"
     149msgstr ""
     150
    147151#: src/learning-module-cpt.php:69
    148 msgid "New Lesson Page"
    149 msgstr ""
    150 
    151 #: src/learning-module-cpt.php:67
    152152msgid "Edit Lesson Page"
    153153msgstr ""
    154154
    155 #: src/learning-module-cpt.php:68
     155#: src/learning-module-cpt.php:70
    156156msgid "Update Lesson Page"
    157157msgstr ""
    158158
    159 #: src/learning-module-cpt.php:70
     159#: src/learning-module-cpt.php:72
    160160msgid "All Lesson Pages"
    161161msgstr ""
    162162
    163 #: src/learning-module-cpt.php:71
     163#: src/learning-module-cpt.php:73
    164164msgid "View Lesson Page"
    165165msgstr ""
    166166
    167 #: src/learning-module-cpt.php:72
     167#: src/learning-module-cpt.php:74
    168168msgid "View Lesson Pages"
    169169msgstr ""
    170170
    171 #: src/learning-module-cpt.php:73
     171#: src/learning-module-cpt.php:75
    172172msgid "Lesson Page Attributes"
    173173msgstr ""
    174174
    175 #: src/learning-module-cpt.php:74
     175#: src/learning-module-cpt.php:76
    176176msgid "Search Lesson Pages"
    177177msgstr ""
    178178
    179 #: src/learning-module-cpt.php:75
     179#: src/learning-module-cpt.php:77
    180180msgid "No Lesson Pages found"
    181181msgstr ""
    182182
    183 #: src/learning-module-cpt.php:76
     183#: src/learning-module-cpt.php:78
    184184msgid "No Lessons Pages found in Trash"
    185185msgstr ""
    186186
    187 #: src/learning-module-cpt.php:77
     187#: src/learning-module-cpt.php:79
    188188msgid "Lesson Page Archives"
    189189msgstr ""
    190190
    191 #: src/learning-module-cpt.php:78
     191#: src/learning-module-cpt.php:80
    192192msgid "Parent Lesson Page:"
    193193msgstr ""
    194194
    195 #: src/learning-module-cpt.php:87
     195#: src/learning-module-cpt.php:89
    196196msgid "lesson"
    197197msgstr ""
    198198
    199 #: src/learning-module-cpt.php:89
     199#: src/learning-module-cpt.php:91
    200200msgid "Holds our Lessons"
    201 msgstr ""
    202 
    203 #: build/blocks/blocks.build.js:1
    204 #: src/components/QuestionHeader.js:7
    205 msgid "Question"
    206 msgstr ""
    207 
    208 #: build/blocks/blocks.build.js:1
    209 #: src/components/QuestionHeader.js:8
    210 msgid "Question Header"
    211 msgstr ""
    212 
    213 #: build/blocks/blocks.build.js:1
    214 #: src/components/QuestionHeader.js:11
    215 msgid "Enter Question Header"
    216201msgstr ""
    217202
     
    331316msgid "Enter Incorrect Feedback"
    332317msgstr ""
     318
     319#: src/components/QuestionHeader.js:7
     320msgid "Question"
     321msgstr ""
     322
     323#: src/components/QuestionHeader.js:8
     324msgid "Question Header"
     325msgstr ""
     326
     327#: src/components/QuestionHeader.js:11
     328msgid "Enter Question Header"
     329msgstr ""
  • bu-learning-blocks/trunk/package.json

    r2518565 r2758670  
    11{
    22    "name": "bu-learning-blocks",
    3     "version": "1.1.3",
     3    "version": "1.1.4",
    44    "private": true,
    55    "scripts": {
  • bu-learning-blocks/trunk/readme.txt

    r2518565 r2758670  
    33Tags: learning, teaching, education, online courses, boston university, bu
    44Requires at least: 5.3.2
    5 Tested up to: 5.7
    6 Stable tag: 1.1.3
     5Tested up to: 6.0
     6Stable tag: 1.1.4
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 1.1.4 =
     43* Patch issues with 5.8 and 5.9 compatibility
     44
    4245= 1.1.3 =
    4346* Add Github publish action
  • bu-learning-blocks/trunk/src/init.php

    r2518565 r2758670  
    2727require_once BULB_PLUGIN_DIR_PATH . 'src/blocks/bulb-mat/index.php';
    2828
    29 
     29// To support versions before and after 5.8, check the WordPress version and use the newer 'block_categories_all' tag if it's 5.8 or newer.
     30$block_category_filter = ( version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) ? 'block_categories_all' : 'block_categories';
    3031
    3132// Add BULB custom block category.
    3233add_filter(
    33     'block_categories',
     34    $block_category_filter,
    3435    function( $categories, $post ) {
    3536        return array_merge(
  • bu-learning-blocks/trunk/src/learning-module-cpt.php

    r2518565 r2758670  
    2525        'parent_item_colon'          => __( 'Parent Lesson:', 'bu-learning-blocks' ),
    2626        'new_item_name'              => __( 'New Lesson Name', 'bu-learning-blocks' ),
    27         'add_new_item'               => __( 'Create Lesson', 'bu-learning-blocks' ),
     27        'add_new_item'               => __( 'Include in Lesson (start typing name of Lesson)', 'bu-learning-blocks' ),
    2828        'edit_item'                  => __( 'Edit Lesson', 'bu-learning-blocks' ),
    2929        'update_item'                => __( 'Update Lesson', 'bu-learning-blocks' ),
     
    229229
    230230/**
    231  * Load script to customize the taxonomy menu in the lesson page editor.
     231 * Loads a script to customize the bu-courses taxonomy label.
     232 *
     233 * This used to modify the label of the taxonomy panel in the block editor.  Changes in the block editor made this
     234 * much more difficult, so now the default label is the string that is used in the block editor.  This script
     235 * customizes the taxonomy page instead, to what the default label used to be.
     236 *
     237 * Activated by the 'bulb-courses_add_form_fields' action, which is fired when the bu-courses taxonomy form is loaded.
    232238 *
    233239 * @since 0.0.7
    234  */
    235 function bulb_add_admin_scripts() {
     240 *
     241 * @param string $hook_suffix The name of the hook that was activated.
     242 */
     243function bulb_add_admin_scripts( $hook_suffix ) {
     244    // Double check that we're on the bulb taxonomy page, and bail if not.
     245    if ( 'bulb-courses' !== $hook_suffix ) {
     246        return;
     247    }
     248
     249    // If we are on the bulb taxonomy page, enqueue the script to customize the label.
    236250    wp_enqueue_script(
    237         'customize_tax_panel',
    238         BULB_PLUGIN_URL . 'src/customize_tax_panel.js',
     251        'customize_tax_label',
     252        BULB_PLUGIN_URL . 'src/customize_tax_label.js',
    239253        array(),
    240         filemtime( plugin_dir_path( __DIR__ ) . 'src/customize_tax_panel.js' ), // Gets file modification time for cache busting.
     254        filemtime( plugin_dir_path( __DIR__ ) . 'src/customize_tax_label.js' ), // Gets file modification time for cache busting.
    241255        true // Enqueue the script in the footer.
    242256    );
    243257}
    244 add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\bulb_add_admin_scripts' );
     258add_action( 'bulb-courses_add_form_fields', __NAMESPACE__ . '\bulb_add_admin_scripts' );
Note: See TracChangeset for help on using the changeset viewer.