Changeset 1799137
- Timestamp:
- 01/08/2018 03:55:35 PM (8 years ago)
- Location:
- minimum-viable-sharing-meta
- Files:
-
- 23 added
- 5 edited
-
tags/0.0.4 (added)
-
tags/0.0.4/CHANGES.md (added)
-
tags/0.0.4/LICENSE (added)
-
tags/0.0.4/README.md (added)
-
tags/0.0.4/assets (added)
-
tags/0.0.4/assets/css (added)
-
tags/0.0.4/assets/css/minshare-meta-admin.css (added)
-
tags/0.0.4/assets/css/minshare-meta-admin.min.css (added)
-
tags/0.0.4/assets/js (added)
-
tags/0.0.4/assets/js/minshare-meta-admin.js (added)
-
tags/0.0.4/assets/js/minshare-meta-admin.min.js (added)
-
tags/0.0.4/includes (added)
-
tags/0.0.4/includes/class-admin.php (added)
-
tags/0.0.4/includes/class-display.php (added)
-
tags/0.0.4/includes/class-fields.php (added)
-
tags/0.0.4/includes/class-helper.php (added)
-
tags/0.0.4/includes/class-post-meta.php (added)
-
tags/0.0.4/includes/class-settings.php (added)
-
tags/0.0.4/includes/install.php (added)
-
tags/0.0.4/includes/uninstall.php (added)
-
tags/0.0.4/index.php (added)
-
tags/0.0.4/minimum-viable-sharing-meta.php (added)
-
tags/0.0.4/readme.txt (added)
-
trunk/CHANGES.md (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/includes/class-admin.php (modified) (1 diff)
-
trunk/minimum-viable-sharing-meta.php (modified) (6 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
minimum-viable-sharing-meta/trunk/CHANGES.md
r1796510 r1799137 1 #### Version 0.0.1 - 2017/12/28 2 * initial release 1 2 #### Version 0.0.4 - 2018/01/08 3 * fixed incorrect admin file loading. props @raajtram. 4 * added metadata conversion for the Genesis theme framework. 5 * added `minshare_meta_localized_js_args` filter for localized args. 6 * added post meta removal on plugin deleting. 7 8 #### Version 0.0.3 - 2018/01/02 9 * added metadata conversion for Yoast SEO and All In One SEO Pack. 3 10 4 11 #### Version 0.0.2 - 2018/01/01 … … 7 14 * added the `MINSHARE_META_POSTKEY` and `MINSHARE_META_OPTIONKEY` constants to use in the entire plugin. 8 15 9 #### Version 0.0. 3 - 2018/01/0210 * added metadata conversion for Yoast SEO and All In One SEO Pack.16 #### Version 0.0.1 - 2017/12/28 17 * initial release -
minimum-viable-sharing-meta/trunk/README.md
r1795465 r1799137 11 11 After installing and activating the plugin, navigate to the "Sharing Meta Tags" menu item underneath the "Appearance" main tab. Update the fields with the data you'd like. You can also edit them in individually on posts, pages, or other enabled post types. 12 12 13 ## Converting Data 14 15 There are buttons at the bottom of the main settings page to copy any metadata from Yoast SEO or All In One SEO Pack. The `minshare_meta_plugin_convert_keys` filter allows you to modify which plugins are checked for. 16 13 17 ## Changelog 14 18 See [CHANGES.md](CHANGES.md). -
minimum-viable-sharing-meta/trunk/includes/class-admin.php
r1796510 r1799137 109 109 110 110 // Set our two file names. 111 $file_c = MINSHARE_META_ASSETS_URL . '/css/' . $name. '.css';112 $file_j = MINSHARE_META_ASSETS_URL . '/ css/' . $name . '.css';111 $file_c = MINSHARE_META_ASSETS_URL . '/css/' . esc_attr( $name ) . '.css'; 112 $file_j = MINSHARE_META_ASSETS_URL . '/js/' . esc_attr( $name ) . '.js'; 113 113 114 114 // Load our CSS file. 115 115 wp_enqueue_style( 'minshare-meta-admin', esc_url( $file_c ), false, $vers, 'all' ); 116 117 // Set our array of localized values. 118 $local_user = apply_filters( 'minshare_meta_localized_js_args', array() ); 119 $localized = wp_parse_args( $local_user, array( 'maxTitle' => minshare_meta()->max_title_length(), 'maxDesc' => minshare_meta()->max_description_length() ) ); 116 120 117 121 // And our JS. 118 122 wp_enqueue_media(); 119 123 wp_enqueue_script( 'minshare-meta-admin', esc_url( $file_j ), array( 'jquery' ), $vers, true ); 120 wp_localize_script( 'minshare-meta-admin', 'minshareMeta', array( 121 'maxTitle' => minshare_meta()->max_title_length(), 122 'maxDesc' => minshare_meta()->max_description_length(), 123 )); 124 wp_localize_script( 'minshare-meta-admin', 'minshareMeta', $localized ); 124 125 125 126 // And our action to hook on the end of the script loading. -
minimum-viable-sharing-meta/trunk/minimum-viable-sharing-meta.php
r1796510 r1799137 4 4 * Plugin URI: https://github.com/norcross/minimum-viable-sharing-meta 5 5 * Description: Just the minimum required meta tags to work. 6 * Version: 0.0. 36 * Version: 0.0.4 7 7 * Author: Andrew Norcross 8 8 * Author URI: http://andrewnorcross.com … … 39 39 * @var string 40 40 */ 41 private $version = '0.0. 3';41 private $version = '0.0.4'; 42 42 43 43 /** … … 207 207 208 208 /** 209 * Filters the languages directory path to use for LiquidWebKB.209 * Filters the languages directory path to use for MinimumViableMeta. 210 210 * 211 211 * @param string $lang_dir The languages directory path. … … 224 224 225 225 /** 226 * Defines the plugin language locale used in LiquidWebKB.226 * Defines the plugin language locale used in MinimumViableMeta. 227 227 * 228 228 * @var $get_locale The locale to use. Uses get_user_locale()` in WordPress 4.7 or greater, … … 234 234 // Setup paths to current locale file. 235 235 $mofile_local = $lang_dir . $mofile; 236 $mofile_global = WP_LANG_DIR . '/ liquidweb-kb-admin/' . $mofile;236 $mofile_global = WP_LANG_DIR . '/minimum-viable-sharing-meta/' . $mofile; 237 237 238 238 if ( file_exists( $mofile_global ) ) { 239 // Look in global /wp-content/languages/ liquidweb-kb-admin/ folder239 // Look in global /wp-content/languages/minimum-viable-sharing-meta/ folder 240 240 load_textdomain( 'minimum-viable-sharing-meta', $mofile_global ); 241 241 } elseif ( file_exists( $mofile_local ) ) { 242 // Look in local /wp-content/plugins/ liquidweb-kb-admin/languages/ folder242 // Look in local /wp-content/plugins/minimum-viable-sharing-meta/languages/ folder 243 243 load_textdomain( 'minimum-viable-sharing-meta', $mofile_local ); 244 244 } else { … … 439 439 'title' => '_aioseop_title', 440 440 'desc' => '_aioseop_description', 441 ), 442 'genesis' => array( 443 'name' => __( 'Genesis Theme Framework', 'minimum-viable-sharing-meta' ), 444 'title' => '_genesis_title', 445 'desc' => '_genesis_description', 441 446 ), 442 447 ); -
minimum-viable-sharing-meta/trunk/readme.txt
r1796510 r1799137 6 6 Requires at least: 4.9 7 7 Tested up to: 4.9 8 Stable tag: 0.0. 38 Stable tag: 0.0.4 9 9 Requires PHP: 5.6 10 10 License: MIT … … 55 55 == Changelog == 56 56 57 = 0.0.1 - 2017/12/28 = 58 * First release! 57 = 0.0.4 - 2018/01/08 = 58 * fixed incorrect admin file loading. props @raajtram. 59 * added metadata conversion for the Genesis theme framework. 60 * added `minshare_meta_localized_js_args` filter for localized args. 61 * added post meta removal on plugin deleting. 62 63 64 = 0.0.3 - 2018/01/02 = 65 * added metadata conversion for Yoast SEO and All In One SEO Pack. 59 66 60 67 … … 65 72 66 73 67 = 0.0.3 - 2018/01/02 = 68 * added metadata conversion for Yoast SEO and All In One SEO Pack. 74 = 0.0.1 - 2017/12/28 = 75 * First release! 76 69 77 70 78 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.