Changeset 3095389
- Timestamp:
- 05/30/2024 11:02:26 PM (2 months ago)
- Location:
- media-library-assistant/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
media-library-assistant/trunk/includes/class-mla-core.php
r3093550 r3095389 31 31 * @var string 32 32 */ 33 const MLA_DEVELOPMENT_VERSION = '202405 27';33 const MLA_DEVELOPMENT_VERSION = '202405'; 34 34 35 35 /** -
media-library-assistant/trunk/includes/class-mla-data.php
r3024830 r3095389 1487 1487 foreach ($placeholders as $key => $value ) { 1488 1488 // Braces in the key must become brackets for template parsing 1489 1489 1490 $key = str_replace( '{', '[', str_replace( '}', ']', $key ) ); 1490 if ( isset( $markup_values[ $ key ] ) ) {1491 if ( isset( $markup_values[ $key ] ) ) { 1491 1492 continue; 1492 1493 } … … 1508 1509 } 1509 1510 1510 $markup_values[ $ key ] = self::mla_find_array_element( $value['value'], $item_metadata, $value['option'] );1511 $markup_values[ $key ] = self::mla_find_array_element( $value['value'], $item_metadata, $value['option'] ); 1511 1512 break; 1512 1513 case 'query': 1513 1514 if ( isset( $query ) && isset( $query[ $value['value'] ] ) ) { 1514 $markup_values[ $ key ] = $query[ $value['value'] ];1515 $markup_values[ $key ] = $query[ $value['value'] ]; 1515 1516 } else { 1516 $markup_values[ $ key ] = '';1517 $markup_values[ $key ] = ''; 1517 1518 } 1518 1519 … … 1554 1555 } // is_array 1555 1556 1556 $markup_values[ $ key ] = $text;1557 $markup_values[ $key ] = $text; 1557 1558 break; 1558 1559 case 'terms': … … 1561 1562 1562 1563 if ( false !== $text ) { 1563 $markup_values[ $ key ] = $text;1564 $markup_values[ $key ] = $text; 1564 1565 } 1565 1566 } … … 1573 1574 1574 1575 if ( false !== $text ) { 1575 $markup_values[ $ key ] = $text;1576 $markup_values[ $key ] = $text; 1576 1577 } 1577 1578 } … … 1585 1586 1586 1587 if ( false !== $text ) { 1587 $markup_values[ $ key ] = $text;1588 $markup_values[ $key ] = $text; 1588 1589 } 1589 1590 } … … 1592 1593 case 'custom': 1593 1594 if ( 0 < $post_id ) { 1594 $markup_values[ $ key ] = self::_expand_custom_field( $value, $post_id );1595 $markup_values[ $key ] = self::_expand_custom_field( $value, $post_id ); 1595 1596 } 1596 1597 … … 1600 1601 1601 1602 if ( 0 < $page_id ) { 1602 $markup_values[ $ key ] = self::_expand_custom_field( $value, $page_id );1603 $markup_values[ $key ] = self::_expand_custom_field( $value, $page_id ); 1603 1604 } 1604 1605 … … 1608 1609 1609 1610 if ( 0 < $parent_id ) { 1610 $markup_values[ $ key ] = self::_expand_custom_field( $value, $parent_id );1611 $markup_values[ $key ] = self::_expand_custom_field( $value, $parent_id ); 1611 1612 } 1612 1613 … … 1621 1622 } 1622 1623 1623 $markup_values[ $ key ] = self::mla_iptc_metadata_value( $value['value'], $attachment_metadata, $value['option'], $keep_existing );1624 $markup_values[ $key ] = self::mla_iptc_metadata_value( $value['value'], $attachment_metadata, $value['option'], $keep_existing ); 1624 1625 break; 1625 1626 case 'exif': … … 1634 1635 $record = self::mla_exif_metadata_value( $value['value'], $attachment_metadata, $value['option'], $keep_existing ); 1635 1636 if ( is_array( $record ) ) { 1636 $markup_values[ $ key ] = self::_process_field_level_array( $record, $value['option'], $keep_existing );1637 $markup_values[ $key ] = self::_process_field_level_array( $record, $value['option'], $keep_existing ); 1637 1638 } else { 1638 $markup_values[ $ key ] = $record;1639 $markup_values[ $key ] = $record; 1639 1640 } 1640 1641 … … 1649 1650 } 1650 1651 1651 $markup_values[ $ key ] = self::mla_xmp_metadata_value( $value['value'], $attachment_metadata['mla_xmp_metadata'], $value['option'], $keep_existing );1652 $markup_values[ $key ] = self::mla_xmp_metadata_value( $value['value'], $attachment_metadata['mla_xmp_metadata'], $value['option'], $keep_existing ); 1652 1653 break; 1653 1654 case 'id3': … … 1660 1661 } 1661 1662 1662 $markup_values[ $ key ] = self::mla_id3_metadata_value( $value['value'], $id3_metadata, $value['option'], $keep_existing );1663 $markup_values[ $key ] = self::mla_id3_metadata_value( $value['value'], $id3_metadata, $value['option'], $keep_existing ); 1663 1664 break; 1664 1665 case 'pdf': … … 1673 1674 $record = self::mla_pdf_metadata_value( $value['value'], $attachment_metadata ); 1674 1675 if ( is_array( $record ) ) { 1675 $markup_values[ $ key ] = self::_process_field_level_array( $record, $value['option'], $keep_existing );1676 $markup_values[ $key ] = self::_process_field_level_array( $record, $value['option'], $keep_existing ); 1676 1677 } else { 1677 $markup_values[ $ key ] = $record;1678 $markup_values[ $key ] = $record; 1678 1679 } 1679 1680 … … 1688 1689 } 1689 1690 1690 $markup_values[ $ key ] = self::mla_png_metadata_value( $value['value'], $attachment_metadata['mla_png_metadata'], $value['option'], $keep_existing );1691 $markup_values[ $key ] = self::mla_png_metadata_value( $value['value'], $attachment_metadata['mla_png_metadata'], $value['option'], $keep_existing ); 1691 1692 break; 1692 1693 case 'mso': … … 1699 1700 } 1700 1701 1701 $markup_values[ $ key ] = self::mla_mso_metadata_value( $value['value'], $attachment_metadata['mla_mso_metadata'], $value['option'], $keep_existing );1702 $markup_values[ $key ] = self::mla_mso_metadata_value( $value['value'], $attachment_metadata['mla_mso_metadata'], $value['option'], $keep_existing ); 1702 1703 break; 1703 1704 case 'matches': 1704 $markup_values[ $ key ] = isset( MLAData::$regex_matches[ $value['value'] ] ) ? MLAData::$regex_matches[ $value['value'] ] : '';1705 $markup_values[ $key ] = isset( MLAData::$regex_matches[ $value['value'] ] ) ? MLAData::$regex_matches[ $value['value'] ] : ''; 1705 1706 break; 1706 1707 case '': … … 1715 1716 'option' => $value['option'] ); // single, export, text for array values, e.g., alt_text 1716 1717 1717 $markup_values[ $ key ] = MLAShortcodes::mla_get_data_source( $post_id, 'single_attachment_mapping', $data_value );1718 $markup_values[ $key ] = MLAShortcodes::mla_get_data_source( $post_id, 'single_attachment_mapping', $data_value ); 1718 1719 } elseif ( isset( $markup_values[ $value['value'] ] ) ) { 1719 1720 // A standard element can have a format modifier, e.g., commas, attr 1720 $markup_values[ $ key ] = $markup_values[ $value['value'] ];1721 $markup_values[ $key ] = $markup_values[ $value['value'] ]; 1721 1722 } else { 1722 1723 $custom_value = apply_filters( 'mla_expand_custom_data_source', NULL, $key, $candidate, $value, $query, $markup_values, $post_id, $keep_existing, $default_option ); 1723 1724 if ( !is_null( $custom_value ) ) { 1724 $markup_values[ $ key ] = $custom_value;1725 $markup_values[ $key ] = $custom_value; 1725 1726 } 1726 1727 } … … 1730 1731 $custom_value = apply_filters( 'mla_expand_custom_prefix', NULL, $key, $value, $query, $markup_values, $post_id, $keep_existing, $default_option ); 1731 1732 if ( !is_null( $custom_value ) ) { 1732 $markup_values[ $ key ] = $custom_value;1733 $markup_values[ $key ] = $custom_value; 1733 1734 } 1734 1735 } // switch 1735 1736 1736 if ( isset( $markup_values[ $ key ] ) ) {1737 $markup_values[ $ key ] = self::mla_apply_field_level_format( $markup_values[ $key ], $value );1738 } // isset( $markup_values[ $ key ] )1737 if ( isset( $markup_values[ $key ] ) ) { 1738 $markup_values[ $key ], $value ); 1739 } // isset( $markup_values[ $key ] ) 1739 1740 } // foreach placeholder 1740 1741 -
media-library-assistant/trunk/index.php
r3093550 r3095389 16 16 Plugin Name: Media Library Assistant 17 17 Plugin URI: http://davidlingren.com/#two 18 Description: 202405 27Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.18 Description: 202405 Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit. 19 19 Version: 3.16 20 20 Requires at least: 4.1 -
media-library-assistant/trunk/readme.txt
r3093550 r3095389 189 189 190 190 = 3.17 = 191 191 192 * Fix: For the Media Manager Modal (popup) Window, the Enter key now triggers the MLA Enhanced Search Media function. 192 193 * Fix: When the Elementor page editor is active, buttons on the "Insert Media" popup window are now sized correctly.
Note: See TracChangeset
for help on using the changeset viewer.