Changeset 1150405
- Timestamp:
- 04/30/2015 06:30:31 PM (11 years ago)
- Location:
- voce-seo/trunk
- Files:
-
- 6 edited
-
admin/admin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (3 diffs)
-
vendor/composer/autoload_real.php (modified) (4 diffs)
-
voce-seo.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
voce-seo/trunk/admin/admin.php
r952310 r1150405 215 215 add_action( 'create_' . $taxonomy, array( __CLASS__, 'save_meta' ), 10, 2 ); 216 216 } 217 add_action( 'split_shared_term', array( __CLASS__, 'term_split_handling' ), 10, 4 ); 217 218 } 218 219 … … 265 266 } 266 267 268 /** 269 * Handling the splitting of terms with WordPress 4.2 270 * @param type $old_term_id 271 * @param type $new_term_id 272 * @param type $term_taxonomy_id 273 * @param type $taxonomy 274 */ 275 public static function term_split_handling( $old_term_id, $new_term_id, $term_taxonomy_id, $taxonomy ) { 276 $vseo_term_meta = get_option( self::$option_key ); 277 278 if ( isset( $vseo_term_meta[$taxonomy . '_' . $old_term_id] ) ) { 279 $vseo_term_meta[$taxonomy . '_' . $new_term_id] = $vseo_term_meta[$taxonomy . '_' . $old_term_id]; 280 unset( $vseo_term_meta[$taxonomy . '_' . $old_term_id] ); 281 update_option( self::$option_key, $vseo_term_meta ); 282 } 283 } 284 267 285 } -
voce-seo/trunk/readme.txt
r1052871 r1150405 3 3 Tags: SEO 4 4 Requires at least: 3.7.0 5 Tested up to: 4. 16 Stable tag: 0. 4.05 Tested up to: 4.2.1 6 Stable tag: 0.5.0 7 7 License: GPLv2 or later 8 8 … … 32 32 33 33 == Changelog == 34 35 = Version 0.5.0 = 36 * Testing with WordPress 4.2.1 37 * Adding handling to vseo meta for term splitting 34 38 35 39 = Version 0.4.0 = -
voce-seo/trunk/vendor/autoload.php
r1052871 r1150405 5 5 require_once __DIR__ . '/composer' . '/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit7 ddae590bd04274a3c9923dcc74c444d::getLoader();7 return ComposerAutoloaderInit7eff6626ebe9a725b9bf9bd18275a7a7::getLoader(); -
voce-seo/trunk/vendor/composer/ClassLoader.php
r1052871 r1150405 54 54 private $useIncludePath = false; 55 55 private $classMap = array(); 56 57 private $classMapAuthoritative = false; 56 58 57 59 public function getPrefixes() … … 250 252 251 253 /** 254 * Turns off searching the prefix and fallback directories for classes 255 * that have not been registered with the class map. 256 * 257 * @param bool $classMapAuthoritative 258 */ 259 public function setClassMapAuthoritative($classMapAuthoritative) 260 { 261 $this->classMapAuthoritative = $classMapAuthoritative; 262 } 263 264 /** 265 * Should class lookup fail if not found in the current class map? 266 * 267 * @return bool 268 */ 269 public function isClassMapAuthoritative() 270 { 271 return $this->classMapAuthoritative; 272 } 273 274 /** 252 275 * Registers this instance as an autoloader. 253 276 * … … 299 322 if (isset($this->classMap[$class])) { 300 323 return $this->classMap[$class]; 324 } 325 if ($this->classMapAuthoritative) { 326 return false; 301 327 } 302 328 -
voce-seo/trunk/vendor/composer/autoload_real.php
r1052871 r1150405 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit7 ddae590bd04274a3c9923dcc74c444d5 class ComposerAutoloaderInit7eff6626ebe9a725b9bf9bd18275a7a7 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit7 ddae590bd04274a3c9923dcc74c444d', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit7eff6626ebe9a725b9bf9bd18275a7a7', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit7 ddae590bd04274a3c9923dcc74c444d', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit7eff6626ebe9a725b9bf9bd18275a7a7', 'loadClassLoader')); 25 25 26 26 $map = require __DIR__ . '/autoload_namespaces.php'; … … 43 43 $includeFiles = require __DIR__ . '/autoload_files.php'; 44 44 foreach ($includeFiles as $file) { 45 composerRequire7 ddae590bd04274a3c9923dcc74c444d($file);45 composerRequire7eff6626ebe9a725b9bf9bd18275a7a7($file); 46 46 } 47 47 … … 50 50 } 51 51 52 function composerRequire7 ddae590bd04274a3c9923dcc74c444d($file)52 function composerRequire7eff6626ebe9a725b9bf9bd18275a7a7($file) 53 53 { 54 54 require $file; -
voce-seo/trunk/voce-seo.php
r1052871 r1150405 2 2 /* 3 3 Plugin Name: Voce SEO 4 Version: 0. 4.04 Version: 0.5.0 5 5 Plugin URI: http://voceconnect.com/ 6 6 Description: An SEO plugin taking things from both WP SEO and All in One SEO but leaving out the VIP incompatible pieces. … … 11 11 class VSEO { 12 12 13 const DB_VERSION = '0. 1.1';13 const DB_VERSION = '0.2'; 14 14 15 15 public static function init() { … … 139 139 Voce_Settings_API::GetInstance()->set_setting('robots-nodp', 'vseo-general', true); 140 140 Voce_Settings_API::GetInstance()->set_setting('robots-noydir', 'vseo-general', true); 141 } 142 143 if ( $db_version < 0.2 && function_exists( 'wp_get_split_term' ) ) { 144 $term_meta = $updated_term_meta = get_option( 'vseo_term_meta' ); 145 if ( is_array( $term_meta ) ) { 146 foreach( $term_meta as $taxonomy_term => $term_data ) { 147 $tax_term_arr = explode( '_', $taxonomy_term ); 148 if ( is_array( $tax_term_arr ) && !empty( $tax_term_arr ) ) { 149 $term_id = array_pop( $tax_term_arr ); 150 $taxonomy = implode( '_', $tax_term_arr ); 151 $new_term_id = wp_get_split_term( $term_id, $taxonomy ); 152 if ( $new_term_id !== false ) { 153 unset( $updated_term_meta[$taxonomy_term] ); 154 $updated_term_meta[sprintf( '%s_%s', $taxonomy, $new_term_id )] = $term_data; 155 } 156 } 157 } 158 update_option( 'vseo_term_meta', $updated_term_meta ); 159 } 141 160 } 142 161
Note: See TracChangeset
for help on using the changeset viewer.