stump-cli 0.1.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/README.md +9 -5
- data/bin/stump-cli +77 -27
- data/lib/{wp/.gitignore → .gitignore.erb} +2 -2
- data/lib/stump-cli/version.rb +1 -1
- data/lib/style.erb +11 -0
- data/stump-cli.gemspec +2 -0
- metadata +56 -1268
- data/lib/wp/Movefile-example +0 -62
- data/lib/wp/README.md +0 -25
- data/lib/wp/index.php +0 -17
- data/lib/wp/license.txt +0 -385
- data/lib/wp/readme.html +0 -96
- data/lib/wp/wp-activate.php +0 -131
- data/lib/wp/wp-admin/about.php +0 -193
- data/lib/wp/wp-admin/admin-ajax.php +0 -98
- data/lib/wp/wp-admin/admin-footer.php +0 -99
- data/lib/wp/wp-admin/admin-functions.php +0 -15
- data/lib/wp/wp-admin/admin-header.php +0 -243
- data/lib/wp/wp-admin/admin-post.php +0 -71
- data/lib/wp/wp-admin/admin.php +0 -347
- data/lib/wp/wp-admin/async-upload.php +0 -114
- data/lib/wp/wp-admin/comment.php +0 -299
- data/lib/wp/wp-admin/credits.php +0 -192
- data/lib/wp/wp-admin/css/about-rtl.css +0 -446
- data/lib/wp/wp-admin/css/about.css +0 -446
- data/lib/wp/wp-admin/css/admin-menu-rtl.css +0 -917
- data/lib/wp/wp-admin/css/admin-menu.css +0 -917
- data/lib/wp/wp-admin/css/color-picker-rtl.css +0 -127
- data/lib/wp/wp-admin/css/color-picker-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/color-picker.css +0 -127
- data/lib/wp/wp-admin/css/color-picker.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/_admin.scss +0 -525
- data/lib/wp/wp-admin/css/colors/_mixins.scss +0 -43
- data/lib/wp/wp-admin/css/colors/_variables.scss +0 -58
- data/lib/wp/wp-admin/css/colors/blue/colors-rtl.css +0 -341
- data/lib/wp/wp-admin/css/colors/blue/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/blue/colors.css +0 -341
- data/lib/wp/wp-admin/css/colors/blue/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/blue/colors.scss +0 -11
- data/lib/wp/wp-admin/css/colors/coffee/colors-rtl.css +0 -341
- data/lib/wp/wp-admin/css/colors/coffee/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/coffee/colors.css +0 -341
- data/lib/wp/wp-admin/css/colors/coffee/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/coffee/colors.scss +0 -7
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors-rtl.css +0 -341
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors.css +0 -341
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/ectoplasm/colors.scss +0 -8
- data/lib/wp/wp-admin/css/colors/light/colors-rtl.css +0 -349
- data/lib/wp/wp-admin/css/colors/light/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/light/colors.css +0 -349
- data/lib/wp/wp-admin/css/colors/light/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/light/colors.scss +0 -38
- data/lib/wp/wp-admin/css/colors/midnight/colors-rtl.css +0 -341
- data/lib/wp/wp-admin/css/colors/midnight/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/midnight/colors.css +0 -341
- data/lib/wp/wp-admin/css/colors/midnight/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/midnight/colors.scss +0 -5
- data/lib/wp/wp-admin/css/colors/ocean/colors-rtl.css +0 -341
- data/lib/wp/wp-admin/css/colors/ocean/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/ocean/colors.css +0 -341
- data/lib/wp/wp-admin/css/colors/ocean/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/ocean/colors.scss +0 -8
- data/lib/wp/wp-admin/css/colors/sunrise/colors-rtl.css +0 -341
- data/lib/wp/wp-admin/css/colors/sunrise/colors-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/sunrise/colors.css +0 -341
- data/lib/wp/wp-admin/css/colors/sunrise/colors.min.css +0 -1
- data/lib/wp/wp-admin/css/colors/sunrise/colors.scss +0 -6
- data/lib/wp/wp-admin/css/common-rtl.css +0 -3212
- data/lib/wp/wp-admin/css/common.css +0 -3212
- data/lib/wp/wp-admin/css/customize-controls-rtl.css +0 -889
- data/lib/wp/wp-admin/css/customize-controls-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/customize-controls.css +0 -889
- data/lib/wp/wp-admin/css/customize-controls.min.css +0 -1
- data/lib/wp/wp-admin/css/customize-widgets-rtl.css +0 -603
- data/lib/wp/wp-admin/css/customize-widgets-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/customize-widgets.css +0 -603
- data/lib/wp/wp-admin/css/customize-widgets.min.css +0 -1
- data/lib/wp/wp-admin/css/dashboard-rtl.css +0 -1116
- data/lib/wp/wp-admin/css/dashboard.css +0 -1116
- data/lib/wp/wp-admin/css/deprecated-media-rtl.css +0 -371
- data/lib/wp/wp-admin/css/deprecated-media-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/deprecated-media.css +0 -371
- data/lib/wp/wp-admin/css/deprecated-media.min.css +0 -1
- data/lib/wp/wp-admin/css/edit-rtl.css +0 -1501
- data/lib/wp/wp-admin/css/edit.css +0 -1501
- data/lib/wp/wp-admin/css/farbtastic-rtl.css +0 -41
- data/lib/wp/wp-admin/css/farbtastic.css +0 -41
- data/lib/wp/wp-admin/css/forms-rtl.css +0 -992
- data/lib/wp/wp-admin/css/forms.css +0 -992
- data/lib/wp/wp-admin/css/ie-rtl.css +0 -785
- data/lib/wp/wp-admin/css/ie-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/ie.css +0 -785
- data/lib/wp/wp-admin/css/ie.min.css +0 -1
- data/lib/wp/wp-admin/css/install-rtl.css +0 -389
- data/lib/wp/wp-admin/css/install-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/install.css +0 -389
- data/lib/wp/wp-admin/css/install.min.css +0 -1
- data/lib/wp/wp-admin/css/l10n-rtl.css +0 -101
- data/lib/wp/wp-admin/css/l10n.css +0 -101
- data/lib/wp/wp-admin/css/list-tables-rtl.css +0 -1875
- data/lib/wp/wp-admin/css/list-tables.css +0 -1875
- data/lib/wp/wp-admin/css/login-rtl.css +0 -269
- data/lib/wp/wp-admin/css/login-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/login.css +0 -269
- data/lib/wp/wp-admin/css/login.min.css +0 -1
- data/lib/wp/wp-admin/css/media-rtl.css +0 -1196
- data/lib/wp/wp-admin/css/media.css +0 -1196
- data/lib/wp/wp-admin/css/nav-menus-rtl.css +0 -857
- data/lib/wp/wp-admin/css/nav-menus.css +0 -857
- data/lib/wp/wp-admin/css/press-this-rtl.css +0 -458
- data/lib/wp/wp-admin/css/press-this.css +0 -458
- data/lib/wp/wp-admin/css/revisions-rtl.css +0 -574
- data/lib/wp/wp-admin/css/revisions.css +0 -574
- data/lib/wp/wp-admin/css/themes-rtl.css +0 -1732
- data/lib/wp/wp-admin/css/themes.css +0 -1732
- data/lib/wp/wp-admin/css/widgets-rtl.css +0 -577
- data/lib/wp/wp-admin/css/widgets.css +0 -577
- data/lib/wp/wp-admin/css/wp-admin-rtl.css +0 -14
- data/lib/wp/wp-admin/css/wp-admin-rtl.min.css +0 -1
- data/lib/wp/wp-admin/css/wp-admin.css +0 -14
- data/lib/wp/wp-admin/css/wp-admin.min.css +0 -1
- data/lib/wp/wp-admin/custom-background.php +0 -482
- data/lib/wp/wp-admin/custom-header.php +0 -1366
- data/lib/wp/wp-admin/customize.php +0 -278
- data/lib/wp/wp-admin/edit-comments.php +0 -254
- data/lib/wp/wp-admin/edit-form-advanced.php +0 -636
- data/lib/wp/wp-admin/edit-form-comment.php +0 -160
- data/lib/wp/wp-admin/edit-link-form.php +0 -150
- data/lib/wp/wp-admin/edit-tag-form.php +0 -204
- data/lib/wp/wp-admin/edit-tags.php +0 -591
- data/lib/wp/wp-admin/edit.php +0 -330
- data/lib/wp/wp-admin/export.php +0 -243
- data/lib/wp/wp-admin/freedoms.php +0 -57
- data/lib/wp/wp-admin/images/align-center-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-center.png +0 -0
- data/lib/wp/wp-admin/images/align-left-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-left.png +0 -0
- data/lib/wp/wp-admin/images/align-none-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-none.png +0 -0
- data/lib/wp/wp-admin/images/align-right-2x.png +0 -0
- data/lib/wp/wp-admin/images/align-right.png +0 -0
- data/lib/wp/wp-admin/images/arrows-2x.png +0 -0
- data/lib/wp/wp-admin/images/arrows.png +0 -0
- data/lib/wp/wp-admin/images/bubble_bg-2x.gif +0 -0
- data/lib/wp/wp-admin/images/bubble_bg.gif +0 -0
- data/lib/wp/wp-admin/images/comment-grey-bubble-2x.png +0 -0
- data/lib/wp/wp-admin/images/comment-grey-bubble.png +0 -0
- data/lib/wp/wp-admin/images/date-button-2x.gif +0 -0
- data/lib/wp/wp-admin/images/date-button.gif +0 -0
- data/lib/wp/wp-admin/images/generic.png +0 -0
- data/lib/wp/wp-admin/images/icons32-2x.png +0 -0
- data/lib/wp/wp-admin/images/icons32-vs-2x.png +0 -0
- data/lib/wp/wp-admin/images/icons32-vs.png +0 -0
- data/lib/wp/wp-admin/images/icons32.png +0 -0
- data/lib/wp/wp-admin/images/imgedit-icons-2x.png +0 -0
- data/lib/wp/wp-admin/images/imgedit-icons.png +0 -0
- data/lib/wp/wp-admin/images/list-2x.png +0 -0
- data/lib/wp/wp-admin/images/list.png +0 -0
- data/lib/wp/wp-admin/images/loading.gif +0 -0
- data/lib/wp/wp-admin/images/marker.png +0 -0
- data/lib/wp/wp-admin/images/mask.png +0 -0
- data/lib/wp/wp-admin/images/media-button-2x.png +0 -0
- data/lib/wp/wp-admin/images/media-button-image.gif +0 -0
- data/lib/wp/wp-admin/images/media-button-music.gif +0 -0
- data/lib/wp/wp-admin/images/media-button-other.gif +0 -0
- data/lib/wp/wp-admin/images/media-button-video.gif +0 -0
- data/lib/wp/wp-admin/images/media-button.png +0 -0
- data/lib/wp/wp-admin/images/menu-2x.png +0 -0
- data/lib/wp/wp-admin/images/menu-vs-2x.png +0 -0
- data/lib/wp/wp-admin/images/menu-vs.png +0 -0
- data/lib/wp/wp-admin/images/menu.png +0 -0
- data/lib/wp/wp-admin/images/no.png +0 -0
- data/lib/wp/wp-admin/images/post-formats-vs.png +0 -0
- data/lib/wp/wp-admin/images/post-formats.png +0 -0
- data/lib/wp/wp-admin/images/post-formats32-vs.png +0 -0
- data/lib/wp/wp-admin/images/post-formats32.png +0 -0
- data/lib/wp/wp-admin/images/resize-2x.gif +0 -0
- data/lib/wp/wp-admin/images/resize-rtl-2x.gif +0 -0
- data/lib/wp/wp-admin/images/resize-rtl.gif +0 -0
- data/lib/wp/wp-admin/images/resize.gif +0 -0
- data/lib/wp/wp-admin/images/se.png +0 -0
- data/lib/wp/wp-admin/images/sort-2x.gif +0 -0
- data/lib/wp/wp-admin/images/sort.gif +0 -0
- data/lib/wp/wp-admin/images/spinner-2x.gif +0 -0
- data/lib/wp/wp-admin/images/spinner.gif +0 -0
- data/lib/wp/wp-admin/images/stars-2x.png +0 -0
- data/lib/wp/wp-admin/images/stars.png +0 -0
- data/lib/wp/wp-admin/images/w-logo-blue.png +0 -0
- data/lib/wp/wp-admin/images/w-logo-white.png +0 -0
- data/lib/wp/wp-admin/images/wheel.png +0 -0
- data/lib/wp/wp-admin/images/wordpress-logo-white.svg +0 -1
- data/lib/wp/wp-admin/images/wordpress-logo.png +0 -0
- data/lib/wp/wp-admin/images/wordpress-logo.svg +0 -1
- data/lib/wp/wp-admin/images/wpspin_light-2x.gif +0 -0
- data/lib/wp/wp-admin/images/wpspin_light.gif +0 -0
- data/lib/wp/wp-admin/images/xit-2x.gif +0 -0
- data/lib/wp/wp-admin/images/xit.gif +0 -0
- data/lib/wp/wp-admin/images/yes.png +0 -0
- data/lib/wp/wp-admin/import.php +0 -132
- data/lib/wp/wp-admin/includes/admin.php +0 -74
- data/lib/wp/wp-admin/includes/ajax-actions.php +0 -2762
- data/lib/wp/wp-admin/includes/bookmark.php +0 -305
- data/lib/wp/wp-admin/includes/class-ftp-pure.php +0 -190
- data/lib/wp/wp-admin/includes/class-ftp-sockets.php +0 -250
- data/lib/wp/wp-admin/includes/class-ftp.php +0 -907
- data/lib/wp/wp-admin/includes/class-pclzip.php +0 -5687
- data/lib/wp/wp-admin/includes/class-wp-comments-list-table.php +0 -637
- data/lib/wp/wp-admin/includes/class-wp-filesystem-base.php +0 -815
- data/lib/wp/wp-admin/includes/class-wp-filesystem-direct.php +0 -384
- data/lib/wp/wp-admin/includes/class-wp-filesystem-ftpext.php +0 -415
- data/lib/wp/wp-admin/includes/class-wp-filesystem-ftpsockets.php +0 -352
- data/lib/wp/wp-admin/includes/class-wp-filesystem-ssh2.php +0 -392
- data/lib/wp/wp-admin/includes/class-wp-importer.php +0 -302
- data/lib/wp/wp-admin/includes/class-wp-links-list-table.php +0 -207
- data/lib/wp/wp-admin/includes/class-wp-list-table.php +0 -1080
- data/lib/wp/wp-admin/includes/class-wp-media-list-table.php +0 -574
- data/lib/wp/wp-admin/includes/class-wp-ms-sites-list-table.php +0 -402
- data/lib/wp/wp-admin/includes/class-wp-ms-themes-list-table.php +0 -459
- data/lib/wp/wp-admin/includes/class-wp-ms-users-list-table.php +0 -303
- data/lib/wp/wp-admin/includes/class-wp-plugin-install-list-table.php +0 -490
- data/lib/wp/wp-admin/includes/class-wp-plugins-list-table.php +0 -605
- data/lib/wp/wp-admin/includes/class-wp-posts-list-table.php +0 -1306
- data/lib/wp/wp-admin/includes/class-wp-terms-list-table.php +0 -466
- data/lib/wp/wp-admin/includes/class-wp-theme-install-list-table.php +0 -431
- data/lib/wp/wp-admin/includes/class-wp-themes-list-table.php +0 -279
- data/lib/wp/wp-admin/includes/class-wp-upgrader-skins.php +0 -767
- data/lib/wp/wp-admin/includes/class-wp-upgrader.php +0 -2676
- data/lib/wp/wp-admin/includes/class-wp-users-list-table.php +0 -459
- data/lib/wp/wp-admin/includes/comment.php +0 -171
- data/lib/wp/wp-admin/includes/continents-cities.php +0 -493
- data/lib/wp/wp-admin/includes/dashboard.php +0 -1333
- data/lib/wp/wp-admin/includes/deprecated.php +0 -1190
- data/lib/wp/wp-admin/includes/export.php +0 -508
- data/lib/wp/wp-admin/includes/file.php +0 -1152
- data/lib/wp/wp-admin/includes/image-edit.php +0 -828
- data/lib/wp/wp-admin/includes/image.php +0 -598
- data/lib/wp/wp-admin/includes/import.php +0 -206
- data/lib/wp/wp-admin/includes/list-table.php +0 -113
- data/lib/wp/wp-admin/includes/media.php +0 -3012
- data/lib/wp/wp-admin/includes/menu.php +0 -322
- data/lib/wp/wp-admin/includes/meta-boxes.php +0 -1119
- data/lib/wp/wp-admin/includes/misc.php +0 -845
- data/lib/wp/wp-admin/includes/ms-deprecated.php +0 -78
- data/lib/wp/wp-admin/includes/ms.php +0 -814
- data/lib/wp/wp-admin/includes/nav-menu.php +0 -1328
- data/lib/wp/wp-admin/includes/plugin-install.php +0 -550
- data/lib/wp/wp-admin/includes/plugin.php +0 -1899
- data/lib/wp/wp-admin/includes/post.php +0 -1661
- data/lib/wp/wp-admin/includes/revision.php +0 -228
- data/lib/wp/wp-admin/includes/schema.php +0 -1038
- data/lib/wp/wp-admin/includes/screen.php +0 -1179
- data/lib/wp/wp-admin/includes/taxonomy.php +0 -284
- data/lib/wp/wp-admin/includes/template.php +0 -2157
- data/lib/wp/wp-admin/includes/theme-install.php +0 -205
- data/lib/wp/wp-admin/includes/theme.php +0 -474
- data/lib/wp/wp-admin/includes/translation-install.php +0 -240
- data/lib/wp/wp-admin/includes/update-core.php +0 -1186
- data/lib/wp/wp-admin/includes/update.php +0 -432
- data/lib/wp/wp-admin/includes/upgrade.php +0 -2218
- data/lib/wp/wp-admin/includes/user.php +0 -442
- data/lib/wp/wp-admin/includes/widgets.php +0 -245
- data/lib/wp/wp-admin/index.php +0 -131
- data/lib/wp/wp-admin/install-helper.php +0 -199
- data/lib/wp/wp-admin/install.php +0 -305
- data/lib/wp/wp-admin/js/accordion.js +0 -143
- data/lib/wp/wp-admin/js/accordion.min.js +0 -1
- data/lib/wp/wp-admin/js/color-picker.js +0 -155
- data/lib/wp/wp-admin/js/color-picker.min.js +0 -1
- data/lib/wp/wp-admin/js/comment.js +0 -50
- data/lib/wp/wp-admin/js/comment.min.js +0 -1
- data/lib/wp/wp-admin/js/common.js +0 -804
- data/lib/wp/wp-admin/js/common.min.js +0 -1
- data/lib/wp/wp-admin/js/custom-background.js +0 -75
- data/lib/wp/wp-admin/js/custom-background.min.js +0 -1
- data/lib/wp/wp-admin/js/custom-header.js +0 -61
- data/lib/wp/wp-admin/js/customize-controls.js +0 -1305
- data/lib/wp/wp-admin/js/customize-controls.min.js +0 -1
- data/lib/wp/wp-admin/js/customize-widgets.js +0 -1882
- data/lib/wp/wp-admin/js/customize-widgets.min.js +0 -1
- data/lib/wp/wp-admin/js/dashboard.js +0 -190
- data/lib/wp/wp-admin/js/dashboard.min.js +0 -1
- data/lib/wp/wp-admin/js/edit-comments.js +0 -625
- data/lib/wp/wp-admin/js/edit-comments.min.js +0 -1
- data/lib/wp/wp-admin/js/editor-expand.js +0 -705
- data/lib/wp/wp-admin/js/editor-expand.min.js +0 -1
- data/lib/wp/wp-admin/js/editor.js +0 -324
- data/lib/wp/wp-admin/js/editor.min.js +0 -1
- data/lib/wp/wp-admin/js/farbtastic.js +0 -276
- data/lib/wp/wp-admin/js/gallery.js +0 -237
- data/lib/wp/wp-admin/js/gallery.min.js +0 -1
- data/lib/wp/wp-admin/js/image-edit.js +0 -633
- data/lib/wp/wp-admin/js/image-edit.min.js +0 -1
- data/lib/wp/wp-admin/js/inline-edit-post.js +0 -359
- data/lib/wp/wp-admin/js/inline-edit-post.min.js +0 -1
- data/lib/wp/wp-admin/js/inline-edit-tax.js +0 -142
- data/lib/wp/wp-admin/js/inline-edit-tax.min.js +0 -1
- data/lib/wp/wp-admin/js/iris.min.js +0 -4
- data/lib/wp/wp-admin/js/language-chooser.js +0 -26
- data/lib/wp/wp-admin/js/language-chooser.min.js +0 -1
- data/lib/wp/wp-admin/js/link.js +0 -69
- data/lib/wp/wp-admin/js/link.min.js +0 -1
- data/lib/wp/wp-admin/js/media-gallery.js +0 -26
- data/lib/wp/wp-admin/js/media-gallery.min.js +0 -1
- data/lib/wp/wp-admin/js/media-upload.js +0 -69
- data/lib/wp/wp-admin/js/media-upload.min.js +0 -1
- data/lib/wp/wp-admin/js/media.js +0 -111
- data/lib/wp/wp-admin/js/media.min.js +0 -1
- data/lib/wp/wp-admin/js/nav-menu.js +0 -1205
- data/lib/wp/wp-admin/js/nav-menu.min.js +0 -1
- data/lib/wp/wp-admin/js/password-strength-meter.js +0 -75
- data/lib/wp/wp-admin/js/password-strength-meter.min.js +0 -1
- data/lib/wp/wp-admin/js/plugin-install.js +0 -76
- data/lib/wp/wp-admin/js/plugin-install.min.js +0 -1
- data/lib/wp/wp-admin/js/post.js +0 -1094
- data/lib/wp/wp-admin/js/post.min.js +0 -1
- data/lib/wp/wp-admin/js/postbox.js +0 -199
- data/lib/wp/wp-admin/js/postbox.min.js +0 -1
- data/lib/wp/wp-admin/js/revisions.js +0 -1110
- data/lib/wp/wp-admin/js/revisions.min.js +0 -1
- data/lib/wp/wp-admin/js/set-post-thumbnail.js +0 -24
- data/lib/wp/wp-admin/js/set-post-thumbnail.min.js +0 -1
- data/lib/wp/wp-admin/js/svg-painter.js +0 -240
- data/lib/wp/wp-admin/js/svg-painter.min.js +0 -1
- data/lib/wp/wp-admin/js/tags.js +0 -72
- data/lib/wp/wp-admin/js/tags.min.js +0 -1
- data/lib/wp/wp-admin/js/theme.js +0 -1691
- data/lib/wp/wp-admin/js/theme.min.js +0 -1
- data/lib/wp/wp-admin/js/updates.js +0 -65
- data/lib/wp/wp-admin/js/updates.min.js +0 -1
- data/lib/wp/wp-admin/js/user-profile.js +0 -127
- data/lib/wp/wp-admin/js/user-profile.min.js +0 -1
- data/lib/wp/wp-admin/js/user-suggest.js +0 -30
- data/lib/wp/wp-admin/js/user-suggest.min.js +0 -1
- data/lib/wp/wp-admin/js/widgets.js +0 -494
- data/lib/wp/wp-admin/js/widgets.min.js +0 -1
- data/lib/wp/wp-admin/js/word-count.js +0 -44
- data/lib/wp/wp-admin/js/word-count.min.js +0 -1
- data/lib/wp/wp-admin/js/wp-fullscreen.js +0 -704
- data/lib/wp/wp-admin/js/wp-fullscreen.min.js +0 -1
- data/lib/wp/wp-admin/js/xfn.js +0 -17
- data/lib/wp/wp-admin/js/xfn.min.js +0 -1
- data/lib/wp/wp-admin/link-add.php +0 -29
- data/lib/wp/wp-admin/link-manager.php +0 -99
- data/lib/wp/wp-admin/link-parse-opml.php +0 -84
- data/lib/wp/wp-admin/link.php +0 -117
- data/lib/wp/wp-admin/load-scripts.php +0 -162
- data/lib/wp/wp-admin/load-styles.php +0 -153
- data/lib/wp/wp-admin/maint/repair.php +0 -124
- data/lib/wp/wp-admin/media-new.php +0 -84
- data/lib/wp/wp-admin/media-upload.php +0 -100
- data/lib/wp/wp-admin/media.php +0 -146
- data/lib/wp/wp-admin/menu-header.php +0 -227
- data/lib/wp/wp-admin/menu.php +0 -255
- data/lib/wp/wp-admin/moderation.php +0 -12
- data/lib/wp/wp-admin/ms-admin.php +0 -13
- data/lib/wp/wp-admin/ms-delete-site.php +0 -91
- data/lib/wp/wp-admin/ms-edit.php +0 -13
- data/lib/wp/wp-admin/ms-options.php +0 -12
- data/lib/wp/wp-admin/ms-sites.php +0 -13
- data/lib/wp/wp-admin/ms-themes.php +0 -13
- data/lib/wp/wp-admin/ms-upgrade-network.php +0 -13
- data/lib/wp/wp-admin/ms-users.php +0 -13
- data/lib/wp/wp-admin/my-sites.php +0 -145
- data/lib/wp/wp-admin/nav-menus.php +0 -798
- data/lib/wp/wp-admin/network.php +0 -561
- data/lib/wp/wp-admin/network/about.php +0 -16
- data/lib/wp/wp-admin/network/admin.php +0 -32
- data/lib/wp/wp-admin/network/credits.php +0 -16
- data/lib/wp/wp-admin/network/edit.php +0 -42
- data/lib/wp/wp-admin/network/freedoms.php +0 -16
- data/lib/wp/wp-admin/network/index.php +0 -79
- data/lib/wp/wp-admin/network/menu.php +0 -63
- data/lib/wp/wp-admin/network/plugin-editor.php +0 -16
- data/lib/wp/wp-admin/network/plugin-install.php +0 -19
- data/lib/wp/wp-admin/network/plugins.php +0 -16
- data/lib/wp/wp-admin/network/profile.php +0 -16
- data/lib/wp/wp-admin/network/settings.php +0 -347
- data/lib/wp/wp-admin/network/setup.php +0 -16
- data/lib/wp/wp-admin/network/site-info.php +0 -178
- data/lib/wp/wp-admin/network/site-new.php +0 -153
- data/lib/wp/wp-admin/network/site-settings.php +0 -173
- data/lib/wp/wp-admin/network/site-themes.php +0 -185
- data/lib/wp/wp-admin/network/site-users.php +0 -319
- data/lib/wp/wp-admin/network/sites.php +0 -275
- data/lib/wp/wp-admin/network/theme-editor.php +0 -16
- data/lib/wp/wp-admin/network/theme-install.php +0 -19
- data/lib/wp/wp-admin/network/themes.php +0 -291
- data/lib/wp/wp-admin/network/update-core.php +0 -16
- data/lib/wp/wp-admin/network/update.php +0 -19
- data/lib/wp/wp-admin/network/upgrade.php +0 -120
- data/lib/wp/wp-admin/network/user-edit.php +0 -16
- data/lib/wp/wp-admin/network/user-new.php +0 -106
- data/lib/wp/wp-admin/network/users.php +0 -296
- data/lib/wp/wp-admin/options-discussion.php +0 -273
- data/lib/wp/wp-admin/options-general.php +0 -355
- data/lib/wp/wp-admin/options-head.php +0 -18
- data/lib/wp/wp-admin/options-media.php +0 -136
- data/lib/wp/wp-admin/options-permalink.php +0 -289
- data/lib/wp/wp-admin/options-reading.php +0 -184
- data/lib/wp/wp-admin/options-writing.php +0 -194
- data/lib/wp/wp-admin/options.php +0 -265
- data/lib/wp/wp-admin/plugin-editor.php +0 -279
- data/lib/wp/wp-admin/plugin-install.php +0 -134
- data/lib/wp/wp-admin/plugins.php +0 -474
- data/lib/wp/wp-admin/post-new.php +0 -74
- data/lib/wp/wp-admin/post.php +0 -318
- data/lib/wp/wp-admin/press-this.php +0 -691
- data/lib/wp/wp-admin/profile.php +0 -18
- data/lib/wp/wp-admin/revision.php +0 -221
- data/lib/wp/wp-admin/setup-config.php +0 -345
- data/lib/wp/wp-admin/theme-editor.php +0 -243
- data/lib/wp/wp-admin/theme-install.php +0 -278
- data/lib/wp/wp-admin/themes.php +0 -374
- data/lib/wp/wp-admin/tools.php +0 -75
- data/lib/wp/wp-admin/update-core.php +0 -653
- data/lib/wp/wp-admin/update.php +0 -272
- data/lib/wp/wp-admin/upgrade-functions.php +0 -12
- data/lib/wp/wp-admin/upgrade.php +0 -116
- data/lib/wp/wp-admin/upload.php +0 -292
- data/lib/wp/wp-admin/user-edit.php +0 -557
- data/lib/wp/wp-admin/user-new.php +0 -439
- data/lib/wp/wp-admin/user/about.php +0 -13
- data/lib/wp/wp-admin/user/admin.php +0 -32
- data/lib/wp/wp-admin/user/credits.php +0 -13
- data/lib/wp/wp-admin/user/freedoms.php +0 -13
- data/lib/wp/wp-admin/user/index.php +0 -12
- data/lib/wp/wp-admin/user/menu.php +0 -22
- data/lib/wp/wp-admin/user/profile.php +0 -12
- data/lib/wp/wp-admin/user/user-edit.php +0 -12
- data/lib/wp/wp-admin/users.php +0 -460
- data/lib/wp/wp-admin/widgets.php +0 -442
- data/lib/wp/wp-blog-header.php +0 -18
- data/lib/wp/wp-comments-post.php +0 -164
- data/lib/wp/wp-config-sample.php +0 -80
- data/lib/wp/wp-content/index.php +0 -2
- data/lib/wp/wp-content/plugins/hello.php +0 -82
- data/lib/wp/wp-content/plugins/index.php +0 -2
- data/lib/wp/wp-content/themes/index.php +0 -2
- data/lib/wp/wp-content/themes/stump/.editorconfig +0 -11
- data/lib/wp/wp-content/themes/stump/.jshintrc +0 -16
- data/lib/wp/wp-content/themes/stump/404.php +0 -13
- data/lib/wp/wp-content/themes/stump/CHANGELOG.md +0 -333
- data/lib/wp/wp-content/themes/stump/CONTRIBUTING.md +0 -121
- data/lib/wp/wp-content/themes/stump/Gruntfile.js +0 -151
- data/lib/wp/wp-content/themes/stump/LICENSE.md +0 -19
- data/lib/wp/wp-content/themes/stump/assets/coffee/build/.gitkeep +0 -0
- data/lib/wp/wp-content/themes/stump/assets/css/editor-style.css +0 -548
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.svg +0 -229
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/wp/wp-content/themes/stump/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/wp/wp-content/themes/stump/assets/img/.gitignore +0 -0
- data/lib/wp/wp-content/themes/stump/assets/js/_main.js +0 -63
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/affix.js +0 -137
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/alert.js +0 -88
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/button.js +0 -107
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/carousel.js +0 -205
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/collapse.js +0 -170
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/dropdown.js +0 -147
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/modal.js +0 -243
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/popover.js +0 -110
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/scrollspy.js +0 -153
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/tab.js +0 -125
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/tooltip.js +0 -399
- data/lib/wp/wp-content/themes/stump/assets/js/plugins/bootstrap/transition.js +0 -48
- data/lib/wp/wp-content/themes/stump/assets/js/scripts.min.js +0 -1
- data/lib/wp/wp-content/themes/stump/assets/js/vendor/jquery-1.11.0.min.js +0 -4
- data/lib/wp/wp-content/themes/stump/assets/js/vendor/modernizr-2.7.0.min.js +0 -4
- data/lib/wp/wp-content/themes/stump/assets/sass/app.scss +0 -9
- data/lib/wp/wp-content/themes/stump/assets/sass/core/_variables.scss +0 -1
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_alerts.scss +0 -67
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_badges.scss +0 -55
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_bootstrap.scss +0 -49
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_breadcrumbs.scss +0 -26
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_button-groups.scss +0 -226
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_buttons.scss +0 -159
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_carousel.scss +0 -232
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_close.scss +0 -35
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_code.scss +0 -63
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_component-animations.scss +0 -29
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_dropdowns.scss +0 -213
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_forms.scss +0 -436
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_glyphicons.scss +0 -233
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_grid.scss +0 -84
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_input-groups.scss +0 -162
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_jumbotron.scss +0 -44
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_labels.scss +0 -64
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_list-group.scss +0 -110
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_media.scss +0 -56
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_mixins.scss +0 -947
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_modals.scss +0 -139
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_navbar.scss +0 -620
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_navs.scss +0 -242
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_normalize.scss +0 -423
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_pager.scss +0 -55
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_pagination.scss +0 -88
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_panels.scss +0 -241
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_popovers.scss +0 -133
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_print.scss +0 -101
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_progress-bars.scss +0 -80
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_responsive-utilities.scss +0 -74
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_scaffolding.scss +0 -134
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_tables.scss +0 -233
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_theme.scss +0 -247
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_thumbnails.scss +0 -38
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_tooltip.scss +0 -95
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_type.scss +0 -284
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_utilities.scss +0 -56
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_variables.scss +0 -833
- data/lib/wp/wp-content/themes/stump/assets/vendor/bootstrap/_wells.scss +0 -29
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/_bourbon-deprecated-upcoming.scss +0 -13
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/_bourbon.scss +0 -59
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_button.scss +0 -273
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_clearfix.scss +0 -29
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_font-family.scss +0 -5
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_hide-text.scss +0 -5
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_html5-input-types.scss +0 -56
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_position.scss +0 -42
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_prefixer.scss +0 -49
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_retina-image.scss +0 -32
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_size.scss +0 -44
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_timing-functions.scss +0 -32
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_triangle.scss +0 -45
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_animation.scss +0 -52
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_appearance.scss +0 -3
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_backface-visibility.scss +0 -6
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_background-image.scss +0 -48
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_background.scss +0 -103
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_border-image.scss +0 -55
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_border-radius.scss +0 -22
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_box-sizing.scss +0 -4
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_columns.scss +0 -47
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_flex-box.scss +0 -52
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_font-face.scss +0 -23
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_hidpi-media-query.scss +0 -10
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_image-rendering.scss +0 -13
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_inline-block.scss +0 -8
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_keyframes.scss +0 -43
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_linear-gradient.scss +0 -41
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_perspective.scss +0 -8
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_placeholder.scss +0 -29
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_radial-gradient.scss +0 -44
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_transform.scss +0 -15
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_transition.scss +0 -34
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/css3/_user-select.scss +0 -3
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_compact.scss +0 -11
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_flex-grid.scss +0 -39
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_grid-width.scss +0 -13
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_linear-gradient.scss +0 -13
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_modular-scale.scss +0 -40
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_px-to-em.scss +0 -8
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_radial-gradient.scss +0 -23
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_tint-shade.scss +0 -9
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/functions/_transition-property-name.scss +0 -22
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_deprecated-webkit-gradient.scss +0 -39
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_gradient-positions-parser.scss +0 -13
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_linear-positions-parser.scss +0 -61
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_radial-arg-parser.scss +0 -69
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_radial-positions-parser.scss +0 -18
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_render-gradients.scss +0 -26
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/helpers/_shape-size-stripper.scss +0 -10
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan.sass +0 -11
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_grid.sass +0 -161
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_mixins.sass +0 -63
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_utilities.sass +0 -24
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/manhattan/_variables.sass +0 -42
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/_neat-helpers.scss +0 -8
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/_neat.scss +0 -21
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_new-breakpoint.scss +0 -16
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_private.scss +0 -107
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/functions/_px-to-em.scss +0 -3
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_fill-parent.scss +0 -7
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_grid.scss +0 -5
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_media.scss +0 -51
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_omega.scss +0 -79
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_outer-container.scss +0 -8
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_pad.scss +0 -8
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_private.scss +0 -50
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_reset.scss +0 -12
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_row.scss +0 -17
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_shift.scss +0 -9
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_span-columns.scss +0 -38
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_to-deprecate.scss +0 -57
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/grid/_visual-grid.scss +0 -41
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/settings/_grid.scss +0 -7
- data/lib/wp/wp-content/themes/stump/assets/vendor/manhattan/neat/settings/_visual-grid.scss +0 -5
- data/lib/wp/wp-content/themes/stump/base.php +0 -36
- data/lib/wp/wp-content/themes/stump/functions.php +0 -19
- data/lib/wp/wp-content/themes/stump/index.php +0 -21
- data/lib/wp/wp-content/themes/stump/lang/ar.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ar.po +0 -270
- data/lib/wp/wp-content/themes/stump/lang/bg_BG.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/bg_BG.po +0 -338
- data/lib/wp/wp-content/themes/stump/lang/ca.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ca.po +0 -517
- data/lib/wp/wp-content/themes/stump/lang/da_DK.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/da_DK.po +0 -305
- data/lib/wp/wp-content/themes/stump/lang/de_DE.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/de_DE.po +0 -271
- data/lib/wp/wp-content/themes/stump/lang/el.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/el.po +0 -319
- data/lib/wp/wp-content/themes/stump/lang/es_ES.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/es_ES.po +0 -270
- data/lib/wp/wp-content/themes/stump/lang/et.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/et.po +0 -262
- data/lib/wp/wp-content/themes/stump/lang/fa_IR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/fa_IR.po +0 -273
- data/lib/wp/wp-content/themes/stump/lang/fi_FI.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/fi_FI.po +0 -367
- data/lib/wp/wp-content/themes/stump/lang/fr_FR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/fr_FR.po +0 -336
- data/lib/wp/wp-content/themes/stump/lang/he_IL.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/he_IL.po +0 -336
- data/lib/wp/wp-content/themes/stump/lang/hu_HU.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/hu_HU.po +0 -271
- data/lib/wp/wp-content/themes/stump/lang/id_ID.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/id_ID.po +0 -278
- data/lib/wp/wp-content/themes/stump/lang/it_IT.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/it_IT.po +0 -269
- data/lib/wp/wp-content/themes/stump/lang/ja.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ja.po +0 -267
- data/lib/wp/wp-content/themes/stump/lang/ko_KR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ko_KR.po +0 -282
- data/lib/wp/wp-content/themes/stump/lang/mk_MK.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/mk_MK.po +0 -297
- data/lib/wp/wp-content/themes/stump/lang/ms_MY.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ms_MY.po +0 -342
- data/lib/wp/wp-content/themes/stump/lang/nb_NO.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/nb_NO.po +0 -517
- data/lib/wp/wp-content/themes/stump/lang/nl_NL.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/nl_NL.po +0 -261
- data/lib/wp/wp-content/themes/stump/lang/nn_NO.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/nn_NO.po +0 -517
- data/lib/wp/wp-content/themes/stump/lang/pl_PL.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/pl_PL.po +0 -283
- data/lib/wp/wp-content/themes/stump/lang/pt_BR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/pt_BR.po +0 -394
- data/lib/wp/wp-content/themes/stump/lang/ro_RO.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ro_RO.po +0 -271
- data/lib/wp/wp-content/themes/stump/lang/roots.pot +0 -244
- data/lib/wp/wp-content/themes/stump/lang/ru_RU.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/ru_RU.po +0 -255
- data/lib/wp/wp-content/themes/stump/lang/sk_SK.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/sk_SK.po +0 -267
- data/lib/wp/wp-content/themes/stump/lang/sr_RS.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/sr_RS.pot +0 -261
- data/lib/wp/wp-content/themes/stump/lang/sv_SE.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/sv_SE.po +0 -323
- data/lib/wp/wp-content/themes/stump/lang/tr_TR.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/tr_TR.po +0 -405
- data/lib/wp/wp-content/themes/stump/lang/vi_VN.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/vi_VN.po +0 -516
- data/lib/wp/wp-content/themes/stump/lang/zh_CN.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/zh_CN.po +0 -329
- data/lib/wp/wp-content/themes/stump/lang/zh_TW.mo +0 -0
- data/lib/wp/wp-content/themes/stump/lang/zh_TW.po +0 -261
- data/lib/wp/wp-content/themes/stump/lib/activation.php +0 -215
- data/lib/wp/wp-content/themes/stump/lib/cleanup.php +0 -261
- data/lib/wp/wp-content/themes/stump/lib/comments.php +0 -52
- data/lib/wp/wp-content/themes/stump/lib/config.php +0 -79
- data/lib/wp/wp-content/themes/stump/lib/custom.php +0 -4
- data/lib/wp/wp-content/themes/stump/lib/gallery.php +0 -130
- data/lib/wp/wp-content/themes/stump/lib/init.php +0 -25
- data/lib/wp/wp-content/themes/stump/lib/nav.php +0 -93
- data/lib/wp/wp-content/themes/stump/lib/relative-urls.php +0 -50
- data/lib/wp/wp-content/themes/stump/lib/scripts.php +0 -67
- data/lib/wp/wp-content/themes/stump/lib/sidebar.php +0 -43
- data/lib/wp/wp-content/themes/stump/lib/titles.php +0 -37
- data/lib/wp/wp-content/themes/stump/lib/utils.php +0 -14
- data/lib/wp/wp-content/themes/stump/lib/widgets.php +0 -133
- data/lib/wp/wp-content/themes/stump/lib/wrapper.php +0 -49
- data/lib/wp/wp-content/themes/stump/package.json +0 -32
- data/lib/wp/wp-content/themes/stump/page.php +0 -2
- data/lib/wp/wp-content/themes/stump/screenshot.png +0 -0
- data/lib/wp/wp-content/themes/stump/single.php +0 -1
- data/lib/wp/wp-content/themes/stump/style.css +0 -11
- data/lib/wp/wp-content/themes/stump/template-custom.php +0 -8
- data/lib/wp/wp-content/themes/stump/templates/comment.php +0 -14
- data/lib/wp/wp-content/themes/stump/templates/comments.php +0 -80
- data/lib/wp/wp-content/themes/stump/templates/content-page.php +0 -4
- data/lib/wp/wp-content/themes/stump/templates/content-single.php +0 -15
- data/lib/wp/wp-content/themes/stump/templates/content.php +0 -9
- data/lib/wp/wp-content/themes/stump/templates/entry-meta.php +0 -2
- data/lib/wp/wp-content/themes/stump/templates/footer.php +0 -8
- data/lib/wp/wp-content/themes/stump/templates/head.php +0 -12
- data/lib/wp/wp-content/themes/stump/templates/header-top-navbar.php +0 -21
- data/lib/wp/wp-content/themes/stump/templates/header.php +0 -14
- data/lib/wp/wp-content/themes/stump/templates/page-header.php +0 -5
- data/lib/wp/wp-content/themes/stump/templates/searchform.php +0 -9
- data/lib/wp/wp-content/themes/stump/templates/sidebar.php +0 -1
- data/lib/wp/wp-cron.php +0 -115
- data/lib/wp/wp-includes/ID3/getid3.lib.php +0 -1376
- data/lib/wp/wp-includes/ID3/getid3.php +0 -1796
- data/lib/wp/wp-includes/ID3/license.commercial.txt +0 -27
- data/lib/wp/wp-includes/ID3/license.txt +0 -29
- data/lib/wp/wp-includes/ID3/module.audio-video.asf.php +0 -2013
- data/lib/wp/wp-includes/ID3/module.audio-video.flv.php +0 -745
- data/lib/wp/wp-includes/ID3/module.audio-video.matroska.php +0 -1751
- data/lib/wp/wp-includes/ID3/module.audio-video.quicktime.php +0 -2246
- data/lib/wp/wp-includes/ID3/module.audio-video.riff.php +0 -2586
- data/lib/wp/wp-includes/ID3/module.audio.ac3.php +0 -474
- data/lib/wp/wp-includes/ID3/module.audio.dts.php +0 -291
- data/lib/wp/wp-includes/ID3/module.audio.flac.php +0 -443
- data/lib/wp/wp-includes/ID3/module.audio.mp3.php +0 -2012
- data/lib/wp/wp-includes/ID3/module.audio.ogg.php +0 -756
- data/lib/wp/wp-includes/ID3/module.tag.apetag.php +0 -371
- data/lib/wp/wp-includes/ID3/module.tag.id3v1.php +0 -360
- data/lib/wp/wp-includes/ID3/module.tag.id3v2.php +0 -3424
- data/lib/wp/wp-includes/ID3/module.tag.lyrics3.php +0 -294
- data/lib/wp/wp-includes/ID3/readme.txt +0 -604
- data/lib/wp/wp-includes/SimplePie/Author.php +0 -157
- data/lib/wp/wp-includes/SimplePie/Cache.php +0 -133
- data/lib/wp/wp-includes/SimplePie/Cache/Base.php +0 -114
- data/lib/wp/wp-includes/SimplePie/Cache/DB.php +0 -137
- data/lib/wp/wp-includes/SimplePie/Cache/File.php +0 -173
- data/lib/wp/wp-includes/SimplePie/Cache/Memcache.php +0 -183
- data/lib/wp/wp-includes/SimplePie/Cache/MySQL.php +0 -438
- data/lib/wp/wp-includes/SimplePie/Caption.php +0 -210
- data/lib/wp/wp-includes/SimplePie/Category.php +0 -157
- data/lib/wp/wp-includes/SimplePie/Content/Type/Sniffer.php +0 -332
- data/lib/wp/wp-includes/SimplePie/Copyright.php +0 -130
- data/lib/wp/wp-includes/SimplePie/Core.php +0 -57
- data/lib/wp/wp-includes/SimplePie/Credit.php +0 -156
- data/lib/wp/wp-includes/SimplePie/Decode/HTML/Entities.php +0 -617
- data/lib/wp/wp-includes/SimplePie/Enclosure.php +0 -1380
- data/lib/wp/wp-includes/SimplePie/Exception.php +0 -52
- data/lib/wp/wp-includes/SimplePie/File.php +0 -292
- data/lib/wp/wp-includes/SimplePie/HTTP/Parser.php +0 -500
- data/lib/wp/wp-includes/SimplePie/IRI.php +0 -1238
- data/lib/wp/wp-includes/SimplePie/Item.php +0 -2964
- data/lib/wp/wp-includes/SimplePie/Locator.php +0 -372
- data/lib/wp/wp-includes/SimplePie/Misc.php +0 -2247
- data/lib/wp/wp-includes/SimplePie/Net/IPv6.php +0 -276
- data/lib/wp/wp-includes/SimplePie/Parse/Date.php +0 -983
- data/lib/wp/wp-includes/SimplePie/Parser.php +0 -407
- data/lib/wp/wp-includes/SimplePie/Rating.php +0 -129
- data/lib/wp/wp-includes/SimplePie/Registry.php +0 -225
- data/lib/wp/wp-includes/SimplePie/Restriction.php +0 -155
- data/lib/wp/wp-includes/SimplePie/Sanitize.php +0 -554
- data/lib/wp/wp-includes/SimplePie/Source.php +0 -611
- data/lib/wp/wp-includes/SimplePie/XML/Declaration/Parser.php +0 -362
- data/lib/wp/wp-includes/SimplePie/gzdecode.php +0 -371
- data/lib/wp/wp-includes/Text/Diff.php +0 -450
- data/lib/wp/wp-includes/Text/Diff/Engine/native.php +0 -436
- data/lib/wp/wp-includes/Text/Diff/Engine/shell.php +0 -162
- data/lib/wp/wp-includes/Text/Diff/Engine/string.php +0 -248
- data/lib/wp/wp-includes/Text/Diff/Engine/xdiff.php +0 -64
- data/lib/wp/wp-includes/Text/Diff/Renderer.php +0 -235
- data/lib/wp/wp-includes/Text/Diff/Renderer/inline.php +0 -206
- data/lib/wp/wp-includes/admin-bar.php +0 -870
- data/lib/wp/wp-includes/atomlib.php +0 -352
- data/lib/wp/wp-includes/author-template.php +0 -471
- data/lib/wp/wp-includes/bookmark-template.php +0 -298
- data/lib/wp/wp-includes/bookmark.php +0 -416
- data/lib/wp/wp-includes/cache.php +0 -704
- data/lib/wp/wp-includes/canonical.php +0 -586
- data/lib/wp/wp-includes/capabilities.php +0 -1539
- data/lib/wp/wp-includes/category-template.php +0 -1407
- data/lib/wp/wp-includes/category.php +0 -343
- data/lib/wp/wp-includes/certificates/ca-bundle.crt +0 -3785
- data/lib/wp/wp-includes/class-IXR.php +0 -1100
- data/lib/wp/wp-includes/class-feed.php +0 -140
- data/lib/wp/wp-includes/class-http.php +0 -2245
- data/lib/wp/wp-includes/class-json.php +0 -936
- data/lib/wp/wp-includes/class-oembed.php +0 -579
- data/lib/wp/wp-includes/class-phpass.php +0 -260
- data/lib/wp/wp-includes/class-phpmailer.php +0 -3265
- data/lib/wp/wp-includes/class-pop3.php +0 -652
- data/lib/wp/wp-includes/class-simplepie.php +0 -3119
- data/lib/wp/wp-includes/class-smtp.php +0 -943
- data/lib/wp/wp-includes/class-snoopy.php +0 -1256
- data/lib/wp/wp-includes/class-wp-admin-bar.php +0 -517
- data/lib/wp/wp-includes/class-wp-ajax-response.php +0 -199
- data/lib/wp/wp-includes/class-wp-customize-control.php +0 -1124
- data/lib/wp/wp-includes/class-wp-customize-manager.php +0 -1272
- data/lib/wp/wp-includes/class-wp-customize-panel.php +0 -200
- data/lib/wp/wp-includes/class-wp-customize-section.php +0 -196
- data/lib/wp/wp-includes/class-wp-customize-setting.php +0 -554
- data/lib/wp/wp-includes/class-wp-customize-widgets.php +0 -1556
- data/lib/wp/wp-includes/class-wp-editor.php +0 -1435
- data/lib/wp/wp-includes/class-wp-embed.php +0 -373
- data/lib/wp/wp-includes/class-wp-error.php +0 -276
- data/lib/wp/wp-includes/class-wp-http-ixr-client.php +0 -97
- data/lib/wp/wp-includes/class-wp-image-editor-gd.php +0 -459
- data/lib/wp/wp-includes/class-wp-image-editor-imagick.php +0 -512
- data/lib/wp/wp-includes/class-wp-image-editor.php +0 -475
- data/lib/wp/wp-includes/class-wp-theme.php +0 -1235
- data/lib/wp/wp-includes/class-wp-walker.php +0 -471
- data/lib/wp/wp-includes/class-wp-xmlrpc-server.php +0 -5984
- data/lib/wp/wp-includes/class-wp.php +0 -782
- data/lib/wp/wp-includes/class.wp-dependencies.php +0 -509
- data/lib/wp/wp-includes/class.wp-scripts.php +0 -247
- data/lib/wp/wp-includes/class.wp-styles.php +0 -210
- data/lib/wp/wp-includes/comment-template.php +0 -2286
- data/lib/wp/wp-includes/comment.php +0 -2606
- data/lib/wp/wp-includes/compat.php +0 -125
- data/lib/wp/wp-includes/cron.php +0 -469
- data/lib/wp/wp-includes/css/admin-bar-rtl.css +0 -1099
- data/lib/wp/wp-includes/css/admin-bar-rtl.min.css +0 -1
- data/lib/wp/wp-includes/css/admin-bar.css +0 -1099
- data/lib/wp/wp-includes/css/admin-bar.min.css +0 -1
- data/lib/wp/wp-includes/css/buttons-rtl.css +0 -364
- data/lib/wp/wp-includes/css/buttons-rtl.min.css +0 -1
- data/lib/wp/wp-includes/css/buttons.css +0 -364
- data/lib/wp/wp-includes/css/buttons.min.css +0 -1
- data/lib/wp/wp-includes/css/dashicons.css +0 -893
- data/lib/wp/wp-includes/css/dashicons.min.css +0 -1
- data/lib/wp/wp-includes/css/editor-rtl.css +0 -1993
- data/lib/wp/wp-includes/css/editor-rtl.min.css +0 -1
- data/lib/wp/wp-includes/css/editor.css +0 -1993
- data/lib/wp/wp-includes/css/editor.min.css +0 -1
- data/lib/wp/wp-includes/css/jquery-ui-dialog-rtl.css +0 -343
- data/lib/wp/wp-includes/css/jquery-ui-dialog-rtl.min.css +0 -19
- data/lib/wp/wp-includes/css/jquery-ui-dialog.css +0 -343
- data/lib/wp/wp-includes/css/jquery-ui-dialog.min.css +0 -19
- data/lib/wp/wp-includes/css/media-views-rtl.css +0 -2568
- data/lib/wp/wp-includes/css/media-views-rtl.min.css +0 -1
- data/lib/wp/wp-includes/css/media-views.css +0 -2568
- data/lib/wp/wp-includes/css/media-views.min.css +0 -1
- data/lib/wp/wp-includes/css/wp-auth-check-rtl.css +0 -100
- data/lib/wp/wp-includes/css/wp-auth-check-rtl.min.css +0 -1
- data/lib/wp/wp-includes/css/wp-auth-check.css +0 -100
- data/lib/wp/wp-includes/css/wp-auth-check.min.css +0 -1
- data/lib/wp/wp-includes/css/wp-pointer-rtl.css +0 -212
- data/lib/wp/wp-includes/css/wp-pointer-rtl.min.css +0 -1
- data/lib/wp/wp-includes/css/wp-pointer.css +0 -212
- data/lib/wp/wp-includes/css/wp-pointer.min.css +0 -1
- data/lib/wp/wp-includes/date.php +0 -475
- data/lib/wp/wp-includes/default-constants.php +0 -323
- data/lib/wp/wp-includes/default-filters.php +0 -307
- data/lib/wp/wp-includes/default-widgets.php +0 -1423
- data/lib/wp/wp-includes/deprecated.php +0 -3501
- data/lib/wp/wp-includes/feed-atom-comments.php +0 -115
- data/lib/wp/wp-includes/feed-atom.php +0 -87
- data/lib/wp/wp-includes/feed-rdf.php +0 -81
- data/lib/wp/wp-includes/feed-rss.php +0 -46
- data/lib/wp/wp-includes/feed-rss2-comments.php +0 -97
- data/lib/wp/wp-includes/feed-rss2.php +0 -115
- data/lib/wp/wp-includes/feed.php +0 -659
- data/lib/wp/wp-includes/fonts/dashicons.eot +0 -0
- data/lib/wp/wp-includes/fonts/dashicons.svg +0 -250
- data/lib/wp/wp-includes/fonts/dashicons.ttf +0 -0
- data/lib/wp/wp-includes/fonts/dashicons.woff +0 -0
- data/lib/wp/wp-includes/formatting.php +0 -4006
- data/lib/wp/wp-includes/functions.php +0 -4631
- data/lib/wp/wp-includes/functions.wp-scripts.php +0 -258
- data/lib/wp/wp-includes/functions.wp-styles.php +0 -245
- data/lib/wp/wp-includes/general-template.php +0 -2982
- data/lib/wp/wp-includes/http.php +0 -551
- data/lib/wp/wp-includes/images/admin-bar-sprite-2x.png +0 -0
- data/lib/wp/wp-includes/images/admin-bar-sprite.png +0 -0
- data/lib/wp/wp-includes/images/arrow-pointer-blue-2x.png +0 -0
- data/lib/wp/wp-includes/images/arrow-pointer-blue.png +0 -0
- data/lib/wp/wp-includes/images/blank.gif +0 -0
- data/lib/wp/wp-includes/images/crystal/archive.png +0 -0
- data/lib/wp/wp-includes/images/crystal/audio.png +0 -0
- data/lib/wp/wp-includes/images/crystal/code.png +0 -0
- data/lib/wp/wp-includes/images/crystal/default.png +0 -0
- data/lib/wp/wp-includes/images/crystal/document.png +0 -0
- data/lib/wp/wp-includes/images/crystal/interactive.png +0 -0
- data/lib/wp/wp-includes/images/crystal/license.txt +0 -9
- data/lib/wp/wp-includes/images/crystal/spreadsheet.png +0 -0
- data/lib/wp/wp-includes/images/crystal/text.png +0 -0
- data/lib/wp/wp-includes/images/crystal/video.png +0 -0
- data/lib/wp/wp-includes/images/down_arrow-2x.gif +0 -0
- data/lib/wp/wp-includes/images/down_arrow.gif +0 -0
- data/lib/wp/wp-includes/images/icon-pointer-flag-2x.png +0 -0
- data/lib/wp/wp-includes/images/icon-pointer-flag.png +0 -0
- data/lib/wp/wp-includes/images/media/archive.png +0 -0
- data/lib/wp/wp-includes/images/media/audio.png +0 -0
- data/lib/wp/wp-includes/images/media/code.png +0 -0
- data/lib/wp/wp-includes/images/media/default.png +0 -0
- data/lib/wp/wp-includes/images/media/document.png +0 -0
- data/lib/wp/wp-includes/images/media/interactive.png +0 -0
- data/lib/wp/wp-includes/images/media/spreadsheet.png +0 -0
- data/lib/wp/wp-includes/images/media/text.png +0 -0
- data/lib/wp/wp-includes/images/media/video.png +0 -0
- data/lib/wp/wp-includes/images/rss-2x.png +0 -0
- data/lib/wp/wp-includes/images/rss.png +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_arrow.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_biggrin.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_confused.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_cool.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_cry.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_eek.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_evil.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_exclaim.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_idea.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_lol.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_mad.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_mrgreen.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_neutral.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_question.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_razz.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_redface.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_rolleyes.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_sad.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_smile.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_surprised.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_twisted.gif +0 -0
- data/lib/wp/wp-includes/images/smilies/icon_wink.gif +0 -0
- data/lib/wp/wp-includes/images/spinner-2x.gif +0 -0
- data/lib/wp/wp-includes/images/spinner.gif +0 -0
- data/lib/wp/wp-includes/images/toggle-arrow-2x.png +0 -0
- data/lib/wp/wp-includes/images/toggle-arrow.png +0 -0
- data/lib/wp/wp-includes/images/uploader-icons-2x.png +0 -0
- data/lib/wp/wp-includes/images/uploader-icons.png +0 -0
- data/lib/wp/wp-includes/images/wlw/wp-comments.png +0 -0
- data/lib/wp/wp-includes/images/wlw/wp-icon.png +0 -0
- data/lib/wp/wp-includes/images/wlw/wp-watermark.png +0 -0
- data/lib/wp/wp-includes/images/wpicons-2x.png +0 -0
- data/lib/wp/wp-includes/images/wpicons.png +0 -0
- data/lib/wp/wp-includes/images/wpspin-2x.gif +0 -0
- data/lib/wp/wp-includes/images/wpspin.gif +0 -0
- data/lib/wp/wp-includes/images/xit-2x.gif +0 -0
- data/lib/wp/wp-includes/images/xit.gif +0 -0
- data/lib/wp/wp-includes/js/admin-bar.js +0 -365
- data/lib/wp/wp-includes/js/admin-bar.min.js +0 -1
- data/lib/wp/wp-includes/js/autosave.js +0 -589
- data/lib/wp/wp-includes/js/autosave.min.js +0 -1
- data/lib/wp/wp-includes/js/backbone.min.js +0 -1
- data/lib/wp/wp-includes/js/colorpicker.js +0 -707
- data/lib/wp/wp-includes/js/colorpicker.min.js +0 -1
- data/lib/wp/wp-includes/js/comment-reply.js +0 -47
- data/lib/wp/wp-includes/js/comment-reply.min.js +0 -1
- data/lib/wp/wp-includes/js/crop/cropper.css +0 -165
- data/lib/wp/wp-includes/js/crop/cropper.js +0 -516
- data/lib/wp/wp-includes/js/crop/marqueeHoriz.gif +0 -0
- data/lib/wp/wp-includes/js/crop/marqueeVert.gif +0 -0
- data/lib/wp/wp-includes/js/customize-base.js +0 -617
- data/lib/wp/wp-includes/js/customize-base.min.js +0 -1
- data/lib/wp/wp-includes/js/customize-loader.js +0 -246
- data/lib/wp/wp-includes/js/customize-loader.min.js +0 -1
- data/lib/wp/wp-includes/js/customize-models.js +0 -247
- data/lib/wp/wp-includes/js/customize-models.min.js +0 -1
- data/lib/wp/wp-includes/js/customize-preview-widgets.js +0 -129
- data/lib/wp/wp-includes/js/customize-preview-widgets.min.js +0 -1
- data/lib/wp/wp-includes/js/customize-preview.js +0 -154
- data/lib/wp/wp-includes/js/customize-preview.min.js +0 -1
- data/lib/wp/wp-includes/js/customize-views.js +0 -231
- data/lib/wp/wp-includes/js/customize-views.min.js +0 -1
- data/lib/wp/wp-includes/js/heartbeat.js +0 -738
- data/lib/wp/wp-includes/js/heartbeat.min.js +0 -1
- data/lib/wp/wp-includes/js/hoverIntent.js +0 -115
- data/lib/wp/wp-includes/js/hoverIntent.min.js +0 -1
- data/lib/wp/wp-includes/js/imgareaselect/border-anim-h.gif +0 -0
- data/lib/wp/wp-includes/js/imgareaselect/border-anim-v.gif +0 -0
- data/lib/wp/wp-includes/js/imgareaselect/imgareaselect.css +0 -41
- data/lib/wp/wp-includes/js/imgareaselect/jquery.imgareaselect.js +0 -1205
- data/lib/wp/wp-includes/js/imgareaselect/jquery.imgareaselect.min.js +0 -1
- data/lib/wp/wp-includes/js/jcrop/Jcrop.gif +0 -0
- data/lib/wp/wp-includes/js/jcrop/jquery.Jcrop.min.css +0 -29
- data/lib/wp/wp-includes/js/jcrop/jquery.Jcrop.min.js +0 -22
- data/lib/wp/wp-includes/js/jquery/jquery-migrate.js +0 -521
- data/lib/wp/wp-includes/js/jquery/jquery-migrate.min.js +0 -2
- data/lib/wp/wp-includes/js/jquery/jquery.color.min.js +0 -2
- data/lib/wp/wp-includes/js/jquery/jquery.form.js +0 -1193
- data/lib/wp/wp-includes/js/jquery/jquery.form.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/jquery.hotkeys.js +0 -134
- data/lib/wp/wp-includes/js/jquery/jquery.hotkeys.min.js +0 -1
- data/lib/wp/wp-includes/js/jquery/jquery.js +0 -5
- data/lib/wp/wp-includes/js/jquery/jquery.masonry.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/jquery.query.js +0 -11
- data/lib/wp/wp-includes/js/jquery/jquery.schedule.js +0 -36
- data/lib/wp/wp-includes/js/jquery/jquery.serialize-object.js +0 -31
- data/lib/wp/wp-includes/js/jquery/jquery.table-hotkeys.js +0 -99
- data/lib/wp/wp-includes/js/jquery/jquery.table-hotkeys.min.js +0 -1
- data/lib/wp/wp-includes/js/jquery/jquery.ui.touch-punch.js +0 -11
- data/lib/wp/wp-includes/js/jquery/suggest.js +0 -316
- data/lib/wp/wp-includes/js/jquery/suggest.min.js +0 -1
- data/lib/wp/wp-includes/js/jquery/ui/accordion.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/autocomplete.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/button.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/core.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/datepicker.min.js +0 -12
- data/lib/wp/wp-includes/js/jquery/ui/dialog.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/draggable.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/droppable.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-blind.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-bounce.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-clip.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-drop.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-explode.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-fade.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-fold.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-highlight.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-puff.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-pulsate.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-scale.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-shake.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-size.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-slide.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect-transfer.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/effect.min.js +0 -21
- data/lib/wp/wp-includes/js/jquery/ui/menu.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/mouse.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/position.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/progressbar.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/resizable.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/selectable.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/selectmenu.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/slider.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/sortable.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/spinner.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/tabs.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/tooltip.min.js +0 -11
- data/lib/wp/wp-includes/js/jquery/ui/widget.min.js +0 -11
- data/lib/wp/wp-includes/js/json2.js +0 -480
- data/lib/wp/wp-includes/js/json2.min.js +0 -1
- data/lib/wp/wp-includes/js/masonry.min.js +0 -1
- data/lib/wp/wp-includes/js/mce-view.js +0 -829
- data/lib/wp/wp-includes/js/mce-view.min.js +0 -1
- data/lib/wp/wp-includes/js/media-audiovideo.js +0 -831
- data/lib/wp/wp-includes/js/media-audiovideo.min.js +0 -1
- data/lib/wp/wp-includes/js/media-editor.js +0 -1114
- data/lib/wp/wp-includes/js/media-editor.min.js +0 -1
- data/lib/wp/wp-includes/js/media-grid.js +0 -732
- data/lib/wp/wp-includes/js/media-grid.min.js +0 -1
- data/lib/wp/wp-includes/js/media-models.js +0 -1362
- data/lib/wp/wp-includes/js/media-models.min.js +0 -1
- data/lib/wp/wp-includes/js/media-views.js +0 -7484
- data/lib/wp/wp-includes/js/media-views.min.js +0 -3
- data/lib/wp/wp-includes/js/mediaelement/background.png +0 -0
- data/lib/wp/wp-includes/js/mediaelement/bigplay.png +0 -0
- data/lib/wp/wp-includes/js/mediaelement/bigplay.svg +0 -1
- data/lib/wp/wp-includes/js/mediaelement/controls.png +0 -0
- data/lib/wp/wp-includes/js/mediaelement/controls.svg +0 -1
- data/lib/wp/wp-includes/js/mediaelement/flashmediaelement.swf +0 -0
- data/lib/wp/wp-includes/js/mediaelement/loading.gif +0 -0
- data/lib/wp/wp-includes/js/mediaelement/mediaelement-and-player.min.js +0 -181
- data/lib/wp/wp-includes/js/mediaelement/mediaelementplayer.min.css +0 -1
- data/lib/wp/wp-includes/js/mediaelement/silverlightmediaelement.xap +0 -0
- data/lib/wp/wp-includes/js/mediaelement/wp-mediaelement.css +0 -274
- data/lib/wp/wp-includes/js/mediaelement/wp-mediaelement.js +0 -34
- data/lib/wp/wp-includes/js/mediaelement/wp-playlist.js +0 -175
- data/lib/wp/wp-includes/js/plupload/handlers.js +0 -488
- data/lib/wp/wp-includes/js/plupload/handlers.min.js +0 -1
- data/lib/wp/wp-includes/js/plupload/license.txt +0 -339
- data/lib/wp/wp-includes/js/plupload/plupload.flash.swf +0 -0
- data/lib/wp/wp-includes/js/plupload/plupload.full.min.js +0 -28
- data/lib/wp/wp-includes/js/plupload/plupload.silverlight.xap +0 -0
- data/lib/wp/wp-includes/js/plupload/wp-plupload.js +0 -376
- data/lib/wp/wp-includes/js/plupload/wp-plupload.min.js +0 -1
- data/lib/wp/wp-includes/js/quicktags.js +0 -652
- data/lib/wp/wp-includes/js/quicktags.min.js +0 -1
- data/lib/wp/wp-includes/js/shortcode.js +0 -356
- data/lib/wp/wp-includes/js/shortcode.min.js +0 -1
- data/lib/wp/wp-includes/js/swfobject.js +0 -4
- data/lib/wp/wp-includes/js/swfupload/handlers.js +0 -376
- data/lib/wp/wp-includes/js/swfupload/handlers.min.js +0 -1
- data/lib/wp/wp-includes/js/swfupload/license.txt +0 -32
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.cookies.js +0 -53
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.queue.js +0 -98
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.speed.js +0 -342
- data/lib/wp/wp-includes/js/swfupload/plugins/swfupload.swfobject.js +0 -105
- data/lib/wp/wp-includes/js/swfupload/swfupload.js +0 -980
- data/lib/wp/wp-includes/js/swfupload/swfupload.swf +0 -0
- data/lib/wp/wp-includes/js/thickbox/loadingAnimation.gif +0 -0
- data/lib/wp/wp-includes/js/thickbox/macFFBgHack.png +0 -0
- data/lib/wp/wp-includes/js/thickbox/thickbox.css +0 -138
- data/lib/wp/wp-includes/js/thickbox/thickbox.js +0 -314
- data/lib/wp/wp-includes/js/tinymce/langs/wp-langs-en.js +0 -519
- data/lib/wp/wp-includes/js/tinymce/license.txt +0 -504
- data/lib/wp/wp-includes/js/tinymce/plugins/charmap/plugin.js +0 -370
- data/lib/wp/wp-includes/js/tinymce/plugins/charmap/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/colorpicker/plugin.js +0 -112
- data/lib/wp/wp-includes/js/tinymce/plugins/colorpicker/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/css/dialog.css +0 -212
- data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/plugin.js +0 -304
- data/lib/wp/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/directionality/plugin.js +0 -64
- data/lib/wp/wp-includes/js/tinymce/plugins/directionality/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/fullscreen/plugin.js +0 -136
- data/lib/wp/wp-includes/js/tinymce/plugins/fullscreen/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/hr/plugin.js +0 -30
- data/lib/wp/wp-includes/js/tinymce/plugins/hr/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/image/plugin.js +0 -450
- data/lib/wp/wp-includes/js/tinymce/plugins/image/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/lists/plugin.js +0 -786
- data/lib/wp/wp-includes/js/tinymce/plugins/lists/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/lib/wp/wp-includes/js/tinymce/plugins/media/plugin.js +0 -774
- data/lib/wp/wp-includes/js/tinymce/plugins/media/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/paste/plugin.js +0 -1553
- data/lib/wp/wp-includes/js/tinymce/plugins/paste/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/tabfocus/plugin.js +0 -125
- data/lib/wp/wp-includes/js/tinymce/plugins/tabfocus/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/textcolor/plugin.js +0 -272
- data/lib/wp/wp-includes/js/tinymce/plugins/textcolor/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wordpress/plugin.js +0 -513
- data/lib/wp/wp-includes/js/tinymce/plugins/wordpress/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wpautoresize/plugin.js +0 -207
- data/lib/wp/wp-includes/js/tinymce/plugins/wpautoresize/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wpdialogs/plugin.js +0 -92
- data/lib/wp/wp-includes/js/tinymce/plugins/wpdialogs/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js +0 -1035
- data/lib/wp/wp-includes/js/tinymce/plugins/wpeditimage/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.js +0 -78
- data/lib/wp/wp-includes/js/tinymce/plugins/wpfullscreen/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.js +0 -130
- data/lib/wp/wp-includes/js/tinymce/plugins/wpgallery/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wplink/plugin.js +0 -63
- data/lib/wp/wp-includes/js/tinymce/plugins/wplink/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/plugins/wpview/plugin.js +0 -694
- data/lib/wp/wp-includes/js/tinymce/plugins/wpview/plugin.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/content.inline.min.css +0 -1
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/content.min.css +0 -1
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/readme.md +0 -1
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.svg +0 -62
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.svg +0 -63
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/object.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/skin.ie7.min.css +0 -1
- data/lib/wp/wp-includes/js/tinymce/skins/lightgray/skin.min.css +0 -1
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/audio.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/dashicon-edit.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/dashicon-no-alt.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/embedded.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/gallery-2x.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/gallery.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/more-2x.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/more.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/pagebreak-2x.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/pagebreak.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/playlist-audio.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/playlist-video.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/images/video.png +0 -0
- data/lib/wp/wp-includes/js/tinymce/skins/wordpress/wp-content.css +0 -618
- data/lib/wp/wp-includes/js/tinymce/themes/modern/theme.js +0 -617
- data/lib/wp/wp-includes/js/tinymce/themes/modern/theme.min.js +0 -1
- data/lib/wp/wp-includes/js/tinymce/tiny_mce_popup.js +0 -539
- data/lib/wp/wp-includes/js/tinymce/tinymce.min.js +0 -11
- data/lib/wp/wp-includes/js/tinymce/utils/editable_selects.js +0 -70
- data/lib/wp/wp-includes/js/tinymce/utils/form_utils.js +0 -210
- data/lib/wp/wp-includes/js/tinymce/utils/mctabs.js +0 -164
- data/lib/wp/wp-includes/js/tinymce/utils/validate.js +0 -252
- data/lib/wp/wp-includes/js/tinymce/wp-mce-help.php +0 -145
- data/lib/wp/wp-includes/js/tinymce/wp-tinymce.js.gz +0 -0
- data/lib/wp/wp-includes/js/tinymce/wp-tinymce.php +0 -39
- data/lib/wp/wp-includes/js/tw-sack.js +0 -193
- data/lib/wp/wp-includes/js/tw-sack.min.js +0 -1
- data/lib/wp/wp-includes/js/underscore.min.js +0 -1
- data/lib/wp/wp-includes/js/utils.js +0 -197
- data/lib/wp/wp-includes/js/utils.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-ajax-response.js +0 -64
- data/lib/wp/wp-includes/js/wp-ajax-response.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-auth-check.js +0 -112
- data/lib/wp/wp-includes/js/wp-auth-check.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-backbone.js +0 -386
- data/lib/wp/wp-includes/js/wp-backbone.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-list-revisions.js +0 -24
- data/lib/wp/wp-includes/js/wp-list-revisions.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-lists.js +0 -469
- data/lib/wp/wp-includes/js/wp-lists.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-pointer.js +0 -282
- data/lib/wp/wp-includes/js/wp-pointer.min.js +0 -1
- data/lib/wp/wp-includes/js/wp-util.js +0 -106
- data/lib/wp/wp-includes/js/wp-util.min.js +0 -1
- data/lib/wp/wp-includes/js/wpdialog.js +0 -19
- data/lib/wp/wp-includes/js/wpdialog.min.js +0 -1
- data/lib/wp/wp-includes/js/wplink.js +0 -615
- data/lib/wp/wp-includes/js/wplink.min.js +0 -1
- data/lib/wp/wp-includes/js/zxcvbn-async.js +0 -18
- data/lib/wp/wp-includes/js/zxcvbn-async.min.js +0 -1
- data/lib/wp/wp-includes/js/zxcvbn.min.js +0 -47
- data/lib/wp/wp-includes/kses.php +0 -1526
- data/lib/wp/wp-includes/l10n.php +0 -908
- data/lib/wp/wp-includes/link-template.php +0 -3141
- data/lib/wp/wp-includes/load.php +0 -828
- data/lib/wp/wp-includes/locale.php +0 -368
- data/lib/wp/wp-includes/media-template.php +0 -1235
- data/lib/wp/wp-includes/media.php +0 -3329
- data/lib/wp/wp-includes/meta.php +0 -1221
- data/lib/wp/wp-includes/ms-blogs.php +0 -939
- data/lib/wp/wp-includes/ms-default-constants.php +0 -153
- data/lib/wp/wp-includes/ms-default-filters.php +0 -82
- data/lib/wp/wp-includes/ms-deprecated.php +0 -347
- data/lib/wp/wp-includes/ms-files.php +0 -82
- data/lib/wp/wp-includes/ms-functions.php +0 -2476
- data/lib/wp/wp-includes/ms-load.php +0 -458
- data/lib/wp/wp-includes/ms-settings.php +0 -213
- data/lib/wp/wp-includes/nav-menu-template.php +0 -678
- data/lib/wp/wp-includes/nav-menu.php +0 -895
- data/lib/wp/wp-includes/option.php +0 -1440
- data/lib/wp/wp-includes/pluggable-deprecated.php +0 -192
- data/lib/wp/wp-includes/pluggable.php +0 -2283
- data/lib/wp/wp-includes/plugin.php +0 -920
- data/lib/wp/wp-includes/pomo/entry.php +0 -78
- data/lib/wp/wp-includes/pomo/mo.php +0 -262
- data/lib/wp/wp-includes/pomo/po.php +0 -384
- data/lib/wp/wp-includes/pomo/streams.php +0 -209
- data/lib/wp/wp-includes/pomo/translations.php +0 -275
- data/lib/wp/wp-includes/post-formats.php +0 -243
- data/lib/wp/wp-includes/post-template.php +0 -1766
- data/lib/wp/wp-includes/post-thumbnail-template.php +0 -142
- data/lib/wp/wp-includes/post.php +0 -5842
- data/lib/wp/wp-includes/query.php +0 -4666
- data/lib/wp/wp-includes/registration-functions.php +0 -7
- data/lib/wp/wp-includes/registration.php +0 -7
- data/lib/wp/wp-includes/revision.php +0 -657
- data/lib/wp/wp-includes/rewrite.php +0 -2180
- data/lib/wp/wp-includes/rss-functions.php +0 -9
- data/lib/wp/wp-includes/rss.php +0 -936
- data/lib/wp/wp-includes/script-loader.php +0 -1045
- data/lib/wp/wp-includes/session.php +0 -430
- data/lib/wp/wp-includes/shortcodes.php +0 -410
- data/lib/wp/wp-includes/taxonomy.php +0 -4006
- data/lib/wp/wp-includes/template-loader.php +0 -76
- data/lib/wp/wp-includes/template.php +0 -505
- data/lib/wp/wp-includes/theme-compat/comments-popup.php +0 -128
- data/lib/wp/wp-includes/theme-compat/comments.php +0 -101
- data/lib/wp/wp-includes/theme-compat/footer.php +0 -30
- data/lib/wp/wp-includes/theme-compat/header.php +0 -49
- data/lib/wp/wp-includes/theme-compat/sidebar.php +0 -83
- data/lib/wp/wp-includes/theme.php +0 -2014
- data/lib/wp/wp-includes/update.php +0 -674
- data/lib/wp/wp-includes/user.php +0 -2292
- data/lib/wp/wp-includes/vars.php +0 -144
- data/lib/wp/wp-includes/version.php +0 -35
- data/lib/wp/wp-includes/widgets.php +0 -1514
- data/lib/wp/wp-includes/wlwmanifest.xml +0 -43
- data/lib/wp/wp-includes/wp-db.php +0 -2190
- data/lib/wp/wp-includes/wp-diff.php +0 -523
- data/lib/wp/wp-links-opml.php +0 -80
- data/lib/wp/wp-load.php +0 -73
- data/lib/wp/wp-login.php +0 -952
- data/lib/wp/wp-mail.php +0 -260
- data/lib/wp/wp-settings.php +0 -374
- data/lib/wp/wp-signup.php +0 -749
- data/lib/wp/wp-trackback.php +0 -127
- data/lib/wp/xmlrpc.php +0 -101
@@ -1,3501 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
/**
|
3
|
-
* Deprecated functions from past WordPress versions. You shouldn't use these
|
4
|
-
* functions and look for the alternatives instead. The functions will be
|
5
|
-
* removed in a later version.
|
6
|
-
*
|
7
|
-
* @package WordPress
|
8
|
-
* @subpackage Deprecated
|
9
|
-
*/
|
10
|
-
|
11
|
-
/*
|
12
|
-
* Deprecated functions come here to die.
|
13
|
-
*/
|
14
|
-
|
15
|
-
/**
|
16
|
-
* Entire Post data.
|
17
|
-
*
|
18
|
-
* @since 0.71
|
19
|
-
* @deprecated 1.5.1
|
20
|
-
* @deprecated Use get_post()
|
21
|
-
* @see get_post()
|
22
|
-
*
|
23
|
-
* @param int $postid
|
24
|
-
* @return array
|
25
|
-
*/
|
26
|
-
function get_postdata($postid) {
|
27
|
-
_deprecated_function( __FUNCTION__, '1.5.1', 'get_post()' );
|
28
|
-
|
29
|
-
$post = get_post($postid);
|
30
|
-
|
31
|
-
$postdata = array (
|
32
|
-
'ID' => $post->ID,
|
33
|
-
'Author_ID' => $post->post_author,
|
34
|
-
'Date' => $post->post_date,
|
35
|
-
'Content' => $post->post_content,
|
36
|
-
'Excerpt' => $post->post_excerpt,
|
37
|
-
'Title' => $post->post_title,
|
38
|
-
'Category' => $post->post_category,
|
39
|
-
'post_status' => $post->post_status,
|
40
|
-
'comment_status' => $post->comment_status,
|
41
|
-
'ping_status' => $post->ping_status,
|
42
|
-
'post_password' => $post->post_password,
|
43
|
-
'to_ping' => $post->to_ping,
|
44
|
-
'pinged' => $post->pinged,
|
45
|
-
'post_type' => $post->post_type,
|
46
|
-
'post_name' => $post->post_name
|
47
|
-
);
|
48
|
-
|
49
|
-
return $postdata;
|
50
|
-
}
|
51
|
-
|
52
|
-
/**
|
53
|
-
* Sets up the WordPress Loop.
|
54
|
-
*
|
55
|
-
* @since 1.0.1
|
56
|
-
* @deprecated 1.5.0
|
57
|
-
* @deprecated Use The Loop - {@link http://codex.wordpress.org/The_Loop Use new WordPress Loop}
|
58
|
-
*/
|
59
|
-
function start_wp() {
|
60
|
-
global $wp_query;
|
61
|
-
|
62
|
-
_deprecated_function( __FUNCTION__, '1.5', __('new WordPress Loop') );
|
63
|
-
|
64
|
-
// Since the old style loop is being used, advance the query iterator here.
|
65
|
-
$wp_query->next_post();
|
66
|
-
|
67
|
-
setup_postdata( get_post() );
|
68
|
-
}
|
69
|
-
|
70
|
-
/**
|
71
|
-
* Return or Print Category ID.
|
72
|
-
*
|
73
|
-
* @since 0.71
|
74
|
-
* @deprecated 0.71
|
75
|
-
* @deprecated use get_the_category()
|
76
|
-
* @see get_the_category()
|
77
|
-
*
|
78
|
-
* @param bool $echo
|
79
|
-
* @return null|int
|
80
|
-
*/
|
81
|
-
function the_category_ID($echo = true) {
|
82
|
-
_deprecated_function( __FUNCTION__, '0.71', 'get_the_category()' );
|
83
|
-
|
84
|
-
// Grab the first cat in the list.
|
85
|
-
$categories = get_the_category();
|
86
|
-
$cat = $categories[0]->term_id;
|
87
|
-
|
88
|
-
if ( $echo )
|
89
|
-
echo $cat;
|
90
|
-
|
91
|
-
return $cat;
|
92
|
-
}
|
93
|
-
|
94
|
-
/**
|
95
|
-
* Print category with optional text before and after.
|
96
|
-
*
|
97
|
-
* @since 0.71
|
98
|
-
* @deprecated 0.71
|
99
|
-
* @deprecated use get_the_category_by_ID()
|
100
|
-
* @see get_the_category_by_ID()
|
101
|
-
*
|
102
|
-
* @param string $before
|
103
|
-
* @param string $after
|
104
|
-
*/
|
105
|
-
function the_category_head($before='', $after='') {
|
106
|
-
global $currentcat, $previouscat;
|
107
|
-
|
108
|
-
_deprecated_function( __FUNCTION__, '0.71', 'get_the_category_by_ID()' );
|
109
|
-
|
110
|
-
// Grab the first cat in the list.
|
111
|
-
$categories = get_the_category();
|
112
|
-
$currentcat = $categories[0]->category_id;
|
113
|
-
if ( $currentcat != $previouscat ) {
|
114
|
-
echo $before;
|
115
|
-
echo get_the_category_by_ID($currentcat);
|
116
|
-
echo $after;
|
117
|
-
$previouscat = $currentcat;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
|
121
|
-
/**
|
122
|
-
* Prints link to the previous post.
|
123
|
-
*
|
124
|
-
* @since 1.5.0
|
125
|
-
* @deprecated 2.0.0
|
126
|
-
* @deprecated Use previous_post_link()
|
127
|
-
* @see previous_post_link()
|
128
|
-
*
|
129
|
-
* @param string $format
|
130
|
-
* @param string $previous
|
131
|
-
* @param string $title
|
132
|
-
* @param string $in_same_cat
|
133
|
-
* @param int $limitprev
|
134
|
-
* @param string $excluded_categories
|
135
|
-
*/
|
136
|
-
function previous_post($format='%', $previous='previous post: ', $title='yes', $in_same_cat='no', $limitprev=1, $excluded_categories='') {
|
137
|
-
|
138
|
-
_deprecated_function( __FUNCTION__, '2.0', 'previous_post_link()' );
|
139
|
-
|
140
|
-
if ( empty($in_same_cat) || 'no' == $in_same_cat )
|
141
|
-
$in_same_cat = false;
|
142
|
-
else
|
143
|
-
$in_same_cat = true;
|
144
|
-
|
145
|
-
$post = get_previous_post($in_same_cat, $excluded_categories);
|
146
|
-
|
147
|
-
if ( !$post )
|
148
|
-
return;
|
149
|
-
|
150
|
-
$string = '<a href="'.get_permalink($post->ID).'">'.$previous;
|
151
|
-
if ( 'yes' == $title )
|
152
|
-
$string .= apply_filters('the_title', $post->post_title, $post->ID);
|
153
|
-
$string .= '</a>';
|
154
|
-
$format = str_replace('%', $string, $format);
|
155
|
-
echo $format;
|
156
|
-
}
|
157
|
-
|
158
|
-
/**
|
159
|
-
* Prints link to the next post.
|
160
|
-
*
|
161
|
-
* @since 0.71
|
162
|
-
* @deprecated 2.0.0
|
163
|
-
* @deprecated Use next_post_link()
|
164
|
-
* @see next_post_link()
|
165
|
-
*
|
166
|
-
* @param string $format
|
167
|
-
* @param string $next
|
168
|
-
* @param string $title
|
169
|
-
* @param string $in_same_cat
|
170
|
-
* @param int $limitnext
|
171
|
-
* @param string $excluded_categories
|
172
|
-
*/
|
173
|
-
function next_post($format='%', $next='next post: ', $title='yes', $in_same_cat='no', $limitnext=1, $excluded_categories='') {
|
174
|
-
_deprecated_function( __FUNCTION__, '2.0', 'next_post_link()' );
|
175
|
-
|
176
|
-
if ( empty($in_same_cat) || 'no' == $in_same_cat )
|
177
|
-
$in_same_cat = false;
|
178
|
-
else
|
179
|
-
$in_same_cat = true;
|
180
|
-
|
181
|
-
$post = get_next_post($in_same_cat, $excluded_categories);
|
182
|
-
|
183
|
-
if ( !$post )
|
184
|
-
return;
|
185
|
-
|
186
|
-
$string = '<a href="'.get_permalink($post->ID).'">'.$next;
|
187
|
-
if ( 'yes' == $title )
|
188
|
-
$string .= apply_filters('the_title', $post->post_title, $post->ID);
|
189
|
-
$string .= '</a>';
|
190
|
-
$format = str_replace('%', $string, $format);
|
191
|
-
echo $format;
|
192
|
-
}
|
193
|
-
|
194
|
-
/**
|
195
|
-
* Whether user can create a post.
|
196
|
-
*
|
197
|
-
* @since 1.5.0
|
198
|
-
* @deprecated 2.0.0
|
199
|
-
* @deprecated Use current_user_can()
|
200
|
-
* @see current_user_can()
|
201
|
-
*
|
202
|
-
* @param int $user_id
|
203
|
-
* @param int $blog_id Not Used
|
204
|
-
* @param int $category_id Not Used
|
205
|
-
* @return bool
|
206
|
-
*/
|
207
|
-
function user_can_create_post($user_id, $blog_id = 1, $category_id = 'None') {
|
208
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
209
|
-
|
210
|
-
$author_data = get_userdata($user_id);
|
211
|
-
return ($author_data->user_level > 1);
|
212
|
-
}
|
213
|
-
|
214
|
-
/**
|
215
|
-
* Whether user can create a post.
|
216
|
-
*
|
217
|
-
* @since 1.5.0
|
218
|
-
* @deprecated 2.0.0
|
219
|
-
* @deprecated Use current_user_can()
|
220
|
-
* @see current_user_can()
|
221
|
-
*
|
222
|
-
* @param int $user_id
|
223
|
-
* @param int $blog_id Not Used
|
224
|
-
* @param int $category_id Not Used
|
225
|
-
* @return bool
|
226
|
-
*/
|
227
|
-
function user_can_create_draft($user_id, $blog_id = 1, $category_id = 'None') {
|
228
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
229
|
-
|
230
|
-
$author_data = get_userdata($user_id);
|
231
|
-
return ($author_data->user_level >= 1);
|
232
|
-
}
|
233
|
-
|
234
|
-
/**
|
235
|
-
* Whether user can edit a post.
|
236
|
-
*
|
237
|
-
* @since 1.5.0
|
238
|
-
* @deprecated 2.0.0
|
239
|
-
* @deprecated Use current_user_can()
|
240
|
-
* @see current_user_can()
|
241
|
-
*
|
242
|
-
* @param int $user_id
|
243
|
-
* @param int $post_id
|
244
|
-
* @param int $blog_id Not Used
|
245
|
-
* @return bool
|
246
|
-
*/
|
247
|
-
function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
|
248
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
249
|
-
|
250
|
-
$author_data = get_userdata($user_id);
|
251
|
-
$post = get_post($post_id);
|
252
|
-
$post_author_data = get_userdata($post->post_author);
|
253
|
-
|
254
|
-
if ( (($user_id == $post_author_data->ID) && !($post->post_status == 'publish' && $author_data->user_level < 2))
|
255
|
-
|| ($author_data->user_level > $post_author_data->user_level)
|
256
|
-
|| ($author_data->user_level >= 10) ) {
|
257
|
-
return true;
|
258
|
-
} else {
|
259
|
-
return false;
|
260
|
-
}
|
261
|
-
}
|
262
|
-
|
263
|
-
/**
|
264
|
-
* Whether user can delete a post.
|
265
|
-
*
|
266
|
-
* @since 1.5.0
|
267
|
-
* @deprecated 2.0.0
|
268
|
-
* @deprecated Use current_user_can()
|
269
|
-
* @see current_user_can()
|
270
|
-
*
|
271
|
-
* @param int $user_id
|
272
|
-
* @param int $post_id
|
273
|
-
* @param int $blog_id Not Used
|
274
|
-
* @return bool
|
275
|
-
*/
|
276
|
-
function user_can_delete_post($user_id, $post_id, $blog_id = 1) {
|
277
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
278
|
-
|
279
|
-
// right now if one can edit, one can delete
|
280
|
-
return user_can_edit_post($user_id, $post_id, $blog_id);
|
281
|
-
}
|
282
|
-
|
283
|
-
/**
|
284
|
-
* Whether user can set new posts' dates.
|
285
|
-
*
|
286
|
-
* @since 1.5.0
|
287
|
-
* @deprecated 2.0.0
|
288
|
-
* @deprecated Use current_user_can()
|
289
|
-
* @see current_user_can()
|
290
|
-
*
|
291
|
-
* @param int $user_id
|
292
|
-
* @param int $blog_id Not Used
|
293
|
-
* @param int $category_id Not Used
|
294
|
-
* @return bool
|
295
|
-
*/
|
296
|
-
function user_can_set_post_date($user_id, $blog_id = 1, $category_id = 'None') {
|
297
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
298
|
-
|
299
|
-
$author_data = get_userdata($user_id);
|
300
|
-
return (($author_data->user_level > 4) && user_can_create_post($user_id, $blog_id, $category_id));
|
301
|
-
}
|
302
|
-
|
303
|
-
/**
|
304
|
-
* Whether user can delete a post.
|
305
|
-
*
|
306
|
-
* @since 1.5.0
|
307
|
-
* @deprecated 2.0.0
|
308
|
-
* @deprecated Use current_user_can()
|
309
|
-
* @see current_user_can()
|
310
|
-
*
|
311
|
-
* @param int $user_id
|
312
|
-
* @param int $post_id
|
313
|
-
* @param int $blog_id Not Used
|
314
|
-
* @return bool returns true if $user_id can edit $post_id's date
|
315
|
-
*/
|
316
|
-
function user_can_edit_post_date($user_id, $post_id, $blog_id = 1) {
|
317
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
318
|
-
|
319
|
-
$author_data = get_userdata($user_id);
|
320
|
-
return (($author_data->user_level > 4) && user_can_edit_post($user_id, $post_id, $blog_id));
|
321
|
-
}
|
322
|
-
|
323
|
-
/**
|
324
|
-
* Whether user can delete a post.
|
325
|
-
*
|
326
|
-
* @since 1.5.0
|
327
|
-
* @deprecated 2.0.0
|
328
|
-
* @deprecated Use current_user_can()
|
329
|
-
* @see current_user_can()
|
330
|
-
*
|
331
|
-
* @param int $user_id
|
332
|
-
* @param int $post_id
|
333
|
-
* @param int $blog_id Not Used
|
334
|
-
* @return bool returns true if $user_id can edit $post_id's comments
|
335
|
-
*/
|
336
|
-
function user_can_edit_post_comments($user_id, $post_id, $blog_id = 1) {
|
337
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
338
|
-
|
339
|
-
// right now if one can edit a post, one can edit comments made on it
|
340
|
-
return user_can_edit_post($user_id, $post_id, $blog_id);
|
341
|
-
}
|
342
|
-
|
343
|
-
/**
|
344
|
-
* Whether user can delete a post.
|
345
|
-
*
|
346
|
-
* @since 1.5.0
|
347
|
-
* @deprecated 2.0.0
|
348
|
-
* @deprecated Use current_user_can()
|
349
|
-
* @see current_user_can()
|
350
|
-
*
|
351
|
-
* @param int $user_id
|
352
|
-
* @param int $post_id
|
353
|
-
* @param int $blog_id Not Used
|
354
|
-
* @return bool returns true if $user_id can delete $post_id's comments
|
355
|
-
*/
|
356
|
-
function user_can_delete_post_comments($user_id, $post_id, $blog_id = 1) {
|
357
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
358
|
-
|
359
|
-
// right now if one can edit comments, one can delete comments
|
360
|
-
return user_can_edit_post_comments($user_id, $post_id, $blog_id);
|
361
|
-
}
|
362
|
-
|
363
|
-
/**
|
364
|
-
* Can user can edit other user.
|
365
|
-
*
|
366
|
-
* @since 1.5.0
|
367
|
-
* @deprecated 2.0.0
|
368
|
-
* @deprecated Use current_user_can()
|
369
|
-
* @see current_user_can()
|
370
|
-
*
|
371
|
-
* @param int $user_id
|
372
|
-
* @param int $other_user
|
373
|
-
* @return bool
|
374
|
-
*/
|
375
|
-
function user_can_edit_user($user_id, $other_user) {
|
376
|
-
_deprecated_function( __FUNCTION__, '2.0', 'current_user_can()' );
|
377
|
-
|
378
|
-
$user = get_userdata($user_id);
|
379
|
-
$other = get_userdata($other_user);
|
380
|
-
if ( $user->user_level > $other->user_level || $user->user_level > 8 || $user->ID == $other->ID )
|
381
|
-
return true;
|
382
|
-
else
|
383
|
-
return false;
|
384
|
-
}
|
385
|
-
|
386
|
-
/**
|
387
|
-
* Gets the links associated with category $cat_name.
|
388
|
-
*
|
389
|
-
* @since 0.71
|
390
|
-
* @deprecated 2.1.0
|
391
|
-
* @deprecated Use get_bookmarks()
|
392
|
-
* @see get_bookmarks()
|
393
|
-
*
|
394
|
-
* @param string $cat_name Optional. The category name to use. If no match is found uses all.
|
395
|
-
* @param string $before Optional. The html to output before the link.
|
396
|
-
* @param string $after Optional. The html to output after the link.
|
397
|
-
* @param string $between Optional. The html to output between the link/image and its description. Not used if no image or $show_images is true.
|
398
|
-
* @param bool $show_images Optional. Whether to show images (if defined).
|
399
|
-
* @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
|
400
|
-
* If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a
|
401
|
-
* random order.
|
402
|
-
* @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
|
403
|
-
* @param bool $show_rating Optional. Show rating stars/chars.
|
404
|
-
* @param int $limit Optional. Limit to X entries. If not specified, all entries are shown.
|
405
|
-
* @param int $show_updated Optional. Whether to show last updated timestamp
|
406
|
-
*/
|
407
|
-
function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
|
408
|
-
$show_description = true, $show_rating = false,
|
409
|
-
$limit = -1, $show_updated = 0) {
|
410
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
|
411
|
-
|
412
|
-
$cat_id = -1;
|
413
|
-
$cat = get_term_by('name', $cat_name, 'link_category');
|
414
|
-
if ( $cat )
|
415
|
-
$cat_id = $cat->term_id;
|
416
|
-
|
417
|
-
get_links($cat_id, $before, $after, $between, $show_images, $orderby, $show_description, $show_rating, $limit, $show_updated);
|
418
|
-
}
|
419
|
-
|
420
|
-
/**
|
421
|
-
* Gets the links associated with the named category.
|
422
|
-
*
|
423
|
-
* @since 1.0.1
|
424
|
-
* @deprecated 2.1.0
|
425
|
-
* @deprecated Use wp_list_bookmarks()
|
426
|
-
* @see wp_list_bookmarks()
|
427
|
-
*
|
428
|
-
* @param string $category The category to use.
|
429
|
-
* @param string $args
|
430
|
-
* @return bool|null
|
431
|
-
*/
|
432
|
-
function wp_get_linksbyname($category, $args = '') {
|
433
|
-
_deprecated_function(__FUNCTION__, '2.1', 'wp_list_bookmarks()');
|
434
|
-
|
435
|
-
$defaults = array(
|
436
|
-
'after' => '<br />',
|
437
|
-
'before' => '',
|
438
|
-
'categorize' => 0,
|
439
|
-
'category_after' => '',
|
440
|
-
'category_before' => '',
|
441
|
-
'category_name' => $category,
|
442
|
-
'show_description' => 1,
|
443
|
-
'title_li' => '',
|
444
|
-
);
|
445
|
-
|
446
|
-
$r = wp_parse_args( $args, $defaults );
|
447
|
-
|
448
|
-
return wp_list_bookmarks($r);
|
449
|
-
}
|
450
|
-
|
451
|
-
/**
|
452
|
-
* Gets an array of link objects associated with category $cat_name.
|
453
|
-
*
|
454
|
-
* <code>
|
455
|
-
* $links = get_linkobjectsbyname('fred');
|
456
|
-
* foreach ($links as $link) {
|
457
|
-
* echo '<li>'.$link->link_name.'</li>';
|
458
|
-
* }
|
459
|
-
* </code>
|
460
|
-
*
|
461
|
-
* @since 1.0.1
|
462
|
-
* @deprecated 2.1.0
|
463
|
-
* @deprecated Use get_bookmarks()
|
464
|
-
* @see get_bookmarks()
|
465
|
-
*
|
466
|
-
* @param string $cat_name The category name to use. If no match is found uses all.
|
467
|
-
* @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'.
|
468
|
-
* Or maybe owner. If you start the name with an underscore the order will be reversed. You can also
|
469
|
-
* specify 'rand' as the order which will return links in a random order.
|
470
|
-
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
471
|
-
* @return unknown
|
472
|
-
*/
|
473
|
-
function get_linkobjectsbyname($cat_name = "noname" , $orderby = 'name', $limit = -1) {
|
474
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
|
475
|
-
|
476
|
-
$cat_id = -1;
|
477
|
-
$cat = get_term_by('name', $cat_name, 'link_category');
|
478
|
-
if ( $cat )
|
479
|
-
$cat_id = $cat->term_id;
|
480
|
-
|
481
|
-
return get_linkobjects($cat_id, $orderby, $limit);
|
482
|
-
}
|
483
|
-
|
484
|
-
/**
|
485
|
-
* Gets an array of link objects associated with category n.
|
486
|
-
*
|
487
|
-
* Usage:
|
488
|
-
* <code>
|
489
|
-
* $links = get_linkobjects(1);
|
490
|
-
* if ($links) {
|
491
|
-
* foreach ($links as $link) {
|
492
|
-
* echo '<li>'.$link->link_name.'<br />'.$link->link_description.'</li>';
|
493
|
-
* }
|
494
|
-
* }
|
495
|
-
* </code>
|
496
|
-
*
|
497
|
-
* Fields are:
|
498
|
-
* <ol>
|
499
|
-
* <li>link_id</li>
|
500
|
-
* <li>link_url</li>
|
501
|
-
* <li>link_name</li>
|
502
|
-
* <li>link_image</li>
|
503
|
-
* <li>link_target</li>
|
504
|
-
* <li>link_category</li>
|
505
|
-
* <li>link_description</li>
|
506
|
-
* <li>link_visible</li>
|
507
|
-
* <li>link_owner</li>
|
508
|
-
* <li>link_rating</li>
|
509
|
-
* <li>link_updated</li>
|
510
|
-
* <li>link_rel</li>
|
511
|
-
* <li>link_notes</li>
|
512
|
-
* </ol>
|
513
|
-
*
|
514
|
-
* @since 1.0.1
|
515
|
-
* @deprecated 2.1.0
|
516
|
-
* @deprecated Use get_bookmarks()
|
517
|
-
* @see get_bookmarks()
|
518
|
-
*
|
519
|
-
* @param int $category The category to use. If no category supplied uses all
|
520
|
-
* @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
|
521
|
-
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
522
|
-
* underscore the order will be reversed. You can also specify 'rand' as the
|
523
|
-
* order which will return links in a random order.
|
524
|
-
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
525
|
-
* @return unknown
|
526
|
-
*/
|
527
|
-
function get_linkobjects($category = 0, $orderby = 'name', $limit = 0) {
|
528
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
|
529
|
-
|
530
|
-
$links = get_bookmarks( array( 'category' => $category, 'orderby' => $orderby, 'limit' => $limit ) ) ;
|
531
|
-
|
532
|
-
$links_array = array();
|
533
|
-
foreach ($links as $link)
|
534
|
-
$links_array[] = $link;
|
535
|
-
|
536
|
-
return $links_array;
|
537
|
-
}
|
538
|
-
|
539
|
-
/**
|
540
|
-
* Gets the links associated with category 'cat_name' and display rating stars/chars.
|
541
|
-
*
|
542
|
-
* @since 0.71
|
543
|
-
* @deprecated 2.1.0
|
544
|
-
* @deprecated Use get_bookmarks()
|
545
|
-
* @see get_bookmarks()
|
546
|
-
*
|
547
|
-
* @param string $cat_name The category name to use. If no match is found uses all
|
548
|
-
* @param string $before The html to output before the link
|
549
|
-
* @param string $after The html to output after the link
|
550
|
-
* @param string $between The html to output between the link/image and its description. Not used if no image or show_images is true
|
551
|
-
* @param bool $show_images Whether to show images (if defined).
|
552
|
-
* @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
|
553
|
-
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
554
|
-
* underscore the order will be reversed. You can also specify 'rand' as the
|
555
|
-
* order which will return links in a random order.
|
556
|
-
* @param bool $show_description Whether to show the description if show_images=false/not defined
|
557
|
-
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
558
|
-
* @param int $show_updated Whether to show last updated timestamp
|
559
|
-
*/
|
560
|
-
function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
|
561
|
-
$show_images = true, $orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
|
562
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
|
563
|
-
|
564
|
-
get_linksbyname($cat_name, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
|
565
|
-
}
|
566
|
-
|
567
|
-
/**
|
568
|
-
* Gets the links associated with category n and display rating stars/chars.
|
569
|
-
*
|
570
|
-
* @since 0.71
|
571
|
-
* @deprecated 2.1.0
|
572
|
-
* @deprecated Use get_bookmarks()
|
573
|
-
* @see get_bookmarks()
|
574
|
-
*
|
575
|
-
* @param int $category The category to use. If no category supplied uses all
|
576
|
-
* @param string $before The html to output before the link
|
577
|
-
* @param string $after The html to output after the link
|
578
|
-
* @param string $between The html to output between the link/image and its description. Not used if no image or show_images == true
|
579
|
-
* @param bool $show_images Whether to show images (if defined).
|
580
|
-
* @param string $orderby The order to output the links. E.g. 'id', 'name', 'url',
|
581
|
-
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
582
|
-
* underscore the order will be reversed. You can also specify 'rand' as the
|
583
|
-
* order which will return links in a random order.
|
584
|
-
* @param bool $show_description Whether to show the description if show_images=false/not defined.
|
585
|
-
* @param string $limit Limit to X entries. If not specified, all entries are shown.
|
586
|
-
* @param int $show_updated Whether to show last updated timestamp
|
587
|
-
*/
|
588
|
-
function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
|
589
|
-
$orderby = 'id', $show_description = true, $limit = -1, $show_updated = 0) {
|
590
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
|
591
|
-
|
592
|
-
get_links($category, $before, $after, $between, $show_images, $orderby, $show_description, true, $limit, $show_updated);
|
593
|
-
}
|
594
|
-
|
595
|
-
/**
|
596
|
-
* Gets the auto_toggle setting.
|
597
|
-
*
|
598
|
-
* @since 0.71
|
599
|
-
* @deprecated 2.1.0
|
600
|
-
* @deprecated No alternative function available
|
601
|
-
*
|
602
|
-
* @param int $id The category to get. If no category supplied uses 0
|
603
|
-
* @return int Only returns 0.
|
604
|
-
*/
|
605
|
-
function get_autotoggle($id = 0) {
|
606
|
-
_deprecated_function( __FUNCTION__, '2.1' );
|
607
|
-
return 0;
|
608
|
-
}
|
609
|
-
|
610
|
-
/**
|
611
|
-
* @since 0.71
|
612
|
-
* @deprecated 2.1.0
|
613
|
-
* @deprecated Use wp_list_categories()
|
614
|
-
* @see wp_list_categories()
|
615
|
-
*
|
616
|
-
* @param int $optionall
|
617
|
-
* @param string $all
|
618
|
-
* @param string $sort_column
|
619
|
-
* @param string $sort_order
|
620
|
-
* @param string $file
|
621
|
-
* @param bool $list
|
622
|
-
* @param int $optiondates
|
623
|
-
* @param int $optioncount
|
624
|
-
* @param int $hide_empty
|
625
|
-
* @param int $use_desc_for_title
|
626
|
-
* @param bool $children
|
627
|
-
* @param int $child_of
|
628
|
-
* @param int $categories
|
629
|
-
* @param int $recurse
|
630
|
-
* @param string $feed
|
631
|
-
* @param string $feed_image
|
632
|
-
* @param string $exclude
|
633
|
-
* @param bool $hierarchical
|
634
|
-
* @return unknown
|
635
|
-
*/
|
636
|
-
function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0,
|
637
|
-
$optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=false, $child_of=0, $categories=0,
|
638
|
-
$recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=false) {
|
639
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' );
|
640
|
-
|
641
|
-
$query = compact('optionall', 'all', 'sort_column', 'sort_order', 'file', 'list', 'optiondates', 'optioncount', 'hide_empty', 'use_desc_for_title', 'children',
|
642
|
-
'child_of', 'categories', 'recurse', 'feed', 'feed_image', 'exclude', 'hierarchical');
|
643
|
-
return wp_list_cats($query);
|
644
|
-
}
|
645
|
-
|
646
|
-
/**
|
647
|
-
* @since 1.2.0
|
648
|
-
* @deprecated 2.1.0
|
649
|
-
* @deprecated Use wp_list_categories()
|
650
|
-
* @see wp_list_categories()
|
651
|
-
*
|
652
|
-
* @param string|array $args
|
653
|
-
* @return unknown
|
654
|
-
*/
|
655
|
-
function wp_list_cats($args = '') {
|
656
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_list_categories()' );
|
657
|
-
|
658
|
-
$r = wp_parse_args( $args );
|
659
|
-
|
660
|
-
// Map to new names.
|
661
|
-
if ( isset($r['optionall']) && isset($r['all']))
|
662
|
-
$r['show_option_all'] = $r['all'];
|
663
|
-
if ( isset($r['sort_column']) )
|
664
|
-
$r['orderby'] = $r['sort_column'];
|
665
|
-
if ( isset($r['sort_order']) )
|
666
|
-
$r['order'] = $r['sort_order'];
|
667
|
-
if ( isset($r['optiondates']) )
|
668
|
-
$r['show_last_update'] = $r['optiondates'];
|
669
|
-
if ( isset($r['optioncount']) )
|
670
|
-
$r['show_count'] = $r['optioncount'];
|
671
|
-
if ( isset($r['list']) )
|
672
|
-
$r['style'] = $r['list'] ? 'list' : 'break';
|
673
|
-
$r['title_li'] = '';
|
674
|
-
|
675
|
-
return wp_list_categories($r);
|
676
|
-
}
|
677
|
-
|
678
|
-
/**
|
679
|
-
* @since 0.71
|
680
|
-
* @deprecated 2.1.0
|
681
|
-
* @deprecated Use wp_dropdown_categories()
|
682
|
-
* @see wp_dropdown_categories()
|
683
|
-
*
|
684
|
-
* @param int $optionall
|
685
|
-
* @param string $all
|
686
|
-
* @param string $orderby
|
687
|
-
* @param string $order
|
688
|
-
* @param int $show_last_update
|
689
|
-
* @param int $show_count
|
690
|
-
* @param int $hide_empty
|
691
|
-
* @param bool $optionnone
|
692
|
-
* @param int $selected
|
693
|
-
* @param int $exclude
|
694
|
-
* @return unknown
|
695
|
-
*/
|
696
|
-
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',
|
697
|
-
$show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,
|
698
|
-
$selected = 0, $exclude = 0) {
|
699
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_dropdown_categories()' );
|
700
|
-
|
701
|
-
$show_option_all = '';
|
702
|
-
if ( $optionall )
|
703
|
-
$show_option_all = $all;
|
704
|
-
|
705
|
-
$show_option_none = '';
|
706
|
-
if ( $optionnone )
|
707
|
-
$show_option_none = __('None');
|
708
|
-
|
709
|
-
$vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',
|
710
|
-
'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');
|
711
|
-
$query = add_query_arg($vars, '');
|
712
|
-
return wp_dropdown_categories($query);
|
713
|
-
}
|
714
|
-
|
715
|
-
/**
|
716
|
-
* List authors.
|
717
|
-
*
|
718
|
-
* @since 1.2.0
|
719
|
-
* @deprecated 2.1.0
|
720
|
-
* @deprecated Use wp_list_authors()
|
721
|
-
* @see wp_list_authors()
|
722
|
-
*
|
723
|
-
* @param bool $optioncount
|
724
|
-
* @param bool $exclude_admin
|
725
|
-
* @param bool $show_fullname
|
726
|
-
* @param bool $hide_empty
|
727
|
-
* @param string $feed
|
728
|
-
* @param string $feed_image
|
729
|
-
* @return unknown
|
730
|
-
*/
|
731
|
-
function list_authors($optioncount = false, $exclude_admin = true, $show_fullname = false, $hide_empty = true, $feed = '', $feed_image = '') {
|
732
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_list_authors()' );
|
733
|
-
|
734
|
-
$args = compact('optioncount', 'exclude_admin', 'show_fullname', 'hide_empty', 'feed', 'feed_image');
|
735
|
-
return wp_list_authors($args);
|
736
|
-
}
|
737
|
-
|
738
|
-
/**
|
739
|
-
* @since 1.0.1
|
740
|
-
* @deprecated 2.1.0
|
741
|
-
* @deprecated Use wp_get_post_categories()
|
742
|
-
* @see wp_get_post_categories()
|
743
|
-
*
|
744
|
-
* @param int $blogid Not Used
|
745
|
-
* @param int $post_ID
|
746
|
-
* @return unknown
|
747
|
-
*/
|
748
|
-
function wp_get_post_cats($blogid = '1', $post_ID = 0) {
|
749
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_get_post_categories()' );
|
750
|
-
return wp_get_post_categories($post_ID);
|
751
|
-
}
|
752
|
-
|
753
|
-
/**
|
754
|
-
* Sets the categories that the post id belongs to.
|
755
|
-
*
|
756
|
-
* @since 1.0.1
|
757
|
-
* @deprecated 2.1.0
|
758
|
-
* @deprecated Use wp_set_post_categories()
|
759
|
-
* @see wp_set_post_categories()
|
760
|
-
*
|
761
|
-
* @param int $blogid Not used
|
762
|
-
* @param int $post_ID
|
763
|
-
* @param array $post_categories
|
764
|
-
* @return unknown
|
765
|
-
*/
|
766
|
-
function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) {
|
767
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_set_post_categories()' );
|
768
|
-
return wp_set_post_categories($post_ID, $post_categories);
|
769
|
-
}
|
770
|
-
|
771
|
-
/**
|
772
|
-
* @since 0.71
|
773
|
-
* @deprecated 2.1.0
|
774
|
-
* @deprecated Use wp_get_archives()
|
775
|
-
* @see wp_get_archives()
|
776
|
-
*
|
777
|
-
* @param string $type
|
778
|
-
* @param string $limit
|
779
|
-
* @param string $format
|
780
|
-
* @param string $before
|
781
|
-
* @param string $after
|
782
|
-
* @param bool $show_post_count
|
783
|
-
* @return unknown
|
784
|
-
*/
|
785
|
-
function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
|
786
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_get_archives()' );
|
787
|
-
$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
|
788
|
-
return wp_get_archives($args);
|
789
|
-
}
|
790
|
-
|
791
|
-
/**
|
792
|
-
* Returns or Prints link to the author's posts.
|
793
|
-
*
|
794
|
-
* @since 1.2.0
|
795
|
-
* @deprecated 2.1.0
|
796
|
-
* @deprecated Use get_author_posts_url()
|
797
|
-
* @see get_author_posts_url()
|
798
|
-
*
|
799
|
-
* @param bool $echo
|
800
|
-
* @param int $author_id
|
801
|
-
* @param string $author_nicename Optional.
|
802
|
-
* @return string|null
|
803
|
-
*/
|
804
|
-
function get_author_link($echo, $author_id, $author_nicename = '') {
|
805
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_author_posts_url()' );
|
806
|
-
|
807
|
-
$link = get_author_posts_url($author_id, $author_nicename);
|
808
|
-
|
809
|
-
if ( $echo )
|
810
|
-
echo $link;
|
811
|
-
return $link;
|
812
|
-
}
|
813
|
-
|
814
|
-
/**
|
815
|
-
* Print list of pages based on arguments.
|
816
|
-
*
|
817
|
-
* @since 0.71
|
818
|
-
* @deprecated 2.1.0
|
819
|
-
* @deprecated Use wp_link_pages()
|
820
|
-
* @see wp_link_pages()
|
821
|
-
*
|
822
|
-
* @param string $before
|
823
|
-
* @param string $after
|
824
|
-
* @param string $next_or_number
|
825
|
-
* @param string $nextpagelink
|
826
|
-
* @param string $previouspagelink
|
827
|
-
* @param string $pagelink
|
828
|
-
* @param string $more_file
|
829
|
-
* @return string
|
830
|
-
*/
|
831
|
-
function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page',
|
832
|
-
$pagelink='%', $more_file='') {
|
833
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_link_pages()' );
|
834
|
-
|
835
|
-
$args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file');
|
836
|
-
return wp_link_pages($args);
|
837
|
-
}
|
838
|
-
|
839
|
-
/**
|
840
|
-
* Get value based on option.
|
841
|
-
*
|
842
|
-
* @since 0.71
|
843
|
-
* @deprecated 2.1.0
|
844
|
-
* @deprecated Use get_option()
|
845
|
-
* @see get_option()
|
846
|
-
*
|
847
|
-
* @param string $option
|
848
|
-
* @return string
|
849
|
-
*/
|
850
|
-
function get_settings($option) {
|
851
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_option()' );
|
852
|
-
|
853
|
-
return get_option($option);
|
854
|
-
}
|
855
|
-
|
856
|
-
/**
|
857
|
-
* Print the permalink of the current post in the loop.
|
858
|
-
*
|
859
|
-
* @since 0.71
|
860
|
-
* @deprecated 1.2.0
|
861
|
-
* @deprecated Use the_permalink()
|
862
|
-
* @see the_permalink()
|
863
|
-
*/
|
864
|
-
function permalink_link() {
|
865
|
-
_deprecated_function( __FUNCTION__, '1.2', 'the_permalink()' );
|
866
|
-
the_permalink();
|
867
|
-
}
|
868
|
-
|
869
|
-
/**
|
870
|
-
* Print the permalink to the RSS feed.
|
871
|
-
*
|
872
|
-
* @since 0.71
|
873
|
-
* @deprecated 2.3.0
|
874
|
-
* @deprecated Use the_permalink_rss()
|
875
|
-
* @see the_permalink_rss()
|
876
|
-
*
|
877
|
-
* @param string $deprecated
|
878
|
-
*/
|
879
|
-
function permalink_single_rss($deprecated = '') {
|
880
|
-
_deprecated_function( __FUNCTION__, '2.3', 'the_permalink_rss()' );
|
881
|
-
the_permalink_rss();
|
882
|
-
}
|
883
|
-
|
884
|
-
/**
|
885
|
-
* Gets the links associated with category.
|
886
|
-
*
|
887
|
-
* @see get_links() for argument information that can be used in $args
|
888
|
-
* @since 1.0.1
|
889
|
-
* @deprecated 2.1.0
|
890
|
-
* @deprecated Use wp_list_bookmarks()
|
891
|
-
* @see wp_list_bookmarks()
|
892
|
-
*
|
893
|
-
* @param string $args a query string
|
894
|
-
* @return null|string
|
895
|
-
*/
|
896
|
-
function wp_get_links($args = '') {
|
897
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' );
|
898
|
-
|
899
|
-
if ( strpos( $args, '=' ) === false ) {
|
900
|
-
$cat_id = $args;
|
901
|
-
$args = add_query_arg( 'category', $cat_id, $args );
|
902
|
-
}
|
903
|
-
|
904
|
-
$defaults = array(
|
905
|
-
'after' => '<br />',
|
906
|
-
'before' => '',
|
907
|
-
'between' => ' ',
|
908
|
-
'categorize' => 0,
|
909
|
-
'category' => '',
|
910
|
-
'echo' => true,
|
911
|
-
'limit' => -1,
|
912
|
-
'orderby' => 'name',
|
913
|
-
'show_description' => true,
|
914
|
-
'show_images' => true,
|
915
|
-
'show_rating' => false,
|
916
|
-
'show_updated' => true,
|
917
|
-
'title_li' => '',
|
918
|
-
);
|
919
|
-
|
920
|
-
$r = wp_parse_args( $args, $defaults );
|
921
|
-
|
922
|
-
return wp_list_bookmarks($r);
|
923
|
-
}
|
924
|
-
|
925
|
-
/**
|
926
|
-
* Gets the links associated with category by id.
|
927
|
-
*
|
928
|
-
* @since 0.71
|
929
|
-
* @deprecated 2.1.0
|
930
|
-
* @deprecated Use get_bookmarks()
|
931
|
-
* @see get_bookmarks()
|
932
|
-
*
|
933
|
-
* @param int $category The category to use. If no category supplied uses all
|
934
|
-
* @param string $before the html to output before the link
|
935
|
-
* @param string $after the html to output after the link
|
936
|
-
* @param string $between the html to output between the link/image and its description.
|
937
|
-
* Not used if no image or show_images == true
|
938
|
-
* @param bool $show_images whether to show images (if defined).
|
939
|
-
* @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
|
940
|
-
* 'description', or 'rating'. Or maybe owner. If you start the name with an
|
941
|
-
* underscore the order will be reversed. You can also specify 'rand' as the order
|
942
|
-
* which will return links in a random order.
|
943
|
-
* @param bool $show_description whether to show the description if show_images=false/not defined.
|
944
|
-
* @param bool $show_rating show rating stars/chars
|
945
|
-
* @param int $limit Limit to X entries. If not specified, all entries are shown.
|
946
|
-
* @param int $show_updated whether to show last updated timestamp
|
947
|
-
* @param bool $echo whether to echo the results, or return them instead
|
948
|
-
* @return null|string
|
949
|
-
*/
|
950
|
-
function get_links($category = -1, $before = '', $after = '<br />', $between = ' ', $show_images = true, $orderby = 'name',
|
951
|
-
$show_description = true, $show_rating = false, $limit = -1, $show_updated = 1, $echo = true) {
|
952
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmarks()' );
|
953
|
-
|
954
|
-
$order = 'ASC';
|
955
|
-
if ( substr($orderby, 0, 1) == '_' ) {
|
956
|
-
$order = 'DESC';
|
957
|
-
$orderby = substr($orderby, 1);
|
958
|
-
}
|
959
|
-
|
960
|
-
if ( $category == -1 ) //get_bookmarks uses '' to signify all categories
|
961
|
-
$category = '';
|
962
|
-
|
963
|
-
$results = get_bookmarks(array('category' => $category, 'orderby' => $orderby, 'order' => $order, 'show_updated' => $show_updated, 'limit' => $limit));
|
964
|
-
|
965
|
-
if ( !$results )
|
966
|
-
return;
|
967
|
-
|
968
|
-
$output = '';
|
969
|
-
|
970
|
-
foreach ( (array) $results as $row ) {
|
971
|
-
if ( !isset($row->recently_updated) )
|
972
|
-
$row->recently_updated = false;
|
973
|
-
$output .= $before;
|
974
|
-
if ( $show_updated && $row->recently_updated )
|
975
|
-
$output .= get_option('links_recently_updated_prepend');
|
976
|
-
$the_link = '#';
|
977
|
-
if ( !empty($row->link_url) )
|
978
|
-
$the_link = esc_url($row->link_url);
|
979
|
-
$rel = $row->link_rel;
|
980
|
-
if ( '' != $rel )
|
981
|
-
$rel = ' rel="' . $rel . '"';
|
982
|
-
|
983
|
-
$desc = esc_attr(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display'));
|
984
|
-
$name = esc_attr(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display'));
|
985
|
-
$title = $desc;
|
986
|
-
|
987
|
-
if ( $show_updated )
|
988
|
-
if (substr($row->link_updated_f, 0, 2) != '00')
|
989
|
-
$title .= ' ('.__('Last updated') . ' ' . date(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * HOUR_IN_SECONDS)) . ')';
|
990
|
-
|
991
|
-
if ( '' != $title )
|
992
|
-
$title = ' title="' . $title . '"';
|
993
|
-
|
994
|
-
$alt = ' alt="' . $name . '"';
|
995
|
-
|
996
|
-
$target = $row->link_target;
|
997
|
-
if ( '' != $target )
|
998
|
-
$target = ' target="' . $target . '"';
|
999
|
-
|
1000
|
-
$output .= '<a href="' . $the_link . '"' . $rel . $title . $target. '>';
|
1001
|
-
|
1002
|
-
if ( $row->link_image != null && $show_images ) {
|
1003
|
-
if ( strpos($row->link_image, 'http') !== false )
|
1004
|
-
$output .= "<img src=\"$row->link_image\" $alt $title />";
|
1005
|
-
else // If it's a relative path
|
1006
|
-
$output .= "<img src=\"" . get_option('siteurl') . "$row->link_image\" $alt $title />";
|
1007
|
-
} else {
|
1008
|
-
$output .= $name;
|
1009
|
-
}
|
1010
|
-
|
1011
|
-
$output .= '</a>';
|
1012
|
-
|
1013
|
-
if ( $show_updated && $row->recently_updated )
|
1014
|
-
$output .= get_option('links_recently_updated_append');
|
1015
|
-
|
1016
|
-
if ( $show_description && '' != $desc )
|
1017
|
-
$output .= $between . $desc;
|
1018
|
-
|
1019
|
-
if ($show_rating) {
|
1020
|
-
$output .= $between . get_linkrating($row);
|
1021
|
-
}
|
1022
|
-
|
1023
|
-
$output .= "$after\n";
|
1024
|
-
} // end while
|
1025
|
-
|
1026
|
-
if ( !$echo )
|
1027
|
-
return $output;
|
1028
|
-
echo $output;
|
1029
|
-
}
|
1030
|
-
|
1031
|
-
/**
|
1032
|
-
* Output entire list of links by category.
|
1033
|
-
*
|
1034
|
-
* Output a list of all links, listed by category, using the settings in
|
1035
|
-
* $wpdb->linkcategories and output it as a nested HTML unordered list.
|
1036
|
-
*
|
1037
|
-
* @since 1.0.1
|
1038
|
-
* @deprecated 2.1.0
|
1039
|
-
* @deprecated Use wp_list_bookmarks()
|
1040
|
-
* @see wp_list_bookmarks()
|
1041
|
-
*
|
1042
|
-
* @param string $order Sort link categories by 'name' or 'id'
|
1043
|
-
*/
|
1044
|
-
function get_links_list($order = 'name') {
|
1045
|
-
_deprecated_function( __FUNCTION__, '2.1', 'wp_list_bookmarks()' );
|
1046
|
-
|
1047
|
-
$order = strtolower($order);
|
1048
|
-
|
1049
|
-
// Handle link category sorting
|
1050
|
-
$direction = 'ASC';
|
1051
|
-
if ( '_' == substr($order,0,1) ) {
|
1052
|
-
$direction = 'DESC';
|
1053
|
-
$order = substr($order,1);
|
1054
|
-
}
|
1055
|
-
|
1056
|
-
if ( !isset($direction) )
|
1057
|
-
$direction = '';
|
1058
|
-
|
1059
|
-
$cats = get_categories(array('type' => 'link', 'orderby' => $order, 'order' => $direction, 'hierarchical' => 0));
|
1060
|
-
|
1061
|
-
// Display each category
|
1062
|
-
if ( $cats ) {
|
1063
|
-
foreach ( (array) $cats as $cat ) {
|
1064
|
-
// Handle each category.
|
1065
|
-
|
1066
|
-
// Display the category name
|
1067
|
-
echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n";
|
1068
|
-
// Call get_links() with all the appropriate params
|
1069
|
-
get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false);
|
1070
|
-
|
1071
|
-
// Close the last category
|
1072
|
-
echo "\n\t</ul>\n</li>\n";
|
1073
|
-
}
|
1074
|
-
}
|
1075
|
-
}
|
1076
|
-
|
1077
|
-
/**
|
1078
|
-
* Show the link to the links popup and the number of links.
|
1079
|
-
*
|
1080
|
-
* @since 0.71
|
1081
|
-
* @deprecated 2.1.0
|
1082
|
-
* @deprecated {@internal Use function instead is unknown}}
|
1083
|
-
*
|
1084
|
-
* @param string $text the text of the link
|
1085
|
-
* @param int $width the width of the popup window
|
1086
|
-
* @param int $height the height of the popup window
|
1087
|
-
* @param string $file the page to open in the popup window
|
1088
|
-
* @param bool $count the number of links in the db
|
1089
|
-
*/
|
1090
|
-
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
|
1091
|
-
_deprecated_function( __FUNCTION__, '2.1' );
|
1092
|
-
}
|
1093
|
-
|
1094
|
-
/**
|
1095
|
-
* @since 1.0.1
|
1096
|
-
* @deprecated 2.1.0
|
1097
|
-
* @deprecated Use sanitize_bookmark_field()
|
1098
|
-
* @see sanitize_bookmark_field()
|
1099
|
-
*
|
1100
|
-
* @param object $link
|
1101
|
-
* @return unknown
|
1102
|
-
*/
|
1103
|
-
function get_linkrating($link) {
|
1104
|
-
_deprecated_function( __FUNCTION__, '2.1', 'sanitize_bookmark_field()' );
|
1105
|
-
return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
|
1106
|
-
}
|
1107
|
-
|
1108
|
-
/**
|
1109
|
-
* Gets the name of category by id.
|
1110
|
-
*
|
1111
|
-
* @since 0.71
|
1112
|
-
* @deprecated 2.1.0
|
1113
|
-
* @deprecated Use get_category()
|
1114
|
-
* @see get_category()
|
1115
|
-
*
|
1116
|
-
* @param int $id The category to get. If no category supplied uses 0
|
1117
|
-
* @return string
|
1118
|
-
*/
|
1119
|
-
function get_linkcatname($id = 0) {
|
1120
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_category()' );
|
1121
|
-
|
1122
|
-
$id = (int) $id;
|
1123
|
-
|
1124
|
-
if ( empty($id) )
|
1125
|
-
return '';
|
1126
|
-
|
1127
|
-
$cats = wp_get_link_cats($id);
|
1128
|
-
|
1129
|
-
if ( empty($cats) || ! is_array($cats) )
|
1130
|
-
return '';
|
1131
|
-
|
1132
|
-
$cat_id = (int) $cats[0]; // Take the first cat.
|
1133
|
-
|
1134
|
-
$cat = get_category($cat_id);
|
1135
|
-
return $cat->name;
|
1136
|
-
}
|
1137
|
-
|
1138
|
-
/**
|
1139
|
-
* Print RSS comment feed link.
|
1140
|
-
*
|
1141
|
-
* @since 1.0.1
|
1142
|
-
* @deprecated 2.5.0
|
1143
|
-
* @deprecated Use post_comments_feed_link()
|
1144
|
-
* @see post_comments_feed_link()
|
1145
|
-
*
|
1146
|
-
* @param string $link_text
|
1147
|
-
*/
|
1148
|
-
function comments_rss_link($link_text = 'Comments RSS') {
|
1149
|
-
_deprecated_function( __FUNCTION__, '2.5', 'post_comments_feed_link()' );
|
1150
|
-
post_comments_feed_link($link_text);
|
1151
|
-
}
|
1152
|
-
|
1153
|
-
/**
|
1154
|
-
* Print/Return link to category RSS2 feed.
|
1155
|
-
*
|
1156
|
-
* @since 1.2.0
|
1157
|
-
* @deprecated 2.5.0
|
1158
|
-
* @deprecated Use get_category_feed_link()
|
1159
|
-
* @see get_category_feed_link()
|
1160
|
-
*
|
1161
|
-
* @param bool $echo
|
1162
|
-
* @param int $cat_ID
|
1163
|
-
* @return string|null
|
1164
|
-
*/
|
1165
|
-
function get_category_rss_link($echo = false, $cat_ID = 1) {
|
1166
|
-
_deprecated_function( __FUNCTION__, '2.5', 'get_category_feed_link()' );
|
1167
|
-
|
1168
|
-
$link = get_category_feed_link($cat_ID, 'rss2');
|
1169
|
-
|
1170
|
-
if ( $echo )
|
1171
|
-
echo $link;
|
1172
|
-
return $link;
|
1173
|
-
}
|
1174
|
-
|
1175
|
-
/**
|
1176
|
-
* Print/Return link to author RSS feed.
|
1177
|
-
*
|
1178
|
-
* @since 1.2.0
|
1179
|
-
* @deprecated 2.5.0
|
1180
|
-
* @deprecated Use get_author_feed_link()
|
1181
|
-
* @see get_author_feed_link()
|
1182
|
-
*
|
1183
|
-
* @param bool $echo
|
1184
|
-
* @param int $author_id
|
1185
|
-
* @return string|null
|
1186
|
-
*/
|
1187
|
-
function get_author_rss_link($echo = false, $author_id = 1) {
|
1188
|
-
_deprecated_function( __FUNCTION__, '2.5', 'get_author_feed_link()' );
|
1189
|
-
|
1190
|
-
$link = get_author_feed_link($author_id);
|
1191
|
-
if ( $echo )
|
1192
|
-
echo $link;
|
1193
|
-
return $link;
|
1194
|
-
}
|
1195
|
-
|
1196
|
-
/**
|
1197
|
-
* Return link to the post RSS feed.
|
1198
|
-
*
|
1199
|
-
* @since 1.5.0
|
1200
|
-
* @deprecated 2.2.0
|
1201
|
-
* @deprecated Use get_post_comments_feed_link()
|
1202
|
-
* @see get_post_comments_feed_link()
|
1203
|
-
*
|
1204
|
-
* @return string
|
1205
|
-
*/
|
1206
|
-
function comments_rss() {
|
1207
|
-
_deprecated_function( __FUNCTION__, '2.2', 'get_post_comments_feed_link()' );
|
1208
|
-
return esc_url( get_post_comments_feed_link() );
|
1209
|
-
}
|
1210
|
-
|
1211
|
-
/**
|
1212
|
-
* An alias of wp_create_user().
|
1213
|
-
*
|
1214
|
-
* @since 2.0.0
|
1215
|
-
* @deprecated 2.0.0
|
1216
|
-
* @deprecated Use wp_create_user()
|
1217
|
-
* @see wp_create_user()
|
1218
|
-
*
|
1219
|
-
* @param string $username The user's username.
|
1220
|
-
* @param string $password The user's password.
|
1221
|
-
* @param string $email The user's email (optional).
|
1222
|
-
* @return int The new user's ID.
|
1223
|
-
*/
|
1224
|
-
function create_user($username, $password, $email) {
|
1225
|
-
_deprecated_function( __FUNCTION__, '2.0', 'wp_create_user()' );
|
1226
|
-
return wp_create_user($username, $password, $email);
|
1227
|
-
}
|
1228
|
-
|
1229
|
-
/**
|
1230
|
-
* Unused function.
|
1231
|
-
*
|
1232
|
-
* @deprecated 2.5.0
|
1233
|
-
*/
|
1234
|
-
function gzip_compression() {
|
1235
|
-
_deprecated_function( __FUNCTION__, '2.5' );
|
1236
|
-
return false;
|
1237
|
-
}
|
1238
|
-
|
1239
|
-
/**
|
1240
|
-
* Retrieve an array of comment data about comment $comment_ID.
|
1241
|
-
*
|
1242
|
-
* @since 0.71
|
1243
|
-
* @deprecated 2.7.0
|
1244
|
-
* @deprecated Use get_comment()
|
1245
|
-
* @see get_comment()
|
1246
|
-
*
|
1247
|
-
* @param int $comment_ID The ID of the comment
|
1248
|
-
* @param int $no_cache Whether to use the cache (cast to bool)
|
1249
|
-
* @param bool $include_unapproved Whether to include unapproved comments
|
1250
|
-
* @return array The comment data
|
1251
|
-
*/
|
1252
|
-
function get_commentdata( $comment_ID, $no_cache = 0, $include_unapproved = false ) {
|
1253
|
-
_deprecated_function( __FUNCTION__, '2.7', 'get_comment()' );
|
1254
|
-
return get_comment($comment_ID, ARRAY_A);
|
1255
|
-
}
|
1256
|
-
|
1257
|
-
/**
|
1258
|
-
* Retrieve the category name by the category ID.
|
1259
|
-
*
|
1260
|
-
* @since 0.71
|
1261
|
-
* @deprecated 2.8.0
|
1262
|
-
* @deprecated Use get_cat_name()
|
1263
|
-
* @see get_cat_name()
|
1264
|
-
*
|
1265
|
-
* @param int $cat_ID Category ID
|
1266
|
-
* @return string category name
|
1267
|
-
*/
|
1268
|
-
function get_catname( $cat_ID ) {
|
1269
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_cat_name()' );
|
1270
|
-
return get_cat_name( $cat_ID );
|
1271
|
-
}
|
1272
|
-
|
1273
|
-
/**
|
1274
|
-
* Retrieve category children list separated before and after the term IDs.
|
1275
|
-
*
|
1276
|
-
* @since 1.2.0
|
1277
|
-
* @deprecated 2.8.0
|
1278
|
-
* @deprecated Use get_term_children()
|
1279
|
-
* @see get_term_children()
|
1280
|
-
*
|
1281
|
-
* @param int $id Category ID to retrieve children.
|
1282
|
-
* @param string $before Optional. Prepend before category term ID.
|
1283
|
-
* @param string $after Optional, default is empty string. Append after category term ID.
|
1284
|
-
* @param array $visited Optional. Category Term IDs that have already been added.
|
1285
|
-
* @return string
|
1286
|
-
*/
|
1287
|
-
function get_category_children( $id, $before = '/', $after = '', $visited = array() ) {
|
1288
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_term_children()' );
|
1289
|
-
if ( 0 == $id )
|
1290
|
-
return '';
|
1291
|
-
|
1292
|
-
$chain = '';
|
1293
|
-
/** TODO: consult hierarchy */
|
1294
|
-
$cat_ids = get_all_category_ids();
|
1295
|
-
foreach ( (array) $cat_ids as $cat_id ) {
|
1296
|
-
if ( $cat_id == $id )
|
1297
|
-
continue;
|
1298
|
-
|
1299
|
-
$category = get_category( $cat_id );
|
1300
|
-
if ( is_wp_error( $category ) )
|
1301
|
-
return $category;
|
1302
|
-
if ( $category->parent == $id && !in_array( $category->term_id, $visited ) ) {
|
1303
|
-
$visited[] = $category->term_id;
|
1304
|
-
$chain .= $before.$category->term_id.$after;
|
1305
|
-
$chain .= get_category_children( $category->term_id, $before, $after );
|
1306
|
-
}
|
1307
|
-
}
|
1308
|
-
return $chain;
|
1309
|
-
}
|
1310
|
-
|
1311
|
-
/**
|
1312
|
-
* Retrieves all category IDs.
|
1313
|
-
*
|
1314
|
-
* @since 2.0.0
|
1315
|
-
* @deprecated 4.0.0 Use get_terms() instead.
|
1316
|
-
* @see get_terms()
|
1317
|
-
* @link http://codex.wordpress.org/Function_Reference/get_all_category_ids
|
1318
|
-
*
|
1319
|
-
* @return object List of all of the category IDs.
|
1320
|
-
*/
|
1321
|
-
function get_all_category_ids() {
|
1322
|
-
_deprecated_function( __FUNCTION__, '4.0', 'get_terms()' );
|
1323
|
-
|
1324
|
-
if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) {
|
1325
|
-
$cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') );
|
1326
|
-
wp_cache_add( 'all_category_ids', $cat_ids, 'category' );
|
1327
|
-
}
|
1328
|
-
|
1329
|
-
return $cat_ids;
|
1330
|
-
}
|
1331
|
-
|
1332
|
-
/**
|
1333
|
-
* Retrieve the description of the author of the current post.
|
1334
|
-
*
|
1335
|
-
* @since 1.5.0
|
1336
|
-
* @deprecated 2.8.0
|
1337
|
-
* @deprecated Use get_the_author_meta('description')
|
1338
|
-
* @see get_the_author_meta()
|
1339
|
-
*
|
1340
|
-
* @return string The author's description.
|
1341
|
-
*/
|
1342
|
-
function get_the_author_description() {
|
1343
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'description\')' );
|
1344
|
-
return get_the_author_meta('description');
|
1345
|
-
}
|
1346
|
-
|
1347
|
-
/**
|
1348
|
-
* Display the description of the author of the current post.
|
1349
|
-
*
|
1350
|
-
* @since 1.0.0
|
1351
|
-
* @deprecated 2.8.0
|
1352
|
-
* @deprecated Use the_author_meta('description')
|
1353
|
-
* @see the_author_meta()
|
1354
|
-
*/
|
1355
|
-
function the_author_description() {
|
1356
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'description\')' );
|
1357
|
-
the_author_meta('description');
|
1358
|
-
}
|
1359
|
-
|
1360
|
-
/**
|
1361
|
-
* Retrieve the login name of the author of the current post.
|
1362
|
-
*
|
1363
|
-
* @since 1.5.0
|
1364
|
-
* @deprecated 2.8.0
|
1365
|
-
* @deprecated Use get_the_author_meta('login')
|
1366
|
-
* @see get_the_author_meta()
|
1367
|
-
*
|
1368
|
-
* @return string The author's login name (username).
|
1369
|
-
*/
|
1370
|
-
function get_the_author_login() {
|
1371
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'login\')' );
|
1372
|
-
return get_the_author_meta('login');
|
1373
|
-
}
|
1374
|
-
|
1375
|
-
/**
|
1376
|
-
* Display the login name of the author of the current post.
|
1377
|
-
*
|
1378
|
-
* @since 0.71
|
1379
|
-
* @deprecated 2.8.0
|
1380
|
-
* @deprecated Use the_author_meta('login')
|
1381
|
-
* @see the_author_meta()
|
1382
|
-
*/
|
1383
|
-
function the_author_login() {
|
1384
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'login\')' );
|
1385
|
-
the_author_meta('login');
|
1386
|
-
}
|
1387
|
-
|
1388
|
-
/**
|
1389
|
-
* Retrieve the first name of the author of the current post.
|
1390
|
-
*
|
1391
|
-
* @since 1.5.0
|
1392
|
-
* @deprecated 2.8.0
|
1393
|
-
* @deprecated Use get_the_author_meta('first_name')
|
1394
|
-
* @see get_the_author_meta()
|
1395
|
-
*
|
1396
|
-
* @return string The author's first name.
|
1397
|
-
*/
|
1398
|
-
function get_the_author_firstname() {
|
1399
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'first_name\')' );
|
1400
|
-
return get_the_author_meta('first_name');
|
1401
|
-
}
|
1402
|
-
|
1403
|
-
/**
|
1404
|
-
* Display the first name of the author of the current post.
|
1405
|
-
*
|
1406
|
-
* @since 0.71
|
1407
|
-
* @deprecated 2.8.0
|
1408
|
-
* @deprecated Use the_author_meta('first_name')
|
1409
|
-
* @see the_author_meta()
|
1410
|
-
*/
|
1411
|
-
function the_author_firstname() {
|
1412
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'first_name\')' );
|
1413
|
-
the_author_meta('first_name');
|
1414
|
-
}
|
1415
|
-
|
1416
|
-
/**
|
1417
|
-
* Retrieve the last name of the author of the current post.
|
1418
|
-
*
|
1419
|
-
* @since 1.5.0
|
1420
|
-
* @deprecated 2.8.0
|
1421
|
-
* @deprecated Use get_the_author_meta('last_name')
|
1422
|
-
* @see get_the_author_meta()
|
1423
|
-
*
|
1424
|
-
* @return string The author's last name.
|
1425
|
-
*/
|
1426
|
-
function get_the_author_lastname() {
|
1427
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'last_name\')' );
|
1428
|
-
return get_the_author_meta('last_name');
|
1429
|
-
}
|
1430
|
-
|
1431
|
-
/**
|
1432
|
-
* Display the last name of the author of the current post.
|
1433
|
-
*
|
1434
|
-
* @since 0.71
|
1435
|
-
* @deprecated 2.8.0
|
1436
|
-
* @deprecated Use the_author_meta('last_name')
|
1437
|
-
* @see the_author_meta()
|
1438
|
-
*/
|
1439
|
-
function the_author_lastname() {
|
1440
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'last_name\')' );
|
1441
|
-
the_author_meta('last_name');
|
1442
|
-
}
|
1443
|
-
|
1444
|
-
/**
|
1445
|
-
* Retrieve the nickname of the author of the current post.
|
1446
|
-
*
|
1447
|
-
* @since 1.5.0
|
1448
|
-
* @deprecated 2.8.0
|
1449
|
-
* @deprecated Use get_the_author_meta('nickname')
|
1450
|
-
* @see get_the_author_meta()
|
1451
|
-
*
|
1452
|
-
* @return string The author's nickname.
|
1453
|
-
*/
|
1454
|
-
function get_the_author_nickname() {
|
1455
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'nickname\')' );
|
1456
|
-
return get_the_author_meta('nickname');
|
1457
|
-
}
|
1458
|
-
|
1459
|
-
/**
|
1460
|
-
* Display the nickname of the author of the current post.
|
1461
|
-
*
|
1462
|
-
* @since 0.71
|
1463
|
-
* @deprecated 2.8.0
|
1464
|
-
* @deprecated Use the_author_meta('nickname')
|
1465
|
-
* @see the_author_meta()
|
1466
|
-
*/
|
1467
|
-
function the_author_nickname() {
|
1468
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'nickname\')' );
|
1469
|
-
the_author_meta('nickname');
|
1470
|
-
}
|
1471
|
-
|
1472
|
-
/**
|
1473
|
-
* Retrieve the email of the author of the current post.
|
1474
|
-
*
|
1475
|
-
* @since 1.5.0
|
1476
|
-
* @deprecated 2.8.0
|
1477
|
-
* @deprecated Use get_the_author_meta('email')
|
1478
|
-
* @see get_the_author_meta()
|
1479
|
-
*
|
1480
|
-
* @return string The author's username.
|
1481
|
-
*/
|
1482
|
-
function get_the_author_email() {
|
1483
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' );
|
1484
|
-
return get_the_author_meta('email');
|
1485
|
-
}
|
1486
|
-
|
1487
|
-
/**
|
1488
|
-
* Display the email of the author of the current post.
|
1489
|
-
*
|
1490
|
-
* @since 0.71
|
1491
|
-
* @deprecated 2.8.0
|
1492
|
-
* @deprecated Use the_author_meta('email')
|
1493
|
-
* @see the_author_meta()
|
1494
|
-
*/
|
1495
|
-
function the_author_email() {
|
1496
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'email\')' );
|
1497
|
-
the_author_meta('email');
|
1498
|
-
}
|
1499
|
-
|
1500
|
-
/**
|
1501
|
-
* Retrieve the ICQ number of the author of the current post.
|
1502
|
-
*
|
1503
|
-
* @since 1.5.0
|
1504
|
-
* @deprecated 2.8.0
|
1505
|
-
* @deprecated Use get_the_author_meta('icq')
|
1506
|
-
* @see get_the_author_meta()
|
1507
|
-
*
|
1508
|
-
* @return string The author's ICQ number.
|
1509
|
-
*/
|
1510
|
-
function get_the_author_icq() {
|
1511
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'icq\')' );
|
1512
|
-
return get_the_author_meta('icq');
|
1513
|
-
}
|
1514
|
-
|
1515
|
-
/**
|
1516
|
-
* Display the ICQ number of the author of the current post.
|
1517
|
-
*
|
1518
|
-
* @since 0.71
|
1519
|
-
* @deprecated 2.8.0
|
1520
|
-
* @deprecated Use the_author_meta('icq')
|
1521
|
-
* @see the_author_meta()
|
1522
|
-
*/
|
1523
|
-
function the_author_icq() {
|
1524
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'icq\')' );
|
1525
|
-
the_author_meta('icq');
|
1526
|
-
}
|
1527
|
-
|
1528
|
-
/**
|
1529
|
-
* Retrieve the Yahoo! IM name of the author of the current post.
|
1530
|
-
*
|
1531
|
-
* @since 1.5.0
|
1532
|
-
* @deprecated 2.8.0
|
1533
|
-
* @deprecated Use get_the_author_meta('yim')
|
1534
|
-
* @see get_the_author_meta()
|
1535
|
-
*
|
1536
|
-
* @return string The author's Yahoo! IM name.
|
1537
|
-
*/
|
1538
|
-
function get_the_author_yim() {
|
1539
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'yim\')' );
|
1540
|
-
return get_the_author_meta('yim');
|
1541
|
-
}
|
1542
|
-
|
1543
|
-
/**
|
1544
|
-
* Display the Yahoo! IM name of the author of the current post.
|
1545
|
-
*
|
1546
|
-
* @since 0.71
|
1547
|
-
* @deprecated 2.8.0
|
1548
|
-
* @deprecated Use the_author_meta('yim')
|
1549
|
-
* @see the_author_meta()
|
1550
|
-
*/
|
1551
|
-
function the_author_yim() {
|
1552
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'yim\')' );
|
1553
|
-
the_author_meta('yim');
|
1554
|
-
}
|
1555
|
-
|
1556
|
-
/**
|
1557
|
-
* Retrieve the MSN address of the author of the current post.
|
1558
|
-
*
|
1559
|
-
* @since 1.5.0
|
1560
|
-
* @deprecated 2.8.0
|
1561
|
-
* @deprecated Use get_the_author_meta('msn')
|
1562
|
-
* @see get_the_author_meta()
|
1563
|
-
*
|
1564
|
-
* @return string The author's MSN address.
|
1565
|
-
*/
|
1566
|
-
function get_the_author_msn() {
|
1567
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'msn\')' );
|
1568
|
-
return get_the_author_meta('msn');
|
1569
|
-
}
|
1570
|
-
|
1571
|
-
/**
|
1572
|
-
* Display the MSN address of the author of the current post.
|
1573
|
-
*
|
1574
|
-
* @since 0.71
|
1575
|
-
* @deprecated 2.8.0
|
1576
|
-
* @deprecated Use the_author_meta('msn')
|
1577
|
-
* @see the_author_meta()
|
1578
|
-
*/
|
1579
|
-
function the_author_msn() {
|
1580
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'msn\')' );
|
1581
|
-
the_author_meta('msn');
|
1582
|
-
}
|
1583
|
-
|
1584
|
-
/**
|
1585
|
-
* Retrieve the AIM address of the author of the current post.
|
1586
|
-
*
|
1587
|
-
* @since 1.5.0
|
1588
|
-
* @deprecated 2.8.0
|
1589
|
-
* @deprecated Use get_the_author_meta('aim')
|
1590
|
-
* @see get_the_author_meta()
|
1591
|
-
*
|
1592
|
-
* @return string The author's AIM address.
|
1593
|
-
*/
|
1594
|
-
function get_the_author_aim() {
|
1595
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'aim\')' );
|
1596
|
-
return get_the_author_meta('aim');
|
1597
|
-
}
|
1598
|
-
|
1599
|
-
/**
|
1600
|
-
* Display the AIM address of the author of the current post.
|
1601
|
-
*
|
1602
|
-
* @since 0.71
|
1603
|
-
* @see the_author_meta()
|
1604
|
-
* @deprecated 2.8.0
|
1605
|
-
* @deprecated Use the_author_meta('aim')
|
1606
|
-
*/
|
1607
|
-
function the_author_aim() {
|
1608
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'aim\')' );
|
1609
|
-
the_author_meta('aim');
|
1610
|
-
}
|
1611
|
-
|
1612
|
-
/**
|
1613
|
-
* Retrieve the specified author's preferred display name.
|
1614
|
-
*
|
1615
|
-
* @since 1.0.0
|
1616
|
-
* @deprecated 2.8.0
|
1617
|
-
* @deprecated Use get_the_author_meta('display_name')
|
1618
|
-
* @see get_the_author_meta()
|
1619
|
-
*
|
1620
|
-
* @param int $auth_id The ID of the author.
|
1621
|
-
* @return string The author's display name.
|
1622
|
-
*/
|
1623
|
-
function get_author_name( $auth_id = false ) {
|
1624
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'display_name\')' );
|
1625
|
-
return get_the_author_meta('display_name', $auth_id);
|
1626
|
-
}
|
1627
|
-
|
1628
|
-
/**
|
1629
|
-
* Retrieve the URL to the home page of the author of the current post.
|
1630
|
-
*
|
1631
|
-
* @since 1.5.0
|
1632
|
-
* @deprecated 2.8.0
|
1633
|
-
* @deprecated Use get_the_author_meta('url')
|
1634
|
-
* @see get_the_author_meta()
|
1635
|
-
*
|
1636
|
-
* @return string The URL to the author's page.
|
1637
|
-
*/
|
1638
|
-
function get_the_author_url() {
|
1639
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'url\')' );
|
1640
|
-
return get_the_author_meta('url');
|
1641
|
-
}
|
1642
|
-
|
1643
|
-
/**
|
1644
|
-
* Display the URL to the home page of the author of the current post.
|
1645
|
-
*
|
1646
|
-
* @since 0.71
|
1647
|
-
* @deprecated 2.8.0
|
1648
|
-
* @deprecated Use the_author_meta('url')
|
1649
|
-
* @see the_author_meta()
|
1650
|
-
*/
|
1651
|
-
function the_author_url() {
|
1652
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'url\')' );
|
1653
|
-
the_author_meta('url');
|
1654
|
-
}
|
1655
|
-
|
1656
|
-
/**
|
1657
|
-
* Retrieve the ID of the author of the current post.
|
1658
|
-
*
|
1659
|
-
* @since 1.5.0
|
1660
|
-
* @deprecated 2.8.0
|
1661
|
-
* @deprecated Use get_the_author_meta('ID')
|
1662
|
-
* @see get_the_author_meta()
|
1663
|
-
*
|
1664
|
-
* @return int The author's ID.
|
1665
|
-
*/
|
1666
|
-
function get_the_author_ID() {
|
1667
|
-
_deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'ID\')' );
|
1668
|
-
return get_the_author_meta('ID');
|
1669
|
-
}
|
1670
|
-
|
1671
|
-
/**
|
1672
|
-
* Display the ID of the author of the current post.
|
1673
|
-
*
|
1674
|
-
* @since 0.71
|
1675
|
-
* @deprecated 2.8.0
|
1676
|
-
* @deprecated Use the_author_meta('ID')
|
1677
|
-
* @see the_author_meta()
|
1678
|
-
*/
|
1679
|
-
function the_author_ID() {
|
1680
|
-
_deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'ID\')' );
|
1681
|
-
the_author_meta('ID');
|
1682
|
-
}
|
1683
|
-
|
1684
|
-
/**
|
1685
|
-
* Display the post content for the feed.
|
1686
|
-
*
|
1687
|
-
* For encoding the html or the $encode_html parameter, there are three possible
|
1688
|
-
* values. '0' will make urls footnotes and use make_url_footnote(). '1' will
|
1689
|
-
* encode special characters and automatically display all of the content. The
|
1690
|
-
* value of '2' will strip all HTML tags from the content.
|
1691
|
-
*
|
1692
|
-
* Also note that you cannot set the amount of words and not set the html
|
1693
|
-
* encoding. If that is the case, then the html encoding will default to 2,
|
1694
|
-
* which will strip all HTML tags.
|
1695
|
-
*
|
1696
|
-
* To restrict the amount of words of the content, you can use the cut
|
1697
|
-
* parameter. If the content is less than the amount, then there won't be any
|
1698
|
-
* dots added to the end. If there is content left over, then dots will be added
|
1699
|
-
* and the rest of the content will be removed.
|
1700
|
-
*
|
1701
|
-
* @since 0.71
|
1702
|
-
* @uses apply_filters() Calls 'the_content_rss' on the content before processing.
|
1703
|
-
*
|
1704
|
-
* @deprecated 2.9.0
|
1705
|
-
* @deprecated Use the_content_feed()
|
1706
|
-
* @see the_content_feed()
|
1707
|
-
*
|
1708
|
-
* @param string $more_link_text Optional. Text to display when more content is available but not displayed.
|
1709
|
-
* @param int|bool $stripteaser Optional. Default is 0.
|
1710
|
-
* @param string $more_file Optional.
|
1711
|
-
* @param int $cut Optional. Amount of words to keep for the content.
|
1712
|
-
* @param int $encode_html Optional. How to encode the content.
|
1713
|
-
*/
|
1714
|
-
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
|
1715
|
-
_deprecated_function( __FUNCTION__, '2.9', 'the_content_feed' );
|
1716
|
-
$content = get_the_content($more_link_text, $stripteaser);
|
1717
|
-
$content = apply_filters('the_content_rss', $content);
|
1718
|
-
if ( $cut && !$encode_html )
|
1719
|
-
$encode_html = 2;
|
1720
|
-
if ( 1== $encode_html ) {
|
1721
|
-
$content = esc_html($content);
|
1722
|
-
$cut = 0;
|
1723
|
-
} elseif ( 0 == $encode_html ) {
|
1724
|
-
$content = make_url_footnote($content);
|
1725
|
-
} elseif ( 2 == $encode_html ) {
|
1726
|
-
$content = strip_tags($content);
|
1727
|
-
}
|
1728
|
-
if ( $cut ) {
|
1729
|
-
$blah = explode(' ', $content);
|
1730
|
-
if ( count($blah) > $cut ) {
|
1731
|
-
$k = $cut;
|
1732
|
-
$use_dotdotdot = 1;
|
1733
|
-
} else {
|
1734
|
-
$k = count($blah);
|
1735
|
-
$use_dotdotdot = 0;
|
1736
|
-
}
|
1737
|
-
|
1738
|
-
/** @todo Check performance, might be faster to use array slice instead. */
|
1739
|
-
for ( $i=0; $i<$k; $i++ )
|
1740
|
-
$excerpt .= $blah[$i].' ';
|
1741
|
-
$excerpt .= ($use_dotdotdot) ? '...' : '';
|
1742
|
-
$content = $excerpt;
|
1743
|
-
}
|
1744
|
-
$content = str_replace(']]>', ']]>', $content);
|
1745
|
-
echo $content;
|
1746
|
-
}
|
1747
|
-
|
1748
|
-
/**
|
1749
|
-
* Strip HTML and put links at the bottom of stripped content.
|
1750
|
-
*
|
1751
|
-
* Searches for all of the links, strips them out of the content, and places
|
1752
|
-
* them at the bottom of the content with numbers.
|
1753
|
-
*
|
1754
|
-
* @since 0.71
|
1755
|
-
* @deprecated 2.9.0
|
1756
|
-
*
|
1757
|
-
* @param string $content Content to get links
|
1758
|
-
* @return string HTML stripped out of content with links at the bottom.
|
1759
|
-
*/
|
1760
|
-
function make_url_footnote( $content ) {
|
1761
|
-
_deprecated_function( __FUNCTION__, '2.9', '' );
|
1762
|
-
preg_match_all( '/<a(.+?)href=\"(.+?)\"(.*?)>(.+?)<\/a>/', $content, $matches );
|
1763
|
-
$links_summary = "\n";
|
1764
|
-
for ( $i=0; $i<count($matches[0]); $i++ ) {
|
1765
|
-
$link_match = $matches[0][$i];
|
1766
|
-
$link_number = '['.($i+1).']';
|
1767
|
-
$link_url = $matches[2][$i];
|
1768
|
-
$link_text = $matches[4][$i];
|
1769
|
-
$content = str_replace( $link_match, $link_text . ' ' . $link_number, $content );
|
1770
|
-
$link_url = ( ( strtolower( substr( $link_url, 0, 7 ) ) != 'http://' ) && ( strtolower( substr( $link_url, 0, 8 ) ) != 'https://' ) ) ? get_option( 'home' ) . $link_url : $link_url;
|
1771
|
-
$links_summary .= "\n" . $link_number . ' ' . $link_url;
|
1772
|
-
}
|
1773
|
-
$content = strip_tags( $content );
|
1774
|
-
$content .= $links_summary;
|
1775
|
-
return $content;
|
1776
|
-
}
|
1777
|
-
|
1778
|
-
/**
|
1779
|
-
* Retrieve translated string with vertical bar context
|
1780
|
-
*
|
1781
|
-
* Quite a few times, there will be collisions with similar translatable text
|
1782
|
-
* found in more than two places but with different translated context.
|
1783
|
-
*
|
1784
|
-
* In order to use the separate contexts, the _c() function is used and the
|
1785
|
-
* translatable string uses a pipe ('|') which has the context the string is in.
|
1786
|
-
*
|
1787
|
-
* When the translated string is returned, it is everything before the pipe, not
|
1788
|
-
* including the pipe character. If there is no pipe in the translated text then
|
1789
|
-
* everything is returned.
|
1790
|
-
*
|
1791
|
-
* @since 2.2.0
|
1792
|
-
* @deprecated 2.9.0
|
1793
|
-
* @deprecated Use _x()
|
1794
|
-
* @see _x()
|
1795
|
-
*
|
1796
|
-
* @param string $text Text to translate
|
1797
|
-
* @param string $domain Optional. Domain to retrieve the translated text
|
1798
|
-
* @return string Translated context string without pipe
|
1799
|
-
*/
|
1800
|
-
function _c( $text, $domain = 'default' ) {
|
1801
|
-
_deprecated_function( __FUNCTION__, '2.9', '_x()' );
|
1802
|
-
return before_last_bar( translate( $text, $domain ) );
|
1803
|
-
}
|
1804
|
-
|
1805
|
-
/**
|
1806
|
-
* Translates $text like translate(), but assumes that the text
|
1807
|
-
* contains a context after its last vertical bar.
|
1808
|
-
*
|
1809
|
-
* @since 2.5.0
|
1810
|
-
* @uses translate()
|
1811
|
-
* @deprecated 3.0.0
|
1812
|
-
* @deprecated Use _x()
|
1813
|
-
* @see _x()
|
1814
|
-
*
|
1815
|
-
* @param string $text Text to translate
|
1816
|
-
* @param string $domain Domain to retrieve the translated text
|
1817
|
-
* @return string Translated text
|
1818
|
-
*/
|
1819
|
-
function translate_with_context( $text, $domain = 'default' ) {
|
1820
|
-
_deprecated_function( __FUNCTION__, '2.9', '_x()' );
|
1821
|
-
return before_last_bar( translate( $text, $domain ) );
|
1822
|
-
}
|
1823
|
-
|
1824
|
-
/**
|
1825
|
-
* A version of _n(), which supports contexts.
|
1826
|
-
* Strips everything from the translation after the last bar.
|
1827
|
-
*
|
1828
|
-
* @since 2.7.0
|
1829
|
-
* @deprecated 3.0.0
|
1830
|
-
* @deprecated Use _nx()
|
1831
|
-
* @see _nx()
|
1832
|
-
* @see _n() For parameters.
|
1833
|
-
* @see _c() For parameters. _c() is deprecated.
|
1834
|
-
*
|
1835
|
-
*/
|
1836
|
-
function _nc( $single, $plural, $number, $domain = 'default' ) {
|
1837
|
-
_deprecated_function( __FUNCTION__, '2.9', '_nx()' );
|
1838
|
-
return before_last_bar( _n( $single, $plural, $number, $domain ) );
|
1839
|
-
}
|
1840
|
-
|
1841
|
-
/**
|
1842
|
-
* Retrieve the plural or single form based on the amount.
|
1843
|
-
*
|
1844
|
-
* @since 1.2.0
|
1845
|
-
* @deprecated 2.8.0
|
1846
|
-
* @deprecated Use _n()
|
1847
|
-
* @see _n()
|
1848
|
-
*/
|
1849
|
-
function __ngettext() {
|
1850
|
-
_deprecated_function( __FUNCTION__, '2.8', '_n()' );
|
1851
|
-
$args = func_get_args();
|
1852
|
-
return call_user_func_array('_n', $args);
|
1853
|
-
}
|
1854
|
-
|
1855
|
-
/**
|
1856
|
-
* Register plural strings in POT file, but don't translate them.
|
1857
|
-
*
|
1858
|
-
* @since 2.5.0
|
1859
|
-
* @deprecated 2.8.0
|
1860
|
-
* @deprecated Use _n_noop()
|
1861
|
-
* @see _n_noop()
|
1862
|
-
*/
|
1863
|
-
function __ngettext_noop() {
|
1864
|
-
_deprecated_function( __FUNCTION__, '2.8', '_n_noop()' );
|
1865
|
-
$args = func_get_args();
|
1866
|
-
return call_user_func_array('_n_noop', $args);
|
1867
|
-
|
1868
|
-
}
|
1869
|
-
|
1870
|
-
/**
|
1871
|
-
* Retrieve all autoload options, or all options if no autoloaded ones exist.
|
1872
|
-
*
|
1873
|
-
* @since 1.0.0
|
1874
|
-
* @deprecated 3.0.0
|
1875
|
-
* @deprecated Use wp_load_alloptions())
|
1876
|
-
* @see wp_load_alloptions()
|
1877
|
-
*
|
1878
|
-
* @return array List of all options.
|
1879
|
-
*/
|
1880
|
-
function get_alloptions() {
|
1881
|
-
_deprecated_function( __FUNCTION__, '3.0', 'wp_load_alloptions()' );
|
1882
|
-
return wp_load_alloptions();
|
1883
|
-
}
|
1884
|
-
|
1885
|
-
/**
|
1886
|
-
* Retrieve HTML content of attachment image with link.
|
1887
|
-
*
|
1888
|
-
* @since 2.0.0
|
1889
|
-
* @deprecated 2.5.0
|
1890
|
-
* @deprecated Use wp_get_attachment_link()
|
1891
|
-
* @see wp_get_attachment_link()
|
1892
|
-
*
|
1893
|
-
* @param int $id Optional. Post ID.
|
1894
|
-
* @param bool $fullsize Optional, default is false. Whether to use full size image.
|
1895
|
-
* @param array $max_dims Optional. Max image dimensions.
|
1896
|
-
* @param bool $permalink Optional, default is false. Whether to include permalink to image.
|
1897
|
-
* @return string
|
1898
|
-
*/
|
1899
|
-
function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) {
|
1900
|
-
_deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_link()' );
|
1901
|
-
$id = (int) $id;
|
1902
|
-
$_post = get_post($id);
|
1903
|
-
|
1904
|
-
if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) )
|
1905
|
-
return __('Missing Attachment');
|
1906
|
-
|
1907
|
-
if ( $permalink )
|
1908
|
-
$url = get_attachment_link($_post->ID);
|
1909
|
-
|
1910
|
-
$post_title = esc_attr($_post->post_title);
|
1911
|
-
|
1912
|
-
$innerHTML = get_attachment_innerHTML($_post->ID, $fullsize, $max_dims);
|
1913
|
-
return "<a href='$url' title='$post_title'>$innerHTML</a>";
|
1914
|
-
}
|
1915
|
-
|
1916
|
-
/**
|
1917
|
-
* Retrieve icon URL and Path.
|
1918
|
-
*
|
1919
|
-
* @since 2.1.0
|
1920
|
-
* @deprecated 2.5.0
|
1921
|
-
* @deprecated Use wp_get_attachment_image_src()
|
1922
|
-
* @see wp_get_attachment_image_src()
|
1923
|
-
*
|
1924
|
-
* @param int $id Optional. Post ID.
|
1925
|
-
* @param bool $fullsize Optional, default to false. Whether to have full image.
|
1926
|
-
* @return array Icon URL and full path to file, respectively.
|
1927
|
-
*/
|
1928
|
-
function get_attachment_icon_src( $id = 0, $fullsize = false ) {
|
1929
|
-
_deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image_src()' );
|
1930
|
-
$id = (int) $id;
|
1931
|
-
if ( !$post = get_post($id) )
|
1932
|
-
return false;
|
1933
|
-
|
1934
|
-
$file = get_attached_file( $post->ID );
|
1935
|
-
|
1936
|
-
if ( !$fullsize && $src = wp_get_attachment_thumb_url( $post->ID ) ) {
|
1937
|
-
// We have a thumbnail desired, specified and existing
|
1938
|
-
|
1939
|
-
$src_file = basename($src);
|
1940
|
-
} elseif ( wp_attachment_is_image( $post->ID ) ) {
|
1941
|
-
// We have an image without a thumbnail
|
1942
|
-
|
1943
|
-
$src = wp_get_attachment_url( $post->ID );
|
1944
|
-
$src_file = & $file;
|
1945
|
-
} elseif ( $src = wp_mime_type_icon( $post->ID ) ) {
|
1946
|
-
// No thumb, no image. We'll look for a mime-related icon instead.
|
1947
|
-
|
1948
|
-
$icon_dir = apply_filters( 'icon_dir', get_template_directory() . '/images' );
|
1949
|
-
$src_file = $icon_dir . '/' . basename($src);
|
1950
|
-
}
|
1951
|
-
|
1952
|
-
if ( !isset($src) || !$src )
|
1953
|
-
return false;
|
1954
|
-
|
1955
|
-
return array($src, $src_file);
|
1956
|
-
}
|
1957
|
-
|
1958
|
-
/**
|
1959
|
-
* Retrieve HTML content of icon attachment image element.
|
1960
|
-
*
|
1961
|
-
* @since 2.0.0
|
1962
|
-
* @deprecated 2.5.0
|
1963
|
-
* @deprecated Use wp_get_attachment_image()
|
1964
|
-
* @see wp_get_attachment_image()
|
1965
|
-
*
|
1966
|
-
* @param int $id Optional. Post ID.
|
1967
|
-
* @param bool $fullsize Optional, default to false. Whether to have full size image.
|
1968
|
-
* @param array $max_dims Optional. Dimensions of image.
|
1969
|
-
* @return string HTML content.
|
1970
|
-
*/
|
1971
|
-
function get_attachment_icon( $id = 0, $fullsize = false, $max_dims = false ) {
|
1972
|
-
_deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' );
|
1973
|
-
$id = (int) $id;
|
1974
|
-
if ( !$post = get_post($id) )
|
1975
|
-
return false;
|
1976
|
-
|
1977
|
-
if ( !$src = get_attachment_icon_src( $post->ID, $fullsize ) )
|
1978
|
-
return false;
|
1979
|
-
|
1980
|
-
list($src, $src_file) = $src;
|
1981
|
-
|
1982
|
-
// Do we need to constrain the image?
|
1983
|
-
if ( ($max_dims = apply_filters('attachment_max_dims', $max_dims)) && file_exists($src_file) ) {
|
1984
|
-
|
1985
|
-
$imagesize = getimagesize($src_file);
|
1986
|
-
|
1987
|
-
if (($imagesize[0] > $max_dims[0]) || $imagesize[1] > $max_dims[1] ) {
|
1988
|
-
$actual_aspect = $imagesize[0] / $imagesize[1];
|
1989
|
-
$desired_aspect = $max_dims[0] / $max_dims[1];
|
1990
|
-
|
1991
|
-
if ( $actual_aspect >= $desired_aspect ) {
|
1992
|
-
$height = $actual_aspect * $max_dims[0];
|
1993
|
-
$constraint = "width='{$max_dims[0]}' ";
|
1994
|
-
$post->iconsize = array($max_dims[0], $height);
|
1995
|
-
} else {
|
1996
|
-
$width = $max_dims[1] / $actual_aspect;
|
1997
|
-
$constraint = "height='{$max_dims[1]}' ";
|
1998
|
-
$post->iconsize = array($width, $max_dims[1]);
|
1999
|
-
}
|
2000
|
-
} else {
|
2001
|
-
$post->iconsize = array($imagesize[0], $imagesize[1]);
|
2002
|
-
$constraint = '';
|
2003
|
-
}
|
2004
|
-
} else {
|
2005
|
-
$constraint = '';
|
2006
|
-
}
|
2007
|
-
|
2008
|
-
$post_title = esc_attr($post->post_title);
|
2009
|
-
|
2010
|
-
$icon = "<img src='$src' title='$post_title' alt='$post_title' $constraint/>";
|
2011
|
-
|
2012
|
-
return apply_filters( 'attachment_icon', $icon, $post->ID );
|
2013
|
-
}
|
2014
|
-
|
2015
|
-
/**
|
2016
|
-
* Retrieve HTML content of image element.
|
2017
|
-
*
|
2018
|
-
* @since 2.0.0
|
2019
|
-
* @deprecated 2.5.0
|
2020
|
-
* @deprecated Use wp_get_attachment_image()
|
2021
|
-
* @see wp_get_attachment_image()
|
2022
|
-
*
|
2023
|
-
* @param int $id Optional. Post ID.
|
2024
|
-
* @param bool $fullsize Optional, default to false. Whether to have full size image.
|
2025
|
-
* @param array $max_dims Optional. Dimensions of image.
|
2026
|
-
* @return string
|
2027
|
-
*/
|
2028
|
-
function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) {
|
2029
|
-
_deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' );
|
2030
|
-
$id = (int) $id;
|
2031
|
-
if ( !$post = get_post($id) )
|
2032
|
-
return false;
|
2033
|
-
|
2034
|
-
if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims))
|
2035
|
-
return $innerHTML;
|
2036
|
-
|
2037
|
-
$innerHTML = esc_attr($post->post_title);
|
2038
|
-
|
2039
|
-
return apply_filters('attachment_innerHTML', $innerHTML, $post->ID);
|
2040
|
-
}
|
2041
|
-
|
2042
|
-
/**
|
2043
|
-
* Retrieve bookmark data based on ID.
|
2044
|
-
*
|
2045
|
-
* @since 2.0.0
|
2046
|
-
* @deprecated 2.1.0
|
2047
|
-
* @deprecated Use get_bookmark()
|
2048
|
-
* @see get_bookmark()
|
2049
|
-
*
|
2050
|
-
* @param int $bookmark_id ID of link
|
2051
|
-
* @param string $output OBJECT, ARRAY_N, or ARRAY_A
|
2052
|
-
* @return object|array
|
2053
|
-
*/
|
2054
|
-
function get_link($bookmark_id, $output = OBJECT, $filter = 'raw') {
|
2055
|
-
_deprecated_function( __FUNCTION__, '2.1', 'get_bookmark()' );
|
2056
|
-
return get_bookmark($bookmark_id, $output, $filter);
|
2057
|
-
}
|
2058
|
-
|
2059
|
-
/**
|
2060
|
-
* Performs esc_url() for database or redirect usage.
|
2061
|
-
*
|
2062
|
-
* @since 2.3.1
|
2063
|
-
* @deprecated 2.8.0
|
2064
|
-
* @deprecated Use esc_url_raw()
|
2065
|
-
* @see esc_url_raw()
|
2066
|
-
*
|
2067
|
-
* @param string $url The URL to be cleaned.
|
2068
|
-
* @param array $protocols An array of acceptable protocols.
|
2069
|
-
* @return string The cleaned URL.
|
2070
|
-
*/
|
2071
|
-
function sanitize_url( $url, $protocols = null ) {
|
2072
|
-
_deprecated_function( __FUNCTION__, '2.8', 'esc_url_raw()' );
|
2073
|
-
return esc_url_raw( $url, $protocols );
|
2074
|
-
}
|
2075
|
-
|
2076
|
-
/**
|
2077
|
-
* Checks and cleans a URL.
|
2078
|
-
*
|
2079
|
-
* A number of characters are removed from the URL. If the URL is for displaying
|
2080
|
-
* (the default behaviour) ampersands are also replaced. The 'clean_url' filter
|
2081
|
-
* is applied to the returned cleaned URL.
|
2082
|
-
*
|
2083
|
-
* @since 1.2.0
|
2084
|
-
* @deprecated 3.0.0
|
2085
|
-
* @deprecated Use esc_url()
|
2086
|
-
* @see Alias for esc_url()
|
2087
|
-
*
|
2088
|
-
* @param string $url The URL to be cleaned.
|
2089
|
-
* @param array $protocols Optional. An array of acceptable protocols.
|
2090
|
-
* @param string $context Optional. How the URL will be used. Default is 'display'.
|
2091
|
-
* @return string The cleaned $url after the 'clean_url' filter is applied.
|
2092
|
-
*/
|
2093
|
-
function clean_url( $url, $protocols = null, $context = 'display' ) {
|
2094
|
-
if ( $context == 'db' )
|
2095
|
-
_deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' );
|
2096
|
-
else
|
2097
|
-
_deprecated_function( __FUNCTION__, '3.0', 'esc_url()' );
|
2098
|
-
return esc_url( $url, $protocols, $context );
|
2099
|
-
}
|
2100
|
-
|
2101
|
-
/**
|
2102
|
-
* Escape single quotes, specialchar double quotes, and fix line endings.
|
2103
|
-
*
|
2104
|
-
* The filter 'js_escape' is also applied by esc_js()
|
2105
|
-
*
|
2106
|
-
* @since 2.0.4
|
2107
|
-
* @deprecated 2.8.0
|
2108
|
-
* @deprecated Use esc_js()
|
2109
|
-
* @see esc_js()
|
2110
|
-
*
|
2111
|
-
* @param string $text The text to be escaped.
|
2112
|
-
* @return string Escaped text.
|
2113
|
-
*/
|
2114
|
-
function js_escape( $text ) {
|
2115
|
-
_deprecated_function( __FUNCTION__, '2.8', 'esc_js()' );
|
2116
|
-
return esc_js( $text );
|
2117
|
-
}
|
2118
|
-
|
2119
|
-
/**
|
2120
|
-
* Escaping for HTML blocks.
|
2121
|
-
*
|
2122
|
-
* @deprecated 2.8.0
|
2123
|
-
* @deprecated Use esc_html()
|
2124
|
-
* @see esc_html()
|
2125
|
-
*/
|
2126
|
-
function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {
|
2127
|
-
_deprecated_function( __FUNCTION__, '2.8', 'esc_html()' );
|
2128
|
-
if ( func_num_args() > 1 ) { // Maintain backwards compat for people passing additional args
|
2129
|
-
$args = func_get_args();
|
2130
|
-
return call_user_func_array( '_wp_specialchars', $args );
|
2131
|
-
} else {
|
2132
|
-
return esc_html( $string );
|
2133
|
-
}
|
2134
|
-
}
|
2135
|
-
|
2136
|
-
/**
|
2137
|
-
* Escaping for HTML attributes.
|
2138
|
-
*
|
2139
|
-
* @since 2.0.6
|
2140
|
-
* @deprecated 2.8.0
|
2141
|
-
* @deprecated Use esc_attr()
|
2142
|
-
* @see esc_attr()
|
2143
|
-
*
|
2144
|
-
* @param string $text
|
2145
|
-
* @return string
|
2146
|
-
*/
|
2147
|
-
function attribute_escape( $text ) {
|
2148
|
-
_deprecated_function( __FUNCTION__, '2.8', 'esc_attr()' );
|
2149
|
-
return esc_attr( $text );
|
2150
|
-
}
|
2151
|
-
|
2152
|
-
/**
|
2153
|
-
* Register widget for sidebar with backwards compatibility.
|
2154
|
-
*
|
2155
|
-
* Allows $name to be an array that accepts either three elements to grab the
|
2156
|
-
* first element and the third for the name or just uses the first element of
|
2157
|
-
* the array for the name.
|
2158
|
-
*
|
2159
|
-
* Passes to {@link wp_register_sidebar_widget()} after argument list and
|
2160
|
-
* backwards compatibility is complete.
|
2161
|
-
*
|
2162
|
-
* @since 2.2.0
|
2163
|
-
* @deprecated 2.8.0
|
2164
|
-
* @deprecated Use wp_register_sidebar_widget()
|
2165
|
-
* @see wp_register_sidebar_widget()
|
2166
|
-
*
|
2167
|
-
* @param string|int $name Widget ID.
|
2168
|
-
* @param callback $output_callback Run when widget is called.
|
2169
|
-
* @param string $classname Classname widget option.
|
2170
|
-
* @param mixed $params,... Widget parameters.
|
2171
|
-
*/
|
2172
|
-
function register_sidebar_widget($name, $output_callback, $classname = '') {
|
2173
|
-
_deprecated_function( __FUNCTION__, '2.8', 'wp_register_sidebar_widget()' );
|
2174
|
-
// Compat
|
2175
|
-
if ( is_array($name) ) {
|
2176
|
-
if ( count($name) == 3 )
|
2177
|
-
$name = sprintf($name[0], $name[2]);
|
2178
|
-
else
|
2179
|
-
$name = $name[0];
|
2180
|
-
}
|
2181
|
-
|
2182
|
-
$id = sanitize_title($name);
|
2183
|
-
$options = array();
|
2184
|
-
if ( !empty($classname) && is_string($classname) )
|
2185
|
-
$options['classname'] = $classname;
|
2186
|
-
$params = array_slice(func_get_args(), 2);
|
2187
|
-
$args = array($id, $name, $output_callback, $options);
|
2188
|
-
if ( !empty($params) )
|
2189
|
-
$args = array_merge($args, $params);
|
2190
|
-
|
2191
|
-
call_user_func_array('wp_register_sidebar_widget', $args);
|
2192
|
-
}
|
2193
|
-
|
2194
|
-
/**
|
2195
|
-
* Alias of {@link wp_unregister_sidebar_widget()}.
|
2196
|
-
*
|
2197
|
-
* @since 2.2.0
|
2198
|
-
* @deprecated 2.8.0
|
2199
|
-
* @deprecated Use wp_unregister_sidebar_widget()
|
2200
|
-
* @see wp_unregister_sidebar_widget()
|
2201
|
-
*
|
2202
|
-
* @param int|string $id Widget ID.
|
2203
|
-
*/
|
2204
|
-
function unregister_sidebar_widget($id) {
|
2205
|
-
_deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_sidebar_widget()' );
|
2206
|
-
return wp_unregister_sidebar_widget($id);
|
2207
|
-
}
|
2208
|
-
|
2209
|
-
/**
|
2210
|
-
* Registers widget control callback for customizing options.
|
2211
|
-
*
|
2212
|
-
* Allows $name to be an array that accepts either three elements to grab the
|
2213
|
-
* first element and the third for the name or just uses the first element of
|
2214
|
-
* the array for the name.
|
2215
|
-
*
|
2216
|
-
* Passes to {@link wp_register_widget_control()} after the argument list has
|
2217
|
-
* been compiled.
|
2218
|
-
*
|
2219
|
-
* @since 2.2.0
|
2220
|
-
* @deprecated 2.8.0
|
2221
|
-
* @deprecated Use wp_register_widget_control()
|
2222
|
-
* @see wp_register_widget_control()
|
2223
|
-
*
|
2224
|
-
* @param int|string $name Sidebar ID.
|
2225
|
-
* @param callback $control_callback Widget control callback to display and process form.
|
2226
|
-
* @param int $width Widget width.
|
2227
|
-
* @param int $height Widget height.
|
2228
|
-
*/
|
2229
|
-
function register_widget_control($name, $control_callback, $width = '', $height = '') {
|
2230
|
-
_deprecated_function( __FUNCTION__, '2.8', 'wp_register_widget_control()' );
|
2231
|
-
// Compat
|
2232
|
-
if ( is_array($name) ) {
|
2233
|
-
if ( count($name) == 3 )
|
2234
|
-
$name = sprintf($name[0], $name[2]);
|
2235
|
-
else
|
2236
|
-
$name = $name[0];
|
2237
|
-
}
|
2238
|
-
|
2239
|
-
$id = sanitize_title($name);
|
2240
|
-
$options = array();
|
2241
|
-
if ( !empty($width) )
|
2242
|
-
$options['width'] = $width;
|
2243
|
-
if ( !empty($height) )
|
2244
|
-
$options['height'] = $height;
|
2245
|
-
$params = array_slice(func_get_args(), 4);
|
2246
|
-
$args = array($id, $name, $control_callback, $options);
|
2247
|
-
if ( !empty($params) )
|
2248
|
-
$args = array_merge($args, $params);
|
2249
|
-
|
2250
|
-
call_user_func_array('wp_register_widget_control', $args);
|
2251
|
-
}
|
2252
|
-
|
2253
|
-
/**
|
2254
|
-
* Alias of {@link wp_unregister_widget_control()}.
|
2255
|
-
*
|
2256
|
-
* @since 2.2.0
|
2257
|
-
* @deprecated 2.8.0
|
2258
|
-
* @deprecated Use wp_unregister_widget_control()
|
2259
|
-
* @see wp_unregister_widget_control()
|
2260
|
-
*
|
2261
|
-
* @param int|string $id Widget ID.
|
2262
|
-
*/
|
2263
|
-
function unregister_widget_control($id) {
|
2264
|
-
_deprecated_function( __FUNCTION__, '2.8', 'wp_unregister_widget_control()' );
|
2265
|
-
return wp_unregister_widget_control($id);
|
2266
|
-
}
|
2267
|
-
|
2268
|
-
/**
|
2269
|
-
* Remove user meta data.
|
2270
|
-
*
|
2271
|
-
* @since 2.0.0
|
2272
|
-
* @deprecated 3.0.0
|
2273
|
-
* @deprecated Use delete_user_meta()
|
2274
|
-
* @see delete_user_meta()
|
2275
|
-
*
|
2276
|
-
* @param int $user_id User ID.
|
2277
|
-
* @param string $meta_key Metadata key.
|
2278
|
-
* @param mixed $meta_value Metadata value.
|
2279
|
-
* @return bool True deletion completed and false if user_id is not a number.
|
2280
|
-
*/
|
2281
|
-
function delete_usermeta( $user_id, $meta_key, $meta_value = '' ) {
|
2282
|
-
_deprecated_function( __FUNCTION__, '3.0', 'delete_user_meta()' );
|
2283
|
-
global $wpdb;
|
2284
|
-
if ( !is_numeric( $user_id ) )
|
2285
|
-
return false;
|
2286
|
-
$meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
|
2287
|
-
|
2288
|
-
if ( is_array($meta_value) || is_object($meta_value) )
|
2289
|
-
$meta_value = serialize($meta_value);
|
2290
|
-
$meta_value = trim( $meta_value );
|
2291
|
-
|
2292
|
-
$cur = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
|
2293
|
-
|
2294
|
-
if ( $cur && $cur->umeta_id )
|
2295
|
-
do_action( 'delete_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );
|
2296
|
-
|
2297
|
-
if ( ! empty($meta_value) )
|
2298
|
-
$wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s AND meta_value = %s", $user_id, $meta_key, $meta_value) );
|
2299
|
-
else
|
2300
|
-
$wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
|
2301
|
-
|
2302
|
-
clean_user_cache( $user_id );
|
2303
|
-
wp_cache_delete( $user_id, 'user_meta' );
|
2304
|
-
|
2305
|
-
if ( $cur && $cur->umeta_id )
|
2306
|
-
do_action( 'deleted_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );
|
2307
|
-
|
2308
|
-
return true;
|
2309
|
-
}
|
2310
|
-
|
2311
|
-
/**
|
2312
|
-
* Retrieve user metadata.
|
2313
|
-
*
|
2314
|
-
* If $user_id is not a number, then the function will fail over with a 'false'
|
2315
|
-
* boolean return value. Other returned values depend on whether there is only
|
2316
|
-
* one item to be returned, which be that single item type. If there is more
|
2317
|
-
* than one metadata value, then it will be list of metadata values.
|
2318
|
-
*
|
2319
|
-
* @since 2.0.0
|
2320
|
-
* @deprecated 3.0.0
|
2321
|
-
* @deprecated Use get_user_meta()
|
2322
|
-
* @see get_user_meta()
|
2323
|
-
*
|
2324
|
-
* @param int $user_id User ID
|
2325
|
-
* @param string $meta_key Optional. Metadata key.
|
2326
|
-
* @return mixed
|
2327
|
-
*/
|
2328
|
-
function get_usermeta( $user_id, $meta_key = '' ) {
|
2329
|
-
_deprecated_function( __FUNCTION__, '3.0', 'get_user_meta()' );
|
2330
|
-
global $wpdb;
|
2331
|
-
$user_id = (int) $user_id;
|
2332
|
-
|
2333
|
-
if ( !$user_id )
|
2334
|
-
return false;
|
2335
|
-
|
2336
|
-
if ( !empty($meta_key) ) {
|
2337
|
-
$meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
|
2338
|
-
$user = wp_cache_get($user_id, 'users');
|
2339
|
-
// Check the cached user object
|
2340
|
-
if ( false !== $user && isset($user->$meta_key) )
|
2341
|
-
$metas = array($user->$meta_key);
|
2342
|
-
else
|
2343
|
-
$metas = $wpdb->get_col( $wpdb->prepare("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
|
2344
|
-
} else {
|
2345
|
-
$metas = $wpdb->get_col( $wpdb->prepare("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = %d", $user_id) );
|
2346
|
-
}
|
2347
|
-
|
2348
|
-
if ( empty($metas) ) {
|
2349
|
-
if ( empty($meta_key) )
|
2350
|
-
return array();
|
2351
|
-
else
|
2352
|
-
return '';
|
2353
|
-
}
|
2354
|
-
|
2355
|
-
$metas = array_map('maybe_unserialize', $metas);
|
2356
|
-
|
2357
|
-
if ( count($metas) == 1 )
|
2358
|
-
return $metas[0];
|
2359
|
-
else
|
2360
|
-
return $metas;
|
2361
|
-
}
|
2362
|
-
|
2363
|
-
/**
|
2364
|
-
* Update metadata of user.
|
2365
|
-
*
|
2366
|
-
* There is no need to serialize values, they will be serialized if it is
|
2367
|
-
* needed. The metadata key can only be a string with underscores. All else will
|
2368
|
-
* be removed.
|
2369
|
-
*
|
2370
|
-
* Will remove the metadata, if the meta value is empty.
|
2371
|
-
*
|
2372
|
-
* @since 2.0.0
|
2373
|
-
* @deprecated 3.0.0
|
2374
|
-
* @deprecated Use update_user_meta()
|
2375
|
-
* @see update_user_meta()
|
2376
|
-
*
|
2377
|
-
* @param int $user_id User ID
|
2378
|
-
* @param string $meta_key Metadata key.
|
2379
|
-
* @param mixed $meta_value Metadata value.
|
2380
|
-
* @return bool True on successful update, false on failure.
|
2381
|
-
*/
|
2382
|
-
function update_usermeta( $user_id, $meta_key, $meta_value ) {
|
2383
|
-
_deprecated_function( __FUNCTION__, '3.0', 'update_user_meta()' );
|
2384
|
-
global $wpdb;
|
2385
|
-
if ( !is_numeric( $user_id ) )
|
2386
|
-
return false;
|
2387
|
-
$meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
|
2388
|
-
|
2389
|
-
/** @todo Might need fix because usermeta data is assumed to be already escaped */
|
2390
|
-
if ( is_string($meta_value) )
|
2391
|
-
$meta_value = stripslashes($meta_value);
|
2392
|
-
$meta_value = maybe_serialize($meta_value);
|
2393
|
-
|
2394
|
-
if (empty($meta_value)) {
|
2395
|
-
return delete_usermeta($user_id, $meta_key);
|
2396
|
-
}
|
2397
|
-
|
2398
|
-
$cur = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) );
|
2399
|
-
|
2400
|
-
if ( $cur )
|
2401
|
-
do_action( 'update_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );
|
2402
|
-
|
2403
|
-
if ( !$cur )
|
2404
|
-
$wpdb->insert($wpdb->usermeta, compact('user_id', 'meta_key', 'meta_value') );
|
2405
|
-
else if ( $cur->meta_value != $meta_value )
|
2406
|
-
$wpdb->update($wpdb->usermeta, compact('meta_value'), compact('user_id', 'meta_key') );
|
2407
|
-
else
|
2408
|
-
return false;
|
2409
|
-
|
2410
|
-
clean_user_cache( $user_id );
|
2411
|
-
wp_cache_delete( $user_id, 'user_meta' );
|
2412
|
-
|
2413
|
-
if ( !$cur )
|
2414
|
-
do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );
|
2415
|
-
else
|
2416
|
-
do_action( 'updated_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value );
|
2417
|
-
|
2418
|
-
return true;
|
2419
|
-
}
|
2420
|
-
|
2421
|
-
/**
|
2422
|
-
* Get users for the blog.
|
2423
|
-
*
|
2424
|
-
* For setups that use the multi-blog feature. Can be used outside of the
|
2425
|
-
* multi-blog feature.
|
2426
|
-
*
|
2427
|
-
* @since 2.2.0
|
2428
|
-
* @deprecated 3.1.0
|
2429
|
-
* @uses $wpdb WordPress database object for queries
|
2430
|
-
* @uses $blog_id The Blog id of the blog for those that use more than one blog
|
2431
|
-
*
|
2432
|
-
* @param int $id Blog ID.
|
2433
|
-
* @return array List of users that are part of that Blog ID
|
2434
|
-
*/
|
2435
|
-
function get_users_of_blog( $id = '' ) {
|
2436
|
-
_deprecated_function( __FUNCTION__, '3.1', 'get_users()' );
|
2437
|
-
|
2438
|
-
global $wpdb, $blog_id;
|
2439
|
-
if ( empty($id) )
|
2440
|
-
$id = (int) $blog_id;
|
2441
|
-
$blog_prefix = $wpdb->get_blog_prefix($id);
|
2442
|
-
$users = $wpdb->get_results( "SELECT user_id, user_id AS ID, user_login, display_name, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE {$wpdb->users}.ID = {$wpdb->usermeta}.user_id AND meta_key = '{$blog_prefix}capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
|
2443
|
-
return $users;
|
2444
|
-
}
|
2445
|
-
|
2446
|
-
/**
|
2447
|
-
* Enable/disable automatic general feed link outputting.
|
2448
|
-
*
|
2449
|
-
* @since 2.8.0
|
2450
|
-
* @deprecated 3.0.0
|
2451
|
-
* @deprecated Use add_theme_support( 'automatic-feed-links' )
|
2452
|
-
*
|
2453
|
-
* @param boolean $add Optional, default is true. Add or remove links. Defaults to true.
|
2454
|
-
*/
|
2455
|
-
function automatic_feed_links( $add = true ) {
|
2456
|
-
_deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" );
|
2457
|
-
|
2458
|
-
if ( $add )
|
2459
|
-
add_theme_support( 'automatic-feed-links' );
|
2460
|
-
else
|
2461
|
-
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+
|
2462
|
-
}
|
2463
|
-
|
2464
|
-
/**
|
2465
|
-
* Retrieve user data based on field.
|
2466
|
-
*
|
2467
|
-
* @since 1.5.0
|
2468
|
-
* @deprecated 3.0.0
|
2469
|
-
* @deprecated Use get_the_author_meta()
|
2470
|
-
* @see get_the_author_meta()
|
2471
|
-
*/
|
2472
|
-
function get_profile( $field, $user = false ) {
|
2473
|
-
_deprecated_function( __FUNCTION__, '3.0', 'get_the_author_meta()' );
|
2474
|
-
if ( $user ) {
|
2475
|
-
$user = get_user_by( 'login', $user );
|
2476
|
-
$user = $user->ID;
|
2477
|
-
}
|
2478
|
-
return get_the_author_meta( $field, $user );
|
2479
|
-
}
|
2480
|
-
|
2481
|
-
/**
|
2482
|
-
* Number of posts user has written.
|
2483
|
-
*
|
2484
|
-
* @since 0.71
|
2485
|
-
* @deprecated 3.0.0
|
2486
|
-
* @deprecated Use count_user_posts()
|
2487
|
-
* @see count_user_posts()
|
2488
|
-
*/
|
2489
|
-
function get_usernumposts( $userid ) {
|
2490
|
-
_deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' );
|
2491
|
-
return count_user_posts( $userid );
|
2492
|
-
}
|
2493
|
-
|
2494
|
-
/**
|
2495
|
-
* Callback used to change %uXXXX to &#YYY; syntax
|
2496
|
-
*
|
2497
|
-
* @since 2.8.0
|
2498
|
-
* @access private
|
2499
|
-
* @deprecated 3.0.0
|
2500
|
-
*
|
2501
|
-
* @param array $matches Single Match
|
2502
|
-
* @return string An HTML entity
|
2503
|
-
*/
|
2504
|
-
function funky_javascript_callback($matches) {
|
2505
|
-
return "&#".base_convert($matches[1],16,10).";";
|
2506
|
-
}
|
2507
|
-
|
2508
|
-
/**
|
2509
|
-
* Fixes javascript bugs in browsers.
|
2510
|
-
*
|
2511
|
-
* Converts unicode characters to HTML numbered entities.
|
2512
|
-
*
|
2513
|
-
* @since 1.5.0
|
2514
|
-
* @uses $is_macIE
|
2515
|
-
* @uses $is_winIE
|
2516
|
-
* @deprecated 3.0.0
|
2517
|
-
*
|
2518
|
-
* @param string $text Text to be made safe.
|
2519
|
-
* @return string Fixed text.
|
2520
|
-
*/
|
2521
|
-
function funky_javascript_fix($text) {
|
2522
|
-
_deprecated_function( __FUNCTION__, '3.0' );
|
2523
|
-
// Fixes for browsers' javascript bugs
|
2524
|
-
global $is_macIE, $is_winIE;
|
2525
|
-
|
2526
|
-
if ( $is_winIE || $is_macIE )
|
2527
|
-
$text = preg_replace_callback("/\%u([0-9A-F]{4,4})/",
|
2528
|
-
"funky_javascript_callback",
|
2529
|
-
$text);
|
2530
|
-
|
2531
|
-
return $text;
|
2532
|
-
}
|
2533
|
-
|
2534
|
-
/**
|
2535
|
-
* Checks that the taxonomy name exists.
|
2536
|
-
*
|
2537
|
-
* @since 2.3.0
|
2538
|
-
* @deprecated 3.0.0
|
2539
|
-
* @deprecated Use taxonomy_exists()
|
2540
|
-
* @see taxonomy_exists()
|
2541
|
-
*
|
2542
|
-
* @param string $taxonomy Name of taxonomy object
|
2543
|
-
* @return bool Whether the taxonomy exists.
|
2544
|
-
*/
|
2545
|
-
function is_taxonomy( $taxonomy ) {
|
2546
|
-
_deprecated_function( __FUNCTION__, '3.0', 'taxonomy_exists()' );
|
2547
|
-
return taxonomy_exists( $taxonomy );
|
2548
|
-
}
|
2549
|
-
|
2550
|
-
/**
|
2551
|
-
* Check if Term exists.
|
2552
|
-
*
|
2553
|
-
* @since 2.3.0
|
2554
|
-
* @deprecated 3.0.0
|
2555
|
-
* @deprecated Use term_exists()
|
2556
|
-
* @see term_exists()
|
2557
|
-
*
|
2558
|
-
* @param int|string $term The term to check
|
2559
|
-
* @param string $taxonomy The taxonomy name to use
|
2560
|
-
* @param int $parent ID of parent term under which to confine the exists search.
|
2561
|
-
* @return mixed Get the term id or Term Object, if exists.
|
2562
|
-
*/
|
2563
|
-
function is_term( $term, $taxonomy = '', $parent = 0 ) {
|
2564
|
-
_deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );
|
2565
|
-
return term_exists( $term, $taxonomy, $parent );
|
2566
|
-
}
|
2567
|
-
|
2568
|
-
/**
|
2569
|
-
* Is the current admin page generated by a plugin?
|
2570
|
-
*
|
2571
|
-
* @since 1.5.0
|
2572
|
-
* @deprecated 3.1.0
|
2573
|
-
* @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
|
2574
|
-
*
|
2575
|
-
* @global $plugin_page
|
2576
|
-
*
|
2577
|
-
* @return bool
|
2578
|
-
*/
|
2579
|
-
function is_plugin_page() {
|
2580
|
-
_deprecated_function( __FUNCTION__, '3.1' );
|
2581
|
-
|
2582
|
-
global $plugin_page;
|
2583
|
-
|
2584
|
-
if ( isset($plugin_page) )
|
2585
|
-
return true;
|
2586
|
-
|
2587
|
-
return false;
|
2588
|
-
}
|
2589
|
-
|
2590
|
-
/**
|
2591
|
-
* Update the categories cache.
|
2592
|
-
*
|
2593
|
-
* This function does not appear to be used anymore or does not appear to be
|
2594
|
-
* needed. It might be a legacy function left over from when there was a need
|
2595
|
-
* for updating the category cache.
|
2596
|
-
*
|
2597
|
-
* @since 1.5.0
|
2598
|
-
* @deprecated 3.1.0
|
2599
|
-
*
|
2600
|
-
* @return bool Always return True
|
2601
|
-
*/
|
2602
|
-
function update_category_cache() {
|
2603
|
-
_deprecated_function( __FUNCTION__, '3.1' );
|
2604
|
-
|
2605
|
-
return true;
|
2606
|
-
}
|
2607
|
-
|
2608
|
-
/**
|
2609
|
-
* Check for PHP timezone support
|
2610
|
-
*
|
2611
|
-
* @since 2.9.0
|
2612
|
-
* @deprecated 3.2.0
|
2613
|
-
*
|
2614
|
-
* @return bool
|
2615
|
-
*/
|
2616
|
-
function wp_timezone_supported() {
|
2617
|
-
_deprecated_function( __FUNCTION__, '3.2' );
|
2618
|
-
|
2619
|
-
return true;
|
2620
|
-
}
|
2621
|
-
|
2622
|
-
/**
|
2623
|
-
* Display editor: TinyMCE, HTML, or both.
|
2624
|
-
*
|
2625
|
-
* @since 2.1.0
|
2626
|
-
* @deprecated 3.3.0
|
2627
|
-
* @deprecated Use wp_editor()
|
2628
|
-
* @see wp_editor()
|
2629
|
-
*
|
2630
|
-
* @param string $content Textarea content.
|
2631
|
-
* @param string $id Optional, default is 'content'. HTML ID attribute value.
|
2632
|
-
* @param string $prev_id Optional, not used
|
2633
|
-
* @param bool $media_buttons Optional, default is true. Whether to display media buttons.
|
2634
|
-
* @param int $tab_index Optional, not used
|
2635
|
-
*/
|
2636
|
-
function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) {
|
2637
|
-
_deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' );
|
2638
|
-
|
2639
|
-
wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) );
|
2640
|
-
return;
|
2641
|
-
}
|
2642
|
-
|
2643
|
-
/**
|
2644
|
-
* Perform the query to get the $metavalues array(s) needed by _fill_user and _fill_many_users
|
2645
|
-
*
|
2646
|
-
* @since 3.0.0
|
2647
|
-
* @deprecated 3.3.0
|
2648
|
-
*
|
2649
|
-
* @param array $ids User ID numbers list.
|
2650
|
-
* @return array of arrays. The array is indexed by user_id, containing $metavalues object arrays.
|
2651
|
-
*/
|
2652
|
-
function get_user_metavalues($ids) {
|
2653
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2654
|
-
|
2655
|
-
$objects = array();
|
2656
|
-
|
2657
|
-
$ids = array_map('intval', $ids);
|
2658
|
-
foreach ( $ids as $id )
|
2659
|
-
$objects[$id] = array();
|
2660
|
-
|
2661
|
-
$metas = update_meta_cache('user', $ids);
|
2662
|
-
|
2663
|
-
foreach ( $metas as $id => $meta ) {
|
2664
|
-
foreach ( $meta as $key => $metavalues ) {
|
2665
|
-
foreach ( $metavalues as $value ) {
|
2666
|
-
$objects[$id][] = (object)array( 'user_id' => $id, 'meta_key' => $key, 'meta_value' => $value);
|
2667
|
-
}
|
2668
|
-
}
|
2669
|
-
}
|
2670
|
-
|
2671
|
-
return $objects;
|
2672
|
-
}
|
2673
|
-
|
2674
|
-
/**
|
2675
|
-
* Sanitize every user field.
|
2676
|
-
*
|
2677
|
-
* If the context is 'raw', then the user object or array will get minimal santization of the int fields.
|
2678
|
-
*
|
2679
|
-
* @since 2.3.0
|
2680
|
-
* @deprecated 3.3.0
|
2681
|
-
*
|
2682
|
-
* @param object|array $user The User Object or Array
|
2683
|
-
* @param string $context Optional, default is 'display'. How to sanitize user fields.
|
2684
|
-
* @return object|array The now sanitized User Object or Array (will be the same type as $user)
|
2685
|
-
*/
|
2686
|
-
function sanitize_user_object($user, $context = 'display') {
|
2687
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2688
|
-
|
2689
|
-
if ( is_object($user) ) {
|
2690
|
-
if ( !isset($user->ID) )
|
2691
|
-
$user->ID = 0;
|
2692
|
-
if ( !is_a( $user, 'WP_User' ) ) {
|
2693
|
-
$vars = get_object_vars($user);
|
2694
|
-
foreach ( array_keys($vars) as $field ) {
|
2695
|
-
if ( is_string($user->$field) || is_numeric($user->$field) )
|
2696
|
-
$user->$field = sanitize_user_field($field, $user->$field, $user->ID, $context);
|
2697
|
-
}
|
2698
|
-
}
|
2699
|
-
$user->filter = $context;
|
2700
|
-
} else {
|
2701
|
-
if ( !isset($user['ID']) )
|
2702
|
-
$user['ID'] = 0;
|
2703
|
-
foreach ( array_keys($user) as $field )
|
2704
|
-
$user[$field] = sanitize_user_field($field, $user[$field], $user['ID'], $context);
|
2705
|
-
$user['filter'] = $context;
|
2706
|
-
}
|
2707
|
-
|
2708
|
-
return $user;
|
2709
|
-
}
|
2710
|
-
|
2711
|
-
/**
|
2712
|
-
* Get boundary post relational link.
|
2713
|
-
*
|
2714
|
-
* Can either be start or end post relational link.
|
2715
|
-
*
|
2716
|
-
* @since 2.8.0
|
2717
|
-
* @deprecated 3.3.0
|
2718
|
-
*
|
2719
|
-
* @param string $title Optional. Link title format.
|
2720
|
-
* @param bool $in_same_cat Optional. Whether link should be in a same category.
|
2721
|
-
* @param string $excluded_categories Optional. Excluded categories IDs.
|
2722
|
-
* @param bool $start Optional, default is true. Whether to display link to first or last post.
|
2723
|
-
* @return string
|
2724
|
-
*/
|
2725
|
-
function get_boundary_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '', $start = true) {
|
2726
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2727
|
-
|
2728
|
-
$posts = get_boundary_post($in_same_cat, $excluded_categories, $start);
|
2729
|
-
// If there is no post stop.
|
2730
|
-
if ( empty($posts) )
|
2731
|
-
return;
|
2732
|
-
|
2733
|
-
// Even though we limited get_posts to return only 1 item it still returns an array of objects.
|
2734
|
-
$post = $posts[0];
|
2735
|
-
|
2736
|
-
if ( empty($post->post_title) )
|
2737
|
-
$post->post_title = $start ? __('First Post') : __('Last Post');
|
2738
|
-
|
2739
|
-
$date = mysql2date(get_option('date_format'), $post->post_date);
|
2740
|
-
|
2741
|
-
$title = str_replace('%title', $post->post_title, $title);
|
2742
|
-
$title = str_replace('%date', $date, $title);
|
2743
|
-
$title = apply_filters('the_title', $title, $post->ID);
|
2744
|
-
|
2745
|
-
$link = $start ? "<link rel='start' title='" : "<link rel='end' title='";
|
2746
|
-
$link .= esc_attr($title);
|
2747
|
-
$link .= "' href='" . get_permalink($post) . "' />\n";
|
2748
|
-
|
2749
|
-
$boundary = $start ? 'start' : 'end';
|
2750
|
-
return apply_filters( "{$boundary}_post_rel_link", $link );
|
2751
|
-
}
|
2752
|
-
|
2753
|
-
/**
|
2754
|
-
* Display relational link for the first post.
|
2755
|
-
*
|
2756
|
-
* @since 2.8.0
|
2757
|
-
* @deprecated 3.3.0
|
2758
|
-
*
|
2759
|
-
* @param string $title Optional. Link title format.
|
2760
|
-
* @param bool $in_same_cat Optional. Whether link should be in a same category.
|
2761
|
-
* @param string $excluded_categories Optional. Excluded categories IDs.
|
2762
|
-
*/
|
2763
|
-
function start_post_rel_link($title = '%title', $in_same_cat = false, $excluded_categories = '') {
|
2764
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2765
|
-
|
2766
|
-
echo get_boundary_post_rel_link($title, $in_same_cat, $excluded_categories, true);
|
2767
|
-
}
|
2768
|
-
|
2769
|
-
/**
|
2770
|
-
* Get site index relational link.
|
2771
|
-
*
|
2772
|
-
* @since 2.8.0
|
2773
|
-
* @deprecated 3.3.0
|
2774
|
-
*
|
2775
|
-
* @return string
|
2776
|
-
*/
|
2777
|
-
function get_index_rel_link() {
|
2778
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2779
|
-
|
2780
|
-
$link = "<link rel='index' title='" . esc_attr( get_bloginfo( 'name', 'display' ) ) . "' href='" . esc_url( user_trailingslashit( get_bloginfo( 'url', 'display' ) ) ) . "' />\n";
|
2781
|
-
return apply_filters( "index_rel_link", $link );
|
2782
|
-
}
|
2783
|
-
|
2784
|
-
/**
|
2785
|
-
* Display relational link for the site index.
|
2786
|
-
*
|
2787
|
-
* @since 2.8.0
|
2788
|
-
* @deprecated 3.3.0
|
2789
|
-
*/
|
2790
|
-
function index_rel_link() {
|
2791
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2792
|
-
|
2793
|
-
echo get_index_rel_link();
|
2794
|
-
}
|
2795
|
-
|
2796
|
-
/**
|
2797
|
-
* Get parent post relational link.
|
2798
|
-
*
|
2799
|
-
* @since 2.8.0
|
2800
|
-
* @deprecated 3.3.0
|
2801
|
-
*
|
2802
|
-
* @param string $title Optional. Link title format.
|
2803
|
-
* @return string
|
2804
|
-
*/
|
2805
|
-
function get_parent_post_rel_link($title = '%title') {
|
2806
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2807
|
-
|
2808
|
-
if ( ! empty( $GLOBALS['post'] ) && ! empty( $GLOBALS['post']->post_parent ) )
|
2809
|
-
$post = get_post($GLOBALS['post']->post_parent);
|
2810
|
-
|
2811
|
-
if ( empty($post) )
|
2812
|
-
return;
|
2813
|
-
|
2814
|
-
$date = mysql2date(get_option('date_format'), $post->post_date);
|
2815
|
-
|
2816
|
-
$title = str_replace('%title', $post->post_title, $title);
|
2817
|
-
$title = str_replace('%date', $date, $title);
|
2818
|
-
$title = apply_filters('the_title', $title, $post->ID);
|
2819
|
-
|
2820
|
-
$link = "<link rel='up' title='";
|
2821
|
-
$link .= esc_attr( $title );
|
2822
|
-
$link .= "' href='" . get_permalink($post) . "' />\n";
|
2823
|
-
|
2824
|
-
return apply_filters( "parent_post_rel_link", $link );
|
2825
|
-
}
|
2826
|
-
|
2827
|
-
/**
|
2828
|
-
* Display relational link for parent item
|
2829
|
-
*
|
2830
|
-
* @since 2.8.0
|
2831
|
-
* @deprecated 3.3.0
|
2832
|
-
*/
|
2833
|
-
function parent_post_rel_link($title = '%title') {
|
2834
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2835
|
-
|
2836
|
-
echo get_parent_post_rel_link($title);
|
2837
|
-
}
|
2838
|
-
|
2839
|
-
/**
|
2840
|
-
* Add the "Dashboard"/"Visit Site" menu.
|
2841
|
-
*
|
2842
|
-
* @since 3.2.0
|
2843
|
-
* @deprecated 3.3.0
|
2844
|
-
*/
|
2845
|
-
function wp_admin_bar_dashboard_view_site_menu( $wp_admin_bar ) {
|
2846
|
-
_deprecated_function( __FUNCTION__, '3.3' );
|
2847
|
-
|
2848
|
-
$user_id = get_current_user_id();
|
2849
|
-
|
2850
|
-
if ( 0 != $user_id ) {
|
2851
|
-
if ( is_admin() )
|
2852
|
-
$wp_admin_bar->add_menu( array( 'id' => 'view-site', 'title' => __( 'Visit Site' ), 'href' => home_url() ) );
|
2853
|
-
elseif ( is_multisite() )
|
2854
|
-
$wp_admin_bar->add_menu( array( 'id' => 'dashboard', 'title' => __( 'Dashboard' ), 'href' => get_dashboard_url( $user_id ) ) );
|
2855
|
-
else
|
2856
|
-
$wp_admin_bar->add_menu( array( 'id' => 'dashboard', 'title' => __( 'Dashboard' ), 'href' => admin_url() ) );
|
2857
|
-
}
|
2858
|
-
}
|
2859
|
-
|
2860
|
-
/**
|
2861
|
-
* Checks if the current user belong to a given blog.
|
2862
|
-
*
|
2863
|
-
* @since MU
|
2864
|
-
* @deprecated 3.3.0
|
2865
|
-
* @deprecated Use is_user_member_of_blog()
|
2866
|
-
* @see is_user_member_of_blog()
|
2867
|
-
*
|
2868
|
-
* @param int $blog_id Blog ID
|
2869
|
-
* @return bool True if the current users belong to $blog_id, false if not.
|
2870
|
-
*/
|
2871
|
-
function is_blog_user( $blog_id = 0 ) {
|
2872
|
-
_deprecated_function( __FUNCTION__, '3.3', 'is_user_member_of_blog()' );
|
2873
|
-
|
2874
|
-
return is_user_member_of_blog( get_current_user_id(), $blog_id );
|
2875
|
-
}
|
2876
|
-
|
2877
|
-
/**
|
2878
|
-
* Open the file handle for debugging.
|
2879
|
-
*
|
2880
|
-
* @since 0.71
|
2881
|
-
* @deprecated Use error_log()
|
2882
|
-
* @link http://www.php.net/manual/en/function.error-log.php
|
2883
|
-
* @deprecated 3.4.0
|
2884
|
-
*/
|
2885
|
-
function debug_fopen( $filename, $mode ) {
|
2886
|
-
_deprecated_function( __FUNCTION__, 'error_log()' );
|
2887
|
-
return false;
|
2888
|
-
}
|
2889
|
-
|
2890
|
-
/**
|
2891
|
-
* Write contents to the file used for debugging.
|
2892
|
-
*
|
2893
|
-
* @since 0.71
|
2894
|
-
* @deprecated Use error_log() instead.
|
2895
|
-
* @link http://www.php.net/manual/en/function.error-log.php
|
2896
|
-
* @deprecated 3.4.0
|
2897
|
-
*/
|
2898
|
-
function debug_fwrite( $fp, $string ) {
|
2899
|
-
_deprecated_function( __FUNCTION__, 'error_log()' );
|
2900
|
-
if ( ! empty( $GLOBALS['debug'] ) )
|
2901
|
-
error_log( $string );
|
2902
|
-
}
|
2903
|
-
|
2904
|
-
/**
|
2905
|
-
* Close the debugging file handle.
|
2906
|
-
*
|
2907
|
-
* @since 0.71
|
2908
|
-
* @deprecated Use error_log()
|
2909
|
-
* @link http://www.php.net/manual/en/function.error-log.php
|
2910
|
-
* @deprecated 3.4.0
|
2911
|
-
*/
|
2912
|
-
function debug_fclose( $fp ) {
|
2913
|
-
_deprecated_function( __FUNCTION__, 'error_log()' );
|
2914
|
-
}
|
2915
|
-
|
2916
|
-
/**
|
2917
|
-
* Retrieve list of themes with theme data in theme directory.
|
2918
|
-
*
|
2919
|
-
* The theme is broken, if it doesn't have a parent theme and is missing either
|
2920
|
-
* style.css and, or index.php. If the theme has a parent theme then it is
|
2921
|
-
* broken, if it is missing style.css; index.php is optional.
|
2922
|
-
*
|
2923
|
-
* @since 1.5.0
|
2924
|
-
* @deprecated 3.4.0
|
2925
|
-
* @deprecated Use wp_get_themes()
|
2926
|
-
* @see wp_get_themes()
|
2927
|
-
*
|
2928
|
-
* @return array Theme list with theme data.
|
2929
|
-
*/
|
2930
|
-
function get_themes() {
|
2931
|
-
_deprecated_function( __FUNCTION__, '3.4', 'wp_get_themes()' );
|
2932
|
-
|
2933
|
-
global $wp_themes;
|
2934
|
-
if ( isset( $wp_themes ) )
|
2935
|
-
return $wp_themes;
|
2936
|
-
|
2937
|
-
$themes = wp_get_themes();
|
2938
|
-
$wp_themes = array();
|
2939
|
-
|
2940
|
-
foreach ( $themes as $theme ) {
|
2941
|
-
$name = $theme->get('Name');
|
2942
|
-
if ( isset( $wp_themes[ $name ] ) )
|
2943
|
-
$wp_themes[ $name . '/' . $theme->get_stylesheet() ] = $theme;
|
2944
|
-
else
|
2945
|
-
$wp_themes[ $name ] = $theme;
|
2946
|
-
}
|
2947
|
-
|
2948
|
-
return $wp_themes;
|
2949
|
-
}
|
2950
|
-
|
2951
|
-
/**
|
2952
|
-
* Retrieve theme data.
|
2953
|
-
*
|
2954
|
-
* @since 1.5.0
|
2955
|
-
* @deprecated 3.4.0
|
2956
|
-
* @deprecated Use wp_get_theme()
|
2957
|
-
* @see wp_get_theme()
|
2958
|
-
*
|
2959
|
-
* @param string $theme Theme name.
|
2960
|
-
* @return array|null Null, if theme name does not exist. Theme data, if exists.
|
2961
|
-
*/
|
2962
|
-
function get_theme( $theme ) {
|
2963
|
-
_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme( $stylesheet )' );
|
2964
|
-
|
2965
|
-
$themes = get_themes();
|
2966
|
-
if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
|
2967
|
-
return $themes[ $theme ];
|
2968
|
-
return null;
|
2969
|
-
}
|
2970
|
-
|
2971
|
-
/**
|
2972
|
-
* Retrieve current theme name.
|
2973
|
-
*
|
2974
|
-
* @since 1.5.0
|
2975
|
-
* @deprecated 3.4.0
|
2976
|
-
* @deprecated Use (string) wp_get_theme()
|
2977
|
-
* @see wp_get_theme()
|
2978
|
-
*
|
2979
|
-
* @return string
|
2980
|
-
*/
|
2981
|
-
function get_current_theme() {
|
2982
|
-
_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
|
2983
|
-
|
2984
|
-
if ( $theme = get_option( 'current_theme' ) )
|
2985
|
-
return $theme;
|
2986
|
-
|
2987
|
-
return wp_get_theme()->get('Name');
|
2988
|
-
}
|
2989
|
-
|
2990
|
-
/**
|
2991
|
-
* Accepts matches array from preg_replace_callback in wpautop() or a string.
|
2992
|
-
*
|
2993
|
-
* Ensures that the contents of a <<pre>>...<</pre>> HTML block are not
|
2994
|
-
* converted into paragraphs or line-breaks.
|
2995
|
-
*
|
2996
|
-
* @since 1.2.0
|
2997
|
-
* @deprecated 3.4.0
|
2998
|
-
*
|
2999
|
-
* @param array|string $matches The array or string
|
3000
|
-
* @return string The pre block without paragraph/line-break conversion.
|
3001
|
-
*/
|
3002
|
-
function clean_pre($matches) {
|
3003
|
-
_deprecated_function( __FUNCTION__, '3.4' );
|
3004
|
-
|
3005
|
-
if ( is_array($matches) )
|
3006
|
-
$text = $matches[1] . $matches[2] . "</pre>";
|
3007
|
-
else
|
3008
|
-
$text = $matches;
|
3009
|
-
|
3010
|
-
$text = str_replace(array('<br />', '<br/>', '<br>'), array('', '', ''), $text);
|
3011
|
-
$text = str_replace('<p>', "\n", $text);
|
3012
|
-
$text = str_replace('</p>', '', $text);
|
3013
|
-
|
3014
|
-
return $text;
|
3015
|
-
}
|
3016
|
-
|
3017
|
-
|
3018
|
-
/**
|
3019
|
-
* Add callbacks for image header display.
|
3020
|
-
*
|
3021
|
-
* @since 2.1.0
|
3022
|
-
* @deprecated 3.4.0
|
3023
|
-
* @deprecated Use add_theme_support('custom-header', $args)
|
3024
|
-
* @see add_theme_support()
|
3025
|
-
*
|
3026
|
-
* @param callback $wp_head_callback Call on 'wp_head' action.
|
3027
|
-
* @param callback $admin_head_callback Call on custom header administration screen.
|
3028
|
-
* @param callback $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
|
3029
|
-
*/
|
3030
|
-
function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) {
|
3031
|
-
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' );
|
3032
|
-
$args = array(
|
3033
|
-
'wp-head-callback' => $wp_head_callback,
|
3034
|
-
'admin-head-callback' => $admin_head_callback,
|
3035
|
-
);
|
3036
|
-
if ( $admin_preview_callback )
|
3037
|
-
$args['admin-preview-callback'] = $admin_preview_callback;
|
3038
|
-
return add_theme_support( 'custom-header', $args );
|
3039
|
-
}
|
3040
|
-
|
3041
|
-
/**
|
3042
|
-
* Remove image header support.
|
3043
|
-
*
|
3044
|
-
* @since 3.1.0
|
3045
|
-
* @deprecated 3.4.0
|
3046
|
-
* @deprecated Use remove_theme_support('custom-header')
|
3047
|
-
* @see remove_theme_support()
|
3048
|
-
*
|
3049
|
-
* @return bool Whether support was removed.
|
3050
|
-
*/
|
3051
|
-
function remove_custom_image_header() {
|
3052
|
-
_deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-header\' )' );
|
3053
|
-
return remove_theme_support( 'custom-header' );
|
3054
|
-
}
|
3055
|
-
|
3056
|
-
/**
|
3057
|
-
* Add callbacks for background image display.
|
3058
|
-
*
|
3059
|
-
* @since 3.0.0
|
3060
|
-
* @deprecated 3.4.0
|
3061
|
-
* @deprecated Use add_theme_support('custom-background, $args)
|
3062
|
-
* @see add_theme_support()
|
3063
|
-
*
|
3064
|
-
* @param callback $wp_head_callback Call on 'wp_head' action.
|
3065
|
-
* @param callback $admin_head_callback Call on custom background administration screen.
|
3066
|
-
* @param callback $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.
|
3067
|
-
*/
|
3068
|
-
function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) {
|
3069
|
-
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' );
|
3070
|
-
$args = array();
|
3071
|
-
if ( $wp_head_callback )
|
3072
|
-
$args['wp-head-callback'] = $wp_head_callback;
|
3073
|
-
if ( $admin_head_callback )
|
3074
|
-
$args['admin-head-callback'] = $admin_head_callback;
|
3075
|
-
if ( $admin_preview_callback )
|
3076
|
-
$args['admin-preview-callback'] = $admin_preview_callback;
|
3077
|
-
return add_theme_support( 'custom-background', $args );
|
3078
|
-
}
|
3079
|
-
|
3080
|
-
/**
|
3081
|
-
* Remove custom background support.
|
3082
|
-
*
|
3083
|
-
* @since 3.1.0
|
3084
|
-
* @see add_custom_background()
|
3085
|
-
*
|
3086
|
-
* @return bool Whether support was removed.
|
3087
|
-
*/
|
3088
|
-
function remove_custom_background() {
|
3089
|
-
_deprecated_function( __FUNCTION__, '3.4', 'remove_theme_support( \'custom-background\' )' );
|
3090
|
-
return remove_theme_support( 'custom-background' );
|
3091
|
-
}
|
3092
|
-
|
3093
|
-
/**
|
3094
|
-
* Retrieve theme data from parsed theme file.
|
3095
|
-
*
|
3096
|
-
* @since 1.5.0
|
3097
|
-
* @deprecated 3.4.0
|
3098
|
-
* @deprecated Use wp_get_theme()
|
3099
|
-
* @see wp_get_theme()
|
3100
|
-
*
|
3101
|
-
* @param string $theme_file Theme file path.
|
3102
|
-
* @return array Theme data.
|
3103
|
-
*/
|
3104
|
-
function get_theme_data( $theme_file ) {
|
3105
|
-
_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
|
3106
|
-
$theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) );
|
3107
|
-
|
3108
|
-
$theme_data = array(
|
3109
|
-
'Name' => $theme->get('Name'),
|
3110
|
-
'URI' => $theme->display('ThemeURI', true, false),
|
3111
|
-
'Description' => $theme->display('Description', true, false),
|
3112
|
-
'Author' => $theme->display('Author', true, false),
|
3113
|
-
'AuthorURI' => $theme->display('AuthorURI', true, false),
|
3114
|
-
'Version' => $theme->get('Version'),
|
3115
|
-
'Template' => $theme->get('Template'),
|
3116
|
-
'Status' => $theme->get('Status'),
|
3117
|
-
'Tags' => $theme->get('Tags'),
|
3118
|
-
'Title' => $theme->get('Name'),
|
3119
|
-
'AuthorName' => $theme->get('Author'),
|
3120
|
-
);
|
3121
|
-
|
3122
|
-
foreach ( apply_filters( 'extra_theme_headers', array() ) as $extra_header ) {
|
3123
|
-
if ( ! isset( $theme_data[ $extra_header ] ) )
|
3124
|
-
$theme_data[ $extra_header ] = $theme->get( $extra_header );
|
3125
|
-
}
|
3126
|
-
|
3127
|
-
return $theme_data;
|
3128
|
-
}
|
3129
|
-
|
3130
|
-
/**
|
3131
|
-
* Alias of update_post_cache().
|
3132
|
-
*
|
3133
|
-
* @see update_post_cache() Posts and pages are the same, alias is intentional
|
3134
|
-
*
|
3135
|
-
* @since 1.5.1
|
3136
|
-
* @deprecated 3.4.0
|
3137
|
-
*
|
3138
|
-
* @param array $pages list of page objects
|
3139
|
-
*/
|
3140
|
-
function update_page_cache( &$pages ) {
|
3141
|
-
_deprecated_function( __FUNCTION__, '3.4', 'update_post_cache()' );
|
3142
|
-
|
3143
|
-
update_post_cache( $pages );
|
3144
|
-
}
|
3145
|
-
|
3146
|
-
/**
|
3147
|
-
* Will clean the page in the cache.
|
3148
|
-
*
|
3149
|
-
* Clean (read: delete) page from cache that matches $id. Will also clean cache
|
3150
|
-
* associated with 'all_page_ids' and 'get_pages'.
|
3151
|
-
*
|
3152
|
-
* @since 2.0.0
|
3153
|
-
* @deprecated 3.4.0
|
3154
|
-
*
|
3155
|
-
* @uses do_action() Will call the 'clean_page_cache' hook action.
|
3156
|
-
*
|
3157
|
-
* @param int $id Page ID to clean
|
3158
|
-
*/
|
3159
|
-
function clean_page_cache( $id ) {
|
3160
|
-
_deprecated_function( __FUNCTION__, '3.4', 'clean_post_cache()' );
|
3161
|
-
|
3162
|
-
clean_post_cache( $id );
|
3163
|
-
}
|
3164
|
-
|
3165
|
-
/**
|
3166
|
-
* Retrieve nonce action "Are you sure" message.
|
3167
|
-
*
|
3168
|
-
* Deprecated in 3.4.1 and 3.5.0. Backported to 3.3.3.
|
3169
|
-
*
|
3170
|
-
* @since 2.0.4
|
3171
|
-
* @deprecated 3.4.1
|
3172
|
-
* @deprecated Use wp_nonce_ays()
|
3173
|
-
* @see wp_nonce_ays()
|
3174
|
-
*
|
3175
|
-
* @param string $action Nonce action.
|
3176
|
-
* @return string Are you sure message.
|
3177
|
-
*/
|
3178
|
-
function wp_explain_nonce( $action ) {
|
3179
|
-
_deprecated_function( __FUNCTION__, '3.4.1', 'wp_nonce_ays()' );
|
3180
|
-
return __( 'Are you sure you want to do this?' );
|
3181
|
-
}
|
3182
|
-
|
3183
|
-
/**
|
3184
|
-
* Display "sticky" CSS class, if a post is sticky.
|
3185
|
-
*
|
3186
|
-
* @since 2.7.0
|
3187
|
-
* @deprecated 3.5.0
|
3188
|
-
* @deprecated Use post_class()
|
3189
|
-
* @see post_class()
|
3190
|
-
*
|
3191
|
-
* @param int $post_id An optional post ID.
|
3192
|
-
*/
|
3193
|
-
function sticky_class( $post_id = null ) {
|
3194
|
-
_deprecated_function( __FUNCTION__, '3.5', 'post_class()' );
|
3195
|
-
if ( is_sticky( $post_id ) )
|
3196
|
-
echo ' sticky';
|
3197
|
-
}
|
3198
|
-
|
3199
|
-
/**
|
3200
|
-
* Retrieve post ancestors.
|
3201
|
-
*
|
3202
|
-
* This is no longer needed as WP_Post lazy-loads the ancestors
|
3203
|
-
* property with get_post_ancestors().
|
3204
|
-
*
|
3205
|
-
* @since 2.3.4
|
3206
|
-
* @deprecated 3.5.0
|
3207
|
-
* @see get_post_ancestors()
|
3208
|
-
*/
|
3209
|
-
function _get_post_ancestors( &$post ) {
|
3210
|
-
_deprecated_function( __FUNCTION__, '3.5' );
|
3211
|
-
}
|
3212
|
-
|
3213
|
-
/**
|
3214
|
-
* Load an image from a string, if PHP supports it.
|
3215
|
-
*
|
3216
|
-
* @since 2.1.0
|
3217
|
-
* @deprecated 3.5.0
|
3218
|
-
* @see wp_get_image_editor()
|
3219
|
-
*
|
3220
|
-
* @param string $file Filename of the image to load.
|
3221
|
-
* @return resource The resulting image resource on success, Error string on failure.
|
3222
|
-
*/
|
3223
|
-
function wp_load_image( $file ) {
|
3224
|
-
_deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' );
|
3225
|
-
|
3226
|
-
if ( is_numeric( $file ) )
|
3227
|
-
$file = get_attached_file( $file );
|
3228
|
-
|
3229
|
-
if ( ! is_file( $file ) )
|
3230
|
-
return sprintf(__('File “%s” doesn’t exist?'), $file);
|
3231
|
-
|
3232
|
-
if ( ! function_exists('imagecreatefromstring') )
|
3233
|
-
return __('The GD image library is not installed.');
|
3234
|
-
|
3235
|
-
// Set artificially high because GD uses uncompressed images in memory
|
3236
|
-
@ini_set( 'memory_limit', apply_filters( 'image_memory_limit', WP_MAX_MEMORY_LIMIT ) );
|
3237
|
-
$image = imagecreatefromstring( file_get_contents( $file ) );
|
3238
|
-
|
3239
|
-
if ( !is_resource( $image ) )
|
3240
|
-
return sprintf(__('File “%s” is not an image.'), $file);
|
3241
|
-
|
3242
|
-
return $image;
|
3243
|
-
}
|
3244
|
-
|
3245
|
-
/**
|
3246
|
-
* Scale down an image to fit a particular size and save a new copy of the image.
|
3247
|
-
*
|
3248
|
-
* The PNG transparency will be preserved using the function, as well as the
|
3249
|
-
* image type. If the file going in is PNG, then the resized image is going to
|
3250
|
-
* be PNG. The only supported image types are PNG, GIF, and JPEG.
|
3251
|
-
*
|
3252
|
-
* Some functionality requires API to exist, so some PHP version may lose out
|
3253
|
-
* support. This is not the fault of WordPress (where functionality is
|
3254
|
-
* downgraded, not actual defects), but of your PHP version.
|
3255
|
-
*
|
3256
|
-
* @since 2.5.0
|
3257
|
-
* @deprecated 3.5.0
|
3258
|
-
* @see wp_get_image_editor()
|
3259
|
-
*
|
3260
|
-
* @param string $file Image file path.
|
3261
|
-
* @param int $max_w Maximum width to resize to.
|
3262
|
-
* @param int $max_h Maximum height to resize to.
|
3263
|
-
* @param bool $crop Optional. Whether to crop image or resize.
|
3264
|
-
* @param string $suffix Optional. File suffix.
|
3265
|
-
* @param string $dest_path Optional. New image file path.
|
3266
|
-
* @param int $jpeg_quality Optional, default is 90. Image quality percentage.
|
3267
|
-
* @return mixed WP_Error on failure. String with new destination path.
|
3268
|
-
*/
|
3269
|
-
function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
|
3270
|
-
_deprecated_function( __FUNCTION__, '3.5', 'wp_get_image_editor()' );
|
3271
|
-
|
3272
|
-
$editor = wp_get_image_editor( $file );
|
3273
|
-
if ( is_wp_error( $editor ) )
|
3274
|
-
return $editor;
|
3275
|
-
$editor->set_quality( $jpeg_quality );
|
3276
|
-
|
3277
|
-
$resized = $editor->resize( $max_w, $max_h, $crop );
|
3278
|
-
if ( is_wp_error( $resized ) )
|
3279
|
-
return $resized;
|
3280
|
-
|
3281
|
-
$dest_file = $editor->generate_filename( $suffix, $dest_path );
|
3282
|
-
$saved = $editor->save( $dest_file );
|
3283
|
-
|
3284
|
-
if ( is_wp_error( $saved ) )
|
3285
|
-
return $saved;
|
3286
|
-
|
3287
|
-
return $dest_file;
|
3288
|
-
}
|
3289
|
-
|
3290
|
-
/**
|
3291
|
-
* Retrieve a single post, based on post ID.
|
3292
|
-
*
|
3293
|
-
* Has categories in 'post_category' property or key. Has tags in 'tags_input'
|
3294
|
-
* property or key.
|
3295
|
-
*
|
3296
|
-
* @since 1.0.0
|
3297
|
-
* @deprecated 3.5.0
|
3298
|
-
* @see get_post()
|
3299
|
-
*
|
3300
|
-
* @param int $postid Post ID.
|
3301
|
-
* @param string $mode How to return result, either OBJECT, ARRAY_N, or ARRAY_A.
|
3302
|
-
* @return object|array Post object or array holding post contents and information
|
3303
|
-
*/
|
3304
|
-
function wp_get_single_post( $postid = 0, $mode = OBJECT ) {
|
3305
|
-
_deprecated_function( __FUNCTION__, '3.5', 'get_post()' );
|
3306
|
-
return get_post( $postid, $mode );
|
3307
|
-
}
|
3308
|
-
|
3309
|
-
/**
|
3310
|
-
* Check that the user login name and password is correct.
|
3311
|
-
*
|
3312
|
-
* @since 0.71
|
3313
|
-
* @deprecated 3.5.0
|
3314
|
-
* @deprecated Use wp_authenticate()
|
3315
|
-
* @see wp_authenticate()
|
3316
|
-
*
|
3317
|
-
* @param string $user_login User name.
|
3318
|
-
* @param string $user_pass User password.
|
3319
|
-
* @return bool False if does not authenticate, true if username and password authenticates.
|
3320
|
-
*/
|
3321
|
-
function user_pass_ok($user_login, $user_pass) {
|
3322
|
-
_deprecated_function( __FUNCTION__, '3.5', 'wp_authenticate()' );
|
3323
|
-
$user = wp_authenticate( $user_login, $user_pass );
|
3324
|
-
if ( is_wp_error( $user ) )
|
3325
|
-
return false;
|
3326
|
-
|
3327
|
-
return true;
|
3328
|
-
}
|
3329
|
-
|
3330
|
-
/**
|
3331
|
-
* Callback formerly fired on the save_post hook. No longer needed.
|
3332
|
-
*
|
3333
|
-
* @since 2.3.0
|
3334
|
-
* @deprecated 3.5.0
|
3335
|
-
*/
|
3336
|
-
function _save_post_hook() {}
|
3337
|
-
|
3338
|
-
/**
|
3339
|
-
* Check if the installed version of GD supports particular image type
|
3340
|
-
*
|
3341
|
-
* @since 2.9.0
|
3342
|
-
* @deprecated 3.5.0
|
3343
|
-
* @see wp_image_editor_supports()
|
3344
|
-
*
|
3345
|
-
* @param string $mime_type
|
3346
|
-
* @return bool
|
3347
|
-
*/
|
3348
|
-
function gd_edit_image_support($mime_type) {
|
3349
|
-
_deprecated_function( __FUNCTION__, '3.5', 'wp_image_editor_supports()' );
|
3350
|
-
|
3351
|
-
if ( function_exists('imagetypes') ) {
|
3352
|
-
switch( $mime_type ) {
|
3353
|
-
case 'image/jpeg':
|
3354
|
-
return (imagetypes() & IMG_JPG) != 0;
|
3355
|
-
case 'image/png':
|
3356
|
-
return (imagetypes() & IMG_PNG) != 0;
|
3357
|
-
case 'image/gif':
|
3358
|
-
return (imagetypes() & IMG_GIF) != 0;
|
3359
|
-
}
|
3360
|
-
} else {
|
3361
|
-
switch( $mime_type ) {
|
3362
|
-
case 'image/jpeg':
|
3363
|
-
return function_exists('imagecreatefromjpeg');
|
3364
|
-
case 'image/png':
|
3365
|
-
return function_exists('imagecreatefrompng');
|
3366
|
-
case 'image/gif':
|
3367
|
-
return function_exists('imagecreatefromgif');
|
3368
|
-
}
|
3369
|
-
}
|
3370
|
-
return false;
|
3371
|
-
}
|
3372
|
-
|
3373
|
-
/**
|
3374
|
-
* Converts an integer byte value to a shorthand byte value.
|
3375
|
-
*
|
3376
|
-
* @since 2.3.0
|
3377
|
-
* @deprecated 3.6.0
|
3378
|
-
* @deprecated Use size_format()
|
3379
|
-
*
|
3380
|
-
* @param int $bytes An integer byte value.
|
3381
|
-
* @return string A shorthand byte value.
|
3382
|
-
*/
|
3383
|
-
function wp_convert_bytes_to_hr( $bytes ) {
|
3384
|
-
_deprecated_function( __FUNCTION__, '3.6', 'size_format()' );
|
3385
|
-
|
3386
|
-
$units = array( 0 => 'B', 1 => 'kB', 2 => 'MB', 3 => 'GB', 4 => 'TB' );
|
3387
|
-
$log = log( $bytes, 1024 );
|
3388
|
-
$power = (int) $log;
|
3389
|
-
$size = pow( 1024, $log - $power );
|
3390
|
-
|
3391
|
-
if ( ! is_nan( $size ) && array_key_exists( $power, $units ) ) {
|
3392
|
-
$unit = $units[ $power ];
|
3393
|
-
} else {
|
3394
|
-
$size = $bytes;
|
3395
|
-
$unit = $units[0];
|
3396
|
-
}
|
3397
|
-
|
3398
|
-
return $size . $unit;
|
3399
|
-
}
|
3400
|
-
|
3401
|
-
/**
|
3402
|
-
* Formerly used internally to tidy up the search terms.
|
3403
|
-
*
|
3404
|
-
* @access private
|
3405
|
-
* @since 2.9.0
|
3406
|
-
* @deprecated 3.7.0
|
3407
|
-
*/
|
3408
|
-
function _search_terms_tidy( $t ) {
|
3409
|
-
_deprecated_function( __FUNCTION__, '3.7' );
|
3410
|
-
return trim( $t, "\"'\n\r " );
|
3411
|
-
}
|
3412
|
-
|
3413
|
-
/**
|
3414
|
-
* Determine if TinyMCE is available.
|
3415
|
-
*
|
3416
|
-
* Checks to see if the user has deleted the tinymce files to slim down
|
3417
|
-
* their WordPress install.
|
3418
|
-
*
|
3419
|
-
* @since 2.1.0
|
3420
|
-
* @deprecated 3.9.0
|
3421
|
-
*
|
3422
|
-
* @return bool Whether TinyMCE exists.
|
3423
|
-
*/
|
3424
|
-
function rich_edit_exists() {
|
3425
|
-
global $wp_rich_edit_exists;
|
3426
|
-
_deprecated_function( __FUNCTION__, '3.9' );
|
3427
|
-
|
3428
|
-
if ( ! isset( $wp_rich_edit_exists ) )
|
3429
|
-
$wp_rich_edit_exists = file_exists( ABSPATH . WPINC . '/js/tinymce/tinymce.js' );
|
3430
|
-
|
3431
|
-
return $wp_rich_edit_exists;
|
3432
|
-
}
|
3433
|
-
|
3434
|
-
/**
|
3435
|
-
* Old callback for tag link tooltips.
|
3436
|
-
*
|
3437
|
-
* @since 2.7.0
|
3438
|
-
* @deprecated 3.9.0
|
3439
|
-
* @access private
|
3440
|
-
*/
|
3441
|
-
function default_topic_count_text( $count ) {
|
3442
|
-
return $count;
|
3443
|
-
}
|
3444
|
-
|
3445
|
-
/**
|
3446
|
-
* Formerly used to escape strings before inserting into the DB.
|
3447
|
-
*
|
3448
|
-
* Has not performed this function for many, many years. Use wpdb::prepare() instead.
|
3449
|
-
*
|
3450
|
-
* @since 0.71
|
3451
|
-
* @deprecated 3.9.0
|
3452
|
-
*
|
3453
|
-
* @param string $content The text to format.
|
3454
|
-
* @return string The very same text.
|
3455
|
-
*/
|
3456
|
-
function format_to_post( $content ) {
|
3457
|
-
_deprecated_function( __FUNCTION__, '3.9' );
|
3458
|
-
return $content;
|
3459
|
-
}
|
3460
|
-
|
3461
|
-
/**
|
3462
|
-
* Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
|
3463
|
-
*
|
3464
|
-
* @since 2.5.0
|
3465
|
-
* @deprecated 4.0.0
|
3466
|
-
* @deprecated Use wpdb::esc_like()
|
3467
|
-
*
|
3468
|
-
* @param string $text The text to be escaped.
|
3469
|
-
* @return string text, safe for inclusion in LIKE query.
|
3470
|
-
*/
|
3471
|
-
function like_escape($text) {
|
3472
|
-
_deprecated_function( __FUNCTION__, '4.0', 'wpdb::esc_like()' );
|
3473
|
-
return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text );
|
3474
|
-
}
|
3475
|
-
|
3476
|
-
/**
|
3477
|
-
* Determines if the URL can be accessed over SSL.
|
3478
|
-
*
|
3479
|
-
* Determines if the URL can be accessed over SSL by using the WordPress HTTP API to access
|
3480
|
-
* the URL using https as the scheme.
|
3481
|
-
*
|
3482
|
-
* @since 2.5.0
|
3483
|
-
* @deprecated 4.0.0
|
3484
|
-
*
|
3485
|
-
* @param string $url The URL to test.
|
3486
|
-
* @return bool Whether SSL access is available.
|
3487
|
-
*/
|
3488
|
-
function url_is_accessable_via_ssl( $url ) {
|
3489
|
-
_deprecated_function( __FUNCTION__, '4.0' );
|
3490
|
-
|
3491
|
-
$response = wp_remote_get( set_url_scheme( $url, 'https' ) );
|
3492
|
-
|
3493
|
-
if ( !is_wp_error( $response ) ) {
|
3494
|
-
$status = wp_remote_retrieve_response_code( $response );
|
3495
|
-
if ( 200 == $status || 401 == $status ) {
|
3496
|
-
return true;
|
3497
|
-
}
|
3498
|
-
}
|
3499
|
-
|
3500
|
-
return false;
|
3501
|
-
}
|